DM163045 Microchip Technology, DM163045 Datasheet - Page 24

no-image

DM163045

Manufacturer Part Number
DM163045
Description
PICDEM Lab Development Kit (with PICkit 3) General Purpose
Manufacturer
Microchip Technology
Series
PICDEM™r
Type
MCUr
Datasheet

Specifications of DM163045

Contents
Board, PIC kit 3
Lead Free Status / Rohs Status
Lead free / RoHS Compliant
For Use With/related Products
PIC Micro® MCU

Available stocks

Company
Part Number
Manufacturer
Quantity
Price
Part Number:
DM163045
Manufacturer:
MICROCHIP
Quantity:
12 000
PICDEM
DS41369A-page 20
TM
Figure 3-2 shows the software control loop that will be implemented in this lab. At
device power-up, the first functional block called from the main() is Initialize().
This function will initialize the PORTC peripheral as follows:
• Clear the PORTC register data
• Configure the ANSEL and ANSELH bits so that all associated PORTC pins are
• Configure the associated PORTC pins as all output using the TRISC register
The next function called from main() is Do_Outputs(). This function will assign
values to the PORTC register that will drive the associated pins high or low to light the
LEDs connected.
3.3.4.3
The following steps will demonstrate how to create a new project in MPLAB
more in-depth tutorial is provided in the document “Introduction to MPLAB
HI-TECH C
(DS41322) included on the accompanying CD-ROM.
1. Open MPLAB IDE by selecting Start>Microchip>MPLAB IDE vX.XX>MPLAB
2. In the MPLAB IDE toolbar, select Project>Project Wizard....
3. The Welcome dialog box should now be open. Select Next> to proceed.
4. In the Step One: window, select the PIC16F690 from the Device: drop-down
FIGURE 3-3:
5. In the Step Two: window, select the HI TECH Universal ToolSuite from the Active
Lab Development Board User’s Guide
digital
Note:
IDE.
menu and select Next> to continue. (See Figure 3-3.)
Toolsuite drop down menu. The window should now resemble Figure 3-4.
PROCEDURE
The PORT register should always be initialized to a known value before
configuring the associated TRIS bit. This avoids unexpected voltage levels
on the associated pins since at start-up port bit values are unknown.
®
PRO for the PIC10/12/16 MCU Family Lite Mode Compiler Tutorial”
STEP ONE
© 2009 Microchip Technology Inc.
®
®
IDE and
IDE. A

Related parts for DM163045