DM163035 Microchip Technology, DM163035 Datasheet - Page 86

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 82
TM
EXAMPLE 5-4:
5. Copy/paste the code in Example 5-5 into the Decide() section labeled:
EXAMPLE 5-5:
6. Copy/paste the code in Example 5-6 into the Do_Outputs() section labeled:
EXAMPLE 5-6:
7. Copy/paste the code in Example 5-7 into the main() section labeled:
EXAMPLE 5-7:
8. Compile the project. There should be no errors.
Lab Development Board User’s Guide
//ADD DECIDE CODE HERE
//ADD DO OUTPUTS CODE HERE
//ADD MAIN CODE HERE
//Perform an ADC of potentiometer connected to pin 13
//Wait the required acquisition time
Delay_1mS();
//Start conversion by setting the GO/DONE bit.
GODONE = 1;
//Wait for ADC conversion to complete
//Polling the GO/DONE bit
// 0 = ADC completed
// 1 = ADC in progress
while(GODONE == 1);
//Assign the upper 4 bits of ADRESH to the lower 4 bits
//of LED_Output
LED_Output = ADRESH >> 4; //Shifts the bits in ADRESL 4 bits
//Assign contents of LED_Output to PORTC to light the connected
//LEDs
PORTC = LED_Output;
Initialize(); //Initialize the relevant registers
while(1)
{
}
Get_Inputs();
Decide();
Do_Outputs();
GET_INPUTS() CODE FOR ADC LAB 1
DECIDE() CODE FOR ADC LAB 1
D0_OUTPUTS() CODE FOR ADC LAB 1
MAIN() CODE FOR ADC LAB 1
//to the right
© 2009 Microchip Technology Inc.

Related parts for DM163035