iii
Function Definition .................................................................................................................30
Functional Overview..................................................................................................................31
I2C ........................................................................................................................................31
ADC ......................................................................................................................................32
Analog Comparator ...............................................................................................................33
CAN Bus ...............................................................................................................................34
CCP1 ....................................................................................................................................36
CCP2, CCP3, CCP4, CCP5, CCP6 .......................................................................................37
Code Profile...........................................................................................................................37
Configuration Memory ...........................................................................................................38
DAC ......................................................................................................................................39
Data Eeprom .........................................................................................................................40
Data Signal Modulator ...........................................................................................................41
External Memory ...................................................................................................................42
General Purpose I/O ..............................................................................................................42
Internal LCD ..........................................................................................................................43
Internal Oscillator ..................................................................................................................44
Interrupts ...............................................................................................................................45
Low Voltage Detect ...............................................................................................................46
PMP/EPMP ...........................................................................................................................47
Power PWM ..........................................................................................................................48
Program Eeprom ...................................................................................................................50
PSP .......................................................................................................................................52
QEI ........................................................................................................................................53
RS232 I/O .............................................................................................................................54
RTOS ....................................................................................................................................56
SPI ........................................................................................................................................58
Timer0 ...................................................................................................................................59
Timer1 ...................................................................................................................................60
Timer2 ...................................................................................................................................61
Timer3 ...................................................................................................................................61
Timer4 ...................................................................................................................................61
Timer5 ...................................................................................................................................62
TimerA ...................................................................................................................................63
TimerB ...................................................................................................................................64
USB .......................................................................................................................................65
Voltage Reference .................................................................................................................68
WDT or Watch Dog Timer .....................................................................................................69
interrupt_enabled() ................................................................................................................70
Stream I/O .............................................................................................................................70
Pre-Processor ...........................................................................................................................73
PRE-PROCESSOR ...............................................................................................................73
_attribute_x ...........................................................................................................................75
#ASM #ENDASM ..................................................................................................................76
#BIT ......................................................................................................................................86
#BUILD ..................................................................................................................................87
#BYTE ...................................................................................................................................88
#CASE ..................................................................................................................................89
_DATE_ .................................................................................................................................89
#DEFINE ...............................................................................................................................90