DM163045 Microchip Technology, DM163045 Datasheet - Page 16

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
2.4
SD41369A-page 12
MPLAB
TM
®
IDE DOWNLOAD INSTRUCTIONS
1. Initalize():
2. Get_Inputs():
3. Decide():
4. Do_Outputs():
5. Timing():
Example 2-1 shows a typical main() calling the various functions that make up the
software control loop.
EXAMPLE 2-1:
An infinity loop will be used by all labs in this user’s guide created using a while
loop that repeatedly call the functions within the curly braces as long as there is power
to the microcontroller.
Global variables are used wherever needed in lieu of passing variables between
functions.
The following steps outline how to download the latest version of the MPLAB IDE and
HI-TECH C
mended that all open programs and applications are closed to expedite the installation
process.
Lab Development Board User’s Guide
void main(void)
{
}
- Initializes the microcontroller, the peripherals used in the application and any
- Obtains any input information either on-chip (from internal registers, etc...) or
- Makes decisions based on the input information gathered in the previous
- Based on the decisions made in the previous function, this function outputs
- This function determines how fast the software control loop executes.
global variables used by multiple functions.
off-chip (pin voltage levels).
function to manipulate global variables.
data onto the pins of the microcontroller or to registers within the device.
}
Initialize(); //Initialize the relevant registers
while(1)
{
®
Decide();//Make any decisions
Do_Outputs(); //Perform any outputs
Timing();//Sets execution rate of the
//Software Control Loop
PRO for the PIC10/12/16 MCU Families compiler. It is strongly recom-
TYPICAL SOFTWARE CONTROL LOOP MAIN() USED IN
LABS
© 2009 Microchip Technology Inc.

Related parts for DM163045