MPLAB_SIM教程基础篇(可编辑)
MPLAB_SIM教程基础篇
1215 SM1
MPLAB? Simulator Fundamentals
? 2008 Microchip Technology Incorporated. All Rights Reserved. 1215 SM1 Slide 1
? 2008 Microchip Technology Incorporated. All Rights Reserved. Class Title Slide 1
Class Objective
When you finish this class you
will be able to:
? Use MPLAB? Simulator to test and
debug firmware
? Create and apply simple stimulus
? Use Logic Analyzer and
Instruction Trace
? 2008 Microchip Technology Incorporated. All Rights Reserved. 1215 SM1 Slide 2
Agenda
Understanding MPLAB? Simulator
? demo
Stimulus
? Asynchronous
? Simple Synchronous
? Lab 1
Tools of Simulator
? Stopwatch
? Trace
? Logic Analyzer
? Lab 2
? 2008 Microchip Technology Incorporated. All Rights Reserved.
1215 SM1 Slide 3
MPLAB? IDE and
Simulator
? 2008 Microchip Technology Incorporated. All Rights Reserved.
1215 SM1 Slide 4
? 2008 Microchip Technology Incorporated. All Rights Reserved.
Class Title Slide 4
What is MPLAB? Simulator?
One of the MPLAB? debuggers
Supports all PIC? MCU, dsPIC?
DSC, and PIC32 families
? Baseline ? PIC24 ? PIC32
? Mid-Range ?dsPIC30
? PIC18 ?dsPIC33
Speed
Sophisticated stimulus engine
? 2008 Microchip Technology Incorporated. All Rights Reserved.
1215 SM1 Slide 5
Why MPLAB? Simulator?
Pure software debugger
? Develop firmware before silicon
arrives
? Much faster than using ICD, MPLAB
REAL ICE? in-circuit emulator
Repeatable testing
? With pre-set stimulus
Load testing
Free!
? 2008 Microchip Technology Incorporated. All Rights Reserved.
1215 SM1 Slide 6
Simulator Supports
Instruction cycle accurate
All instructions & address modes
All Registers
? SFR I/O Pins Registers
I/O Pins
Registers
? GPR 2F0h
CPU
CPU
I/O Pins
Simulator
Simulator
? 2008 Microchip Technology Incorporated. All Rights Reserved. 1215 SM1 Slide 7
I/O Pins Alias Supported
? 2008 Microchip Technology Incorporated. All Rights Reserved. 1215 SM1 Slide 8
Simulator Support
Simulate behavior of peripherals
? TIMER
? UART, CCP, PWM, ADC
? Input Capture
I/O Pins Registers
I/O Pins Registers
? Output Compare
TIMER Peripherals
TIMER Peripherals
CPU
? Comparator
CPU
UART ... ADC
UART ... ADC
Simulator
Simulator
? 2008 Microchip Technology Incorporated. All Rights Reserved. 1215 SM1 Slide 9
Functions of Simulator
Run:
本文档为【MPLAB_SIM教程基础篇(可编辑)】,请使用软件OFFICE或WPS软件打开。作品中的文字与图均可以修改和编辑,
图片更改请在作品中右键图片并更换,文字修改请直接点击文字进行修改,也可以新增和删除文档中的内容。
该文档来自用户分享,如有侵权行为请发邮件ishare@vip.sina.com联系网站客服,我们会及时删除。
[版权声明] 本站所有资料为用户分享产生,若发现您的权利被侵害,请联系客服邮件isharekefu@iask.cn,我们尽快处理。
本作品所展示的图片、画像、字体、音乐的版权可能需版权方额外授权,请谨慎使用。
网站提供的党政主题相关内容(国旗、国徽、党徽..)目的在于配合国家政策宣传,仅限个人学习分享使用,禁止用于任何广告和商用目的。