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

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 74
TM
2. Build up the project flowchart exactly the same as was done in the previous lab
3. A new line of code will be added immediately following the CM1CON0 initializa-
The Properties: C Code window should now resemble Figure 3-9.
FIGURE 3-9:
Click OK to continue.
4. Compile the project to chip, there should be no errors.
3.2.5.4
The application should behave exactly as it did in Lab 1 with the exception of less
components used.
The solution for this project can be found in the
C:\PICDEM_Lab\Flowcode\Comparator_Labs\Comparator_Lab2\solution
directory.
Lab Flowcode Companion Guide
Note:
(Figure 3-5 and Figure 3-7). There are some changes to the Init_Comparator
macro that are needed in order to configure the CV
CM1CON0 register configuration will result in a different binary value by setting
bit 2 (C1R: Comparator C1 Reference Select bit) to 1 so that the CV
connects to the non-inverting input of Comparator 1 changing the C code to:
cm1con0 = 0b10100100; // configures comparator 1 with CVREF
tion to configure the Voltage Reference Control Register (VRCON) whose output
is now connected to the non-inverting reference input of Comparator 1. Add the
following code:
vrcon = 0b10101100; //Initializes CVREF to 2.5V
TESTING THE APPLICATION
The last four bits (i.e., 0bxxxx1100) are the Comparator Voltage
Reference Value Selection bits that set CV
UPDATED PROPERTIES: C CODE WINDOW FOR
INIT_COMPARATOR MACRO
//as non-inverting input to
//Comparator 1
REF
REF
to 2.5V.
peripheral. Therefore, the
© 2009 Microchip Technology Inc.
REF
output

Related parts for DM163035+TEFLCST3