参数资料
型号: DV164120
厂商: Microchip Technology
文件页数: 50/86页
文件大小: 0K
描述: KIT STARTER PICKIT 2
产品培训模块: Asynchronous Stimulus
标准包装: 1
系列: PICkit™ 2
类型: 微控制器
适用于相关产品: PIC Micro? MCU
所含物品: 板,PICkit? 2 编程器,线缆,CD
产品目录页面: 658 (CN2011-ZH PDF)
PICkit? 2 User’s Guide
FIGURE 4-21:
NEW WATCH WINDOW
Note:
It is not recommended to use the View>File Registers and View>Special
Function Registers windows when debugging with PICkit 2 Debug Express.
When these windows are open, the entire contents must be written then
read back from the target device on every operation. This may slow down
debugging operations significantly. Instead, only add the SFR and File
Register variables of interest to a Watch window as described in this
tutorial.
9. Select ADCON0 from the first drop-down list and then click Add SFR to add
ADCON0 to the Watch window. Repeat this to add ADCON1 and ADRESH to the
Watch window. The selected SFRs should be visible in the Watch window as
shown in Figure 4-22.
FIGURE 4-22:
ADD SFRs TO WATCH
10. Select Debugger>Run to the run the program. Again, the program will stop after
it reaches the breakpoint.
11. Examine the values of the ADCON0 and ADCON1 registers in the Watch
window. The ADCON0 value is ‘0x40’ ( b’01000000’ ). This corresponds to the
hex value designated in the program. However, this is not correct. A review of the
“ PIC16F882/883/884/886/887 Data Sheet ” (DS41291), Analog-to-Digital (A/D)
Converter Module section, indicates that the last bit should be a ‘ 1 ’
( b’0100000 1 ’ ) to turn on the A/D module. To fix this bug, change:
movlw 0x40
to
movlw 0x41 , as shown in Figure 4-23.
DS51553E-page 46
? 2008 Microchip Technology Inc.
相关PDF资料
PDF描述
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
DV243003 KIT STARTER FOR SRL MEM PRODUCTS
相关代理商/技术参数
参数描述
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))
DV164121+TEFLCST3 制造商:Microchip Technology Inc 功能描述:KIT PICKIT2+FLOWCODE-HOME BUNDLE 制造商:Microchip Technology Inc 功能描述:ICD, PICKIT 2, FLOW CODE, PIC, DSPIC 制造商:Microchip Technology Inc 功能描述:ICD, PICKIT 2, DEBUG EXP, FLOW CODE, PIC, DSPIC; Silicon Family Name:PIC12F6xx, PIC16F5xx; Core Architecture:PIC; Core Sub-Architecture:PIC12, PIC18, PIC24; IC Product Type:Debugger / Programmer; Series:PICkit 2 ;RoHS Compliant: Yes
DV164122 功能描述:界面开发工具 PICkit Ser Analyzer RoHS:否 制造商:Bourns 产品:Evaluation Boards 类型:RS-485 工具用于评估:ADM3485E 接口类型:RS-485 工作电源电压:3.3 V
DV164126 功能描述:开发板和工具包 - PIC / DSPIC USB Kit w/ PICkit LowPinCount RoHS:否 制造商:Microchip Technology 产品:Starter Kits 工具用于评估:chipKIT 核心:Uno32 接口类型: 工作电源电压: