DM163035 Microchip Technology, DM163035 Datasheet - Page 36

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 32
TM
• PORTC
• Timer0
3.3.6.3
Using the firmware developed in the previous lab, make the following changes:
1. Copy/paste the code in Example 3-8 at the top of the main firmware source file
EXAMPLE 3-8:
2. Copy/paste the code in Example 3-9 into the Initialize() over the code from
Lab Development Board User’s Guide
The Initialize() now configures the PIC16F690 peripherals as follows:
- Set all bits in PORTC high
- Make all PORTC pins digital output
- Use the internal instruction clock (F
- Increment TMR0 register on low-to-high transition of F
- Assign the prescaler to Timer0 and configure to increment on every 256th
/*---------------------------------------------------------
---------------------------------------------------------*/
void Delay_1S(void)
{
}
transition of F
under the heading labeled:
/**SUPPORT ROUTINES**********************************/
the previous lab.
Subroutine: Delay_1S
Parameters: none
Returns:nothing
Synopsis:Creates a 1S delay when called
//Create an 8-bit variable called counter
//and initialize it to 0
unsigned char counter = 0;
while(counter <=
{
//Make sure the T0IF is cleared
T0IF = 0;
//Clear the TMR0 register
TMR0 = 0;
//Sit here and wait for Timer0 to overflow
}
PROCEDURE
while (T0IF == 0);
++counter;
OSC
DELAY_1S() CODE FOR LAB 3
/4
15)
OSC
/4) as the TMR0 register clock source
© 2009 Microchip Technology Inc.
OSC
/4

Related parts for DM163035