Start Back Next End
  
ZBasic System Library
10
ZBasic Microcontrollers
mega649, mega649A, mega649P
mega3250, mega3250P, mega6450, mega6450A,
mega6450P, mega3290, mega3290P, mega6490,
mega6490A, mega6490P
T100
USART0
Com1
2, E.1
3, E.0
AT90USB646, AT90USB647,
AT90USB1286, AT90USB1287
T64
USART1
Com1
28, D.3
27, D.2
xmega16a4, xmega32a4
T44
USARTD0
Com1
23, D.3
22, D.2
USARTD1
Com2
27, D.7
26, D.6
USARTC0
Com7
13, C.3
12, C.2
USARTC1
Com8
17, C.7
16, C.6
USARTE0
Com9
33, E.3
32, E.2
xmega16d4, xmega32d4
T44
USARTD0
Com1
23, D.3
22, D.2
USARTC0
Com2
13, C.3
12, C.2
xmega64a3, xmega128a3, xmega256a3, xmega256a3b
T64
USARTD0
Com1
29, D.3
28, D.2
USARTD1
Com2
33, D.7
32, D.6
USARTC0
Com7
19, C.3
18, C.2
USARTC1
Com8
23, C.7
22, C.6
USARTE0
Com9
39, E.3
38, E.2
xmega64d3, xmega128d3, xmega192d3, xmega256d3
T64
USARTD0
Com1
29, D.3
28, D.2
USARTC0
Com2
19, C.3
18, C.2
xmega64a1, xmega128a1
T100
USARTD0
Com1
28, D.3
27, D.2
USARTD1
Com2
32, D.7
31, D.6
USARTC0
Com7
18, C.3
17, C.2
USARTC1
Com8
22, C.7
21, C.6
USARTE0
Com9
38, E.3
37, E.2
USARTE1
Com10
42, E.7
41, E.6
USARTF0
Com11
48, F.3
47, F.2
USARTF1
Com12
52, F.7
51, F.6
For native code devices, the table below indicates which ISRs may be automatically included in your
application when OpenCom() is used in your program.  In the ISR Name column, the symbol # should be
replaced with the corresponding USART indicator (e.g. 0 for ATtiny and ATmega or D0 for ATxmega) and
the symbol * should be replaced by the software UART timer indicator (see the Timers section). If the
compiler cannot determine which specific channel is being opened, ISRs for all channels will be included.
ISRs Required for Serial Channels
Target CPU
Com Channel
ISR Name
tiny87, tiny167
Com1
Com3-Com6
LIN_TC
Timer0_CompA
tiny2313, tiny2313A,
tiny4313
Com1
Com3-Com6
USART0_RX, USART0_TX, USART0_UDRE
Timer0_CompA
all other ATtiny
Com3-Com6
Timer*_CompA
all ATmega
Com1, Com2, Com7, Com8
Com3-Com6
USART#_RX, USART#_TX, USART#_UDRE
Timer*_CompA
all ATxmega
Com1, Com2, Com7-Com12
Com3-Com6
USART#_RXC, USART#_TXC, USART#_DRE
Timer*_CCA
Note, particularly, that if the console (typically Com1) is implicitly opened for an application, the ISRs for
the console channel will be included in the application even if OpenCom() is not explicitly invoked.  The
console channel is implicitly opened by default for all ZX devices but not so for generic target devices.
Timers
ZBasic devices generally have multiple timers, depending on the underlying CPU type, that are used for
various purposes.  One of the timers is (optionally) used to implement the real time clock (RTC), another
is used for the software-based serial ports and a third timer is used to provide the precise timing required
Previous page Top Next page