PICDEM 4 User ’s Guide
Chapter 3. Tutorial
The tutorial program is preprogrammed into the sample device (for example,
p16PDEM4_Demo.hex for a PIC16XXXX device and p18PDEM4_Demo.hex for a
PIC18XXXX device). Also, this program is on the included CD-ROM program disk for
user reference (i.e., if the sample device has been reprogrammed with another
program, the tutorial may be reprogrammed into the device).
For detailed information on the PICDEM 4 hardware, please refer to Appendix A.
3.1
TUTORIAL FIRMWARE OPERATION
The PIC18F tutorial firmware is made up of two components, which are individually
displayed on the LCD. The PIC ? microcontroller ’s internal RC oscillator is used as the
system clock source.
1. Voltmeter
This mode uses the A/D module to measure the voltage of the R33 pot and dis-
plays a voltage between 0.00V and 5.00V on the LCD. Voltage is continually
updated until the mode is exited by pressing SW3 (RB0).
2. Clock
Once this mode is entered from the main menu, a real-time clock will start count-
ing from 00:00:00. The Timer1 module and a 32 kHz clock crystal is used to
establish a Real-Time Clock. By pressing SW1, the clock time can be set to the
user's preference. After SW1 has been pressed, the cursor will flash over the
hours digits. Press SW1 and the cursor will now flash over the minutes digits.
SW3 is used to increment hours and minutes whenever the cursor is flashing
over either. After the minutes have been set, press SW1 and the time will be set
and the LCD is returned to an active clock display.
The PIC16F tutorial firmware is made up of one component, which uses the comparator
module and potentiometers R12, R15, R33, and R34. Turning the potentiometers will
vary the voltages to the PIC16 inputs, thereby changing the results of the comparator
outputs. The LCD will be used for displaying these results.
? 2003 Microchip Technology Inc.
DS51337A-page 7
相关PDF资料
DM163022-1 BOARD DEMO PIC16F87X PIC18FXX2
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
相关代理商/技术参数
DM163015 功能描述:开发板和工具包 - PIC / DSPIC PICDEM CAN-LIN 3 RoHS:否 制造商:Microchip Technology 产品:Starter Kits 工具用于评估:chipKIT 核心:Uno32 接口类型: 工作电源电压:
DM163022 功能描述:开发板和工具包 - PIC / DSPIC PICDEM 2 Plus RoHS:否 制造商:Microchip Technology 产品:Starter Kits 工具用于评估:chipKIT 核心:Uno32 接口类型: 工作电源电压:
DM163022 制造商:Microchip Technology Inc 功能描述:Tools Development kit Interface Type:RS
DM163022-1 功能描述:开发板和工具包 - PIC / DSPIC PICDEM 2 Plus RoHS:否 制造商:Microchip Technology 产品:Starter Kits 工具用于评估:chipKIT 核心:Uno32 接口类型: 工作电源电压:
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 接口类型: 工作电源电压: