PICDEM? 2 PLUS USER ’S GUIDE
Chapter 3. Tutorial
The tutorial program is preprogrammed into the sample device. (For example, the file
p16demo.hex is for a PIC16 device and p18demo.hex is for a PIC18 device.) This
program also is on the included CD-ROM program disk for user reference. (If the
sample device has been reprogrammed with another program, the tutorial may be
reprogrammed into the device.)
For a flowchart of the tutorial program, see Figure 3-1.
For detailed information on the PICDEM 2 Plus hardware, please refer to Appendix A.
3.1
TUTORIAL PROGRAM OPERATION
The tutorial program is made up of four components, which are individually displayed
on the LCD.
1. Voltmeter
This mode uses the A/D module to measure the voltage of the R16 pot and
display a voltage between 0.00V and 5.00V on the LCD.
Voltage is continually updated until the mode is exited by pressing RB0.
2. Buzzer
This mode turns on the Piezo buzzer, using the CCP1 module I/O pin, RC2.
The period and duty cycle of the CCP1 frequency can be changed while the
buzzer is on. The changes in period and duty cycle are recognized immediately
in the buzzer tone.
- To change the period and/or the duty cycle, press RB0 under the “Buzzer”
menu.
The buzzer will then sound off with the default setting of 80h for the period and
duty cycle. The cursor will flash over the period’s first digit, indicating that the
PR2 register is ready to be incremented.
- To change the duty cycle, press RA4 once and the cursor will now flash over
the duty cycle’s first digit, indicating it is now ready to increment the CCPR1L
register.
The next press of RA4 will exit the buzzer function.
3. Temperature
This mode uses a TC74 thermal sensor to measure ambient temperature in
Celsius and then display that temperature on the LCD. Communication between
the PIC ? MCU and sensor is accomplished using the MSSP module. This mode
is exited by pressing RB0. This mode contains code that will write to the external
on-board EEPROM. Every two seconds, the code will write to a defined
EEPROM address and store the current temperature in that address.
? 2007 Microchip Technology Inc.
DS51275D-page 13
相关PDF资料
DM163030 KIT DEV PICDEM LCD2
DM163035 KIT DEVELOPMENT PICDEM LAB
DM164120-1 BOARD DEMO PICKIT 2 LP COUNT
DM164120-3 BOARD DEMO PICKIT2 28-PIN
DM164120-5 BOARD DEMO PICKIT 2 64/80-PIN
DM164123 KIT MANAGEMENT SYSTEM PICDEM
DM180021 KIT STARTER MPLAB FOR PIC18F MCU
DM183022 BOARD DEMO PIC18FXX22 64/80TQFP
相关代理商/技术参数
DM163024 功能描述:以太网开发工具 PICDEM.net 2 Demo Board RoHS:否 制造商:Micrel 产品:Evaluation Boards 类型:Ethernet Transceivers 工具用于评估:KSZ8873RLL 接口类型:RMII 工作电源电压:
DM163024 制造商:Microchip Technology Inc 功能描述:MICROCONTROLLER DEVELOPMENT TOOL ((NW))
DM163025 功能描述:开发板和工具包 - PIC / DSPIC USB DEMO BOARD RoHS:否 制造商:Microchip Technology 产品:Starter Kits 工具用于评估:chipKIT 核心:Uno32 接口类型: 工作电源电压:
DM163025-1 功能描述:开发板和工具包 - PIC / DSPIC USB DEMO BOARD RoHS:否 制造商:Microchip Technology 产品:Starter Kits 工具用于评估:chipKIT 核心:Uno32 接口类型: 工作电源电压:
DM163026 功能描述:开发板和工具包 - PIC / DSPIC L-Pow Sol Demo Brd RoHS:否 制造商:Microchip Technology 产品:Starter Kits 工具用于评估:chipKIT 核心:Uno32 接口类型: 工作电源电压:
DM163027-2 功能描述:Zigbee/802.15.4开发工具 PICDEM Z ZIGBEE BRD RoHS:否 制造商:Silicon Labs 产品:Development Kits 工具用于评估:EM35x 频率:2.4 GHz 接口类型:USB 工作电源电压:
DM163027-4 功能描述:Zigbee/802.15.4开发工具 PICDEM Z ZIGBEE BRD RoHS:否 制造商:Silicon Labs 产品:Development Kits 工具用于评估:EM35x 频率:2.4 GHz 接口类型:USB 工作电源电压:
DM163027-5 功能描述:Zigbee/802.15.4开发工具 PICDEM Z MRF24J40 2.4 GhZ Dev Kit RoHS:否 制造商:Silicon Labs 产品:Development Kits 工具用于评估:EM35x 频率:2.4 GHz 接口类型:USB 工作电源电压: