DV164101 Microchip Technology, DV164101 Datasheet - Page 54

KIT DEV PICKIT1 FLASH 8/14PIN

DV164101

Manufacturer Part Number
DV164101
Description
KIT DEV PICKIT1 FLASH 8/14PIN
Manufacturer
Microchip Technology
Series
PICkit™ 1r
Type
MCUr
Datasheets

Specifications of DV164101

Contents
PIC Kit 1 Circuit Board, CD-ROMs, USB Interface Cable and Booklet
Processor To Be Evaluated
PIC12F675
Interface Type
USB
Silicon Manufacturer
Microchip
Core Architecture
PIC
Core Sub-architecture
PIC12, PIC16
Silicon Core Number
PIC12F, PIC16F
Silicon Family Name
PIC12F6xx, PIC16F6xx
Rohs Compliant
NA
Lead Free Status / RoHS Status
Lead free / RoHS Compliant
For Use With/related Products
Microchip's 8-14 Pin FLASH Microcontrollers
For Use With
AC164122 - BOARD DAUGHT PICTAIL SD/MMC CARDAC164120 - BOARD SIGNAL ANALYSIS PICKIT
Lead Free Status / Rohs Status
Lead free / RoHS Compliant
Other names
DV164101R
DV164101R

Available stocks

Company
Part Number
Manufacturer
Quantity
Price
Part Number:
DV164101
Manufacturer:
Microchip Technology
Quantity:
135
PICkit
DS40051D-page 50
1 Flash Starter Kit User’s Guide
C.4.2.2
Implementing a state machine in C is quite simple to visualize. C based state machines
rely on the “switch” statement. The following example code shows a “switch” statement
being used as a state machine.
EXAMPLE C-1:
Creating a state machine in assembly is a little more difficult. In assembly, the program
flow is directed to the appropriate software module for a given state by incrementing
the Program Counter by the state variable. Incrementing the Program Counter is
comprised of incrementing PCL and PCLATH (when PCL overflows.) If a provision of
increment PCLATH is not included, then there is a risk of jumping to the wrong spot in
the program if PCL overflows. Immediately following the increment routine is a list of
“goto” statements that direct the program flow to one of the states. This method is
called a “computed goto”. The following example code shows how to use a computed
goto for a state machine.
switch (STATE) {
}
TRANSLATING STATE MACHINES INTO ASSEMBLY AND C
case (State0):
case (State1):
case (State2);
... and so on
default:
SWITCH STATEMENT
// turn LED0 on
break;
// turn LED1 on
break;
// turn LED2 on
break;
STATE = State0
state occurs,
// re-initialize the state machine
// if for some reason a undefined
 2004 Microchip Technology Inc.

Related parts for DV164101