DM163035 Microchip Technology, DM163035 Datasheet - Page 66

KIT DEVELOPMENT PICDEM LAB

DM163035

Manufacturer Part Number
DM163035
Description
KIT DEVELOPMENT PICDEM LAB
Manufacturer
Microchip Technology
Type
MCUr
Datasheet

Specifications of DM163035

Contents
Board, Cable, Components, CD, PICkit Programmer
Processor To Be Evaluated
PIC10F, PIC12F615, PIC16F616
Data Bus Width
8 bit
Operating Supply Voltage
1.3 V to 5 V
Silicon Manufacturer
Microchip
Core Architecture
PIC
Core Sub-architecture
PIC10, PIC12, PIC16
Silicon Core Number
PIC10F, PIC12F, PIC16F
Silicon Family Name
PIC10F2xx, PIC12F6xx, PIC16F6xx
Lead Free Status / RoHS Status
Lead free / RoHS Compliant
For Use With/related Products
PIC10F206, PIC16F690, PIC16F819
Lead Free Status / Rohs Status
Lead free / RoHS Compliant
PICDEM
DS41369A-page 62
TM
4.2.4
4.2.4.1
To configure the peripherals used in this lab, the following registers are used:
1. Comparator C1 Control Register 0: CM1CON0 (Register 8-1 in Section 8 of the
4.2.4.2
In this lab, Comparator 1 on the PIC16F690 is configured to perform a simple compare.
A potentiometer connected to the inverting input (C12IN0-) of the comparator will be
compared against the 2.5V connected to the non-inverting input (C1IN+) from a simple
voltage divider circuit. An LED connected to the output of Comparator 1 (C1OUT) will
light or turn off as follows:
• inverting reference > non-inverting reference = C1OUT is low = LED OFF
• inverting reference < non-inverting reference = C1OUT is high = LED ON
The PICDEM™ Development Board configuration schematic is shown in Figure 4-1.
FIGURE 4-1:
The software flowchart for this lab is shown in Figure 4-2.
Lab Development Board User’s Guide
- Enables Comparator C1.
- Configures Comparator output polarity.
- Enables the Comparator result to be available internal only or on the C1OUT
- Select inverting and non-inverting Comparator 1 reference input sources.
PIC16F690 Data Sheet)
pin (pin 17).
J8
Lab 1: Simple Compare
NEW REGISTERS USED IN THIS LAB
OVERVIEW
10
1
2
3
4
5
6
7
8
9
U2
C12IN0-
C1OUT
SCHEMATIC FOR COMPARATOR LAB 1
C1IN+
20
19
18
17
16
15
14
13
12
11
J9
LED1
V
R4
470Ω
SS
V
DD
V
R1
10KΩ
R2
10KΩ
SS
© 2009 Microchip Technology Inc.
V
DD
V
R3
100KΩ
SS

Related parts for DM163035