DM163035+TEFLCST3 Microchip Technology, DM163035+TEFLCST3 Datasheet - Page 70

no-image

DM163035+TEFLCST3

Manufacturer Part Number
DM163035+TEFLCST3
Description
KIT, PICDEMLAB+FLOWCODE-HOME BUNDLE/
Manufacturer
Microchip Technology
Datasheet

Specifications of DM163035+TEFLCST3

Kit Contents
Component Kit, PICDEM Lab Development Board, PICkit 2 Programmer/ Debugger, CD Containing User Guide
Svhc
No SVHC (15-Dec-2010)
Development Tool Type
Hardware / Software - Dev
Silicon Manufacturer
Microchip
Core Architecture
PIC
Core Sub-architecture
PIC10, PIC12, PIC16
Silicon Core Number
PIC10F, PIC12F, PIC16F
Silicon Family Name
PIC10F2xx, PIC12F6xx, PIC16F6xx
Rohs Compliant
Yes
Lead Free Status / RoHS Status
Lead free / RoHS Compliant
PICDEM
DS41381A-page 66
TM
3.2.4
3.2.4.1
To configure the peripherals used in this lab, the following registers are used:
1. The Analog Select Register: ANSEL (Register 4-3 in Section 4 of the PIC16F690
2. PORTA Tri-State Register: TRISA (Register 4-2 in Section 4 of the PIC16F690
3. Comparator C1 Control Register 0: CM1CON0 (Register 8-1 in Section 8 of the
3.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. A 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
Lab Flowcode Companion Guide
- As mentioned in the previous chapter, this register is used to configure pins
- This register configures the individual pins associated with the PORTA
- This register is the main control register for the Comparator 1 peripheral. This
Note:
data sheet).
shared with analog peripherals (such as the comparator) as either digital
(clearing the individual bit to 0) or analog (setting the individual bit to ‘1’).
data sheet).
register as either input (setting the associated bit to 1) or output (clearing the
associated bit to ‘0’).
PIC16F690 data sheet).
register allows the user to configure Comparator 1 to do the following:
- Select one of 4 channels as the C1VIN- inverting reference input to
- Enable the Comparator 1 output so that it is available on the
- Invert the output of Comparator 1.
- Select either the RA0/C1IN+ pin or the internal Comparator Voltage
- Turn-on or enable the Comparator 1 peripheral.
Comparator 1.
Reference (more on this in the next lab) as the inverting reference input
to Comparator 1.
RA2/C1OUT pin or internal only.
Lab 1: Simple Compare
NEW REGISTERS USED IN THIS LAB
OVERVIEW
In the previous labs, these registers were configured automatically in the
Flowcode environment using various icons. This lab will show the reader
how to configure these registers using the C Code icon.
© 2009 Microchip Technology Inc.
3-1.

Related parts for DM163035+TEFLCST3