DM163035 Microchip Technology, DM163035 Datasheet - Page 40

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 36
TM
3.3.7.2
1. The LED_Output variable will need to be declared before it can be used.
EXAMPLE 3-11:
2. Copy/paste the code in Example 3-12 over the Initialize() code from the
EXAMPLE 3-12:
Lab Development Board User’s Guide
Using the code developed in the previous lab, make the following changes:
unsigned char LED_Output;//Variable used to set/clear PORTC bits
Copy/paste the code in Example 3-11 to the beginning of the source file under
the section marked:
//-----------------DATA MEMORY------------------------
previous lab.
//Clear PORTC to a known state
PORTC = 0b00000001;
//Configure PORTC's ANALOG/DIGITAL pins as all Digital
ANS4 = 0;//Associated with RC0
ANS5 = 0;//Associated with RC1
ANS6 = 0;//Associated with RC2
ANS7 = 0;//Associated with RC3
ANS8 = 0;//Associated with RC6
ANS9 = 0;//Associated with RC7
//Configure PORTC pins as all output
//i.e. 1 = Input, 0 = Output
TRISC0 = 0;//Associated with RC0
TRISC1 = 0;//Associated with RC1
TRISC2 = 0;//Associated with RC2
TRISC3 = 0;//Associated with RC3
TRISC4 = 0;//Associated with RC4
TRISC5 = 0;//Associated with RC5
TRISC6 = 0;//Associated with RC6
TRISC7 = 0;//Associated with RC7
//Configure Timer0 as follows:
T0CS = 0; //Use the internal instruction clock
T0SE = 0;//Increment TMR0 on low-to-high
PSA = 0;//Assign the prescaler to
//Configure Timer0 prescaler to increment
//TMR0 every 256 FOSC/4 clock transitions
PS0 = 1;
PS1 = 1;
PS2 = 1;
//Initialize LED_Output to all zeros
LED_Output = 0b00000000;
PROCEDURE
//FOSC/4 as the clock source
//FOSC/4 transition
//Timer0
LED_OUTPUT VARIABLE DECLARATION FOR LAB 4
INITIALIZE() CODE FOR LAB 4
© 2009 Microchip Technology Inc.

Related parts for DM163035