参数资料
型号: DV164101
厂商: Microchip Technology
文件页数: 53/76页
文件大小: 0K
描述: KIT DEV PICKIT1 FLASH 8/14PIN
产品培训模块: Asynchronous Stimulus
标准包装: 1
系列: PICkit™ 1
类型: MCU
适用于相关产品: Microchip 8-14 引脚闪存微控制器
所含物品: PIC 套件 1 电路板、光盘、USB 接口缆线和手册
产品目录页面: 659 (CN2011-ZH PDF)
配用: AC164122-ND - BOARD DAUGHT PICTAIL SD/MMC CARD
AC164120-ND - BOARD SIGNAL ANALYSIS PICKIT
其它名称: DV164101R
DV164101R-ND
The fact that the state machine based firmware always returns to the same point in the
code also makes the firmware easier to debug. When a bug is encountered, set a break
point at the jump station. Then, step through the program state by state until the bug is
found. An example of a bug would be the SV being modified incorrectly in one of the
states. If this happens, the wrong state will be called the next time the program flow
returns to the jump station. However, because the SV is being monitored, it will be very
easy to see when an unintentional change is made to the SV and in which state the SV
was incorrectly modified.
Note:
MPLAB IDE contains a built-in simulator. See the MPLAB IDE v6.xx Quick
Start Guide available on the MPLAB IDE CD-ROM included with the
PICkit 1 Flash Starter Kit
Another benefit of state machines is that it naturally promotes modular code. Modular
code has its own list of benefits:
1. Upgrades and special features can be easily added to the code in later revisions
or as a product evolves.
2. Modules can be cut and pasted into other applications quickly and easily.
3. Other developers will be able to understand the code in order to support it. The
jump station, if commented well, can be an index to each of the software
modules.
C.4.2
C.4.2.1
Implementation
GENERAL THOUGHT PROCESS
When implementing a FSM, first brainstorm all the states needed to complete a partic-
ular application. Once this is done, identify the first state. Next, the following question
should be answered: “What needs to happen to exit this state, and what state will it exit
to?” Usually there is more than one answer to this question. Depending on what hap-
pens while in a particular state, the state machine may advance a state, decrement a
state or skip several states entirely. As mentioned before, it is generally a good idea to
visually construct the state machine in the form of a flowchart. Finally, create a software
module for each of the states and tie them together according to the flowchart just
created.
? 2004 Microchip Technology Inc.
DS40051D-page 49
相关PDF资料
PDF描述
DV164120 KIT STARTER PICKIT 2
DV164121 KIT PICKIT 2 DEBUG EXPRESS
DV164122 ANALYZER SRL PICKIT W/DEMO BOARD
DV164131 KIT STARTER PICKIT 3
DV164132 KIT EVAL F1 FOR PIC12F1/PIC16F1
相关代理商/技术参数
参数描述
DV164101 制造商:Microchip Technology Inc 功能描述:TOOLS: FLASH MICROCONTROLLER (
DV164102 功能描述:开发板和工具包 - 无线 rfPICkit RoHS:否 制造商:Arduino 产品:Evaluation Boards 工具用于评估:AT32UC3L 核心:AVR32 频率: 接口类型:USB 工作电源电压:5 V
DV164120 功能描述:电路内置调试器 PICkit 2 8/14/20P Flash RoHS:否 制造商:Microchip Technology 产品:In-Circuit Debugger Kits 工具用于评估:PIC MCUs, dsPIC DSCs 用于:07-00024, AC164113 核心:dsPIC, PIC 接口类型:USB 工作电源电压:3 V to 5 V
DV164121 功能描述:电路内置调试器 PICkit 2 Debug Express RoHS:否 制造商:Microchip Technology 产品:In-Circuit Debugger Kits 工具用于评估:PIC MCUs, dsPIC DSCs 用于:07-00024, AC164113 核心:dsPIC, PIC 接口类型:USB 工作电源电压:3 V to 5 V
DV164121 制造商:Microchip Technology Inc 功能描述:ICPICKIT2 PROGRAMMER/DEBUGGER ((NW))