ZBasic System Library
iii
ZBasic Microcontrollers
Table of Contents
Section 1 - Routines by Category..............................................................................................
1
...................................................................................................
1
Mathematical Functions..........................................................................................................
1
Memory-related Routines.......................................................................................................
2
String-related Routines...........................................................................................................
2
Data Manipulation Routines...................................................................................................
2
Serial Communication Routines............................................................................................
3
..............................................................................................
3
Input/Output Routines.............................................................................................................
4
Task-related Routines.............................................................................................................
5
Miscellaneous Routines..........................................................................................................
5
Section 2 - Resource Usage.......................................................................................................
7
.................................................................................................
7
UARTs.......................................................................................................................................
8
Timers......................................................................................................................................11
I/O Timer Prescaler Values..................................................................................................13
Timer Output Compare Pin Mapping..................................................................................15
...............................................................................................................15
.................................................................................................................18
............................................................................................................20
.........................................................................................................22
SPI Controllers.......................................................................................................................24
.......................................................................................................................27
Analog-to-Digital Converters................................................................................................28
Digital-to-Analog Converters................................................................................................29
.............................................................................................................30
.................................................................................................................30
Pin Change Interrupts...........................................................................................................33
.............................................................................................35
Interrupt Service Routines....................................................................................................36
Program Memory Page Size................................................................................................38
Section 3 -Processor Speed and Device Configuration Issues.........................................39
.........................................................................................40
RTC Scale Factor (RTC_SCALE).......................................................................................40
.......................................................................40
.................................................................................40
RTC Timer Frequency (F_RTC_TIMER)...........................................................................40
......................................................................................40
......................................................................................41
|