Start Back Next End
  
ZBasic System Library
28
ZBasic Microcontrollers
mega329, mega329P, mega329PA,
mega649, mega649A, mega649P
mega3250, mega3250P,
mega6450, mega6450A, mega6450P,
mega3290, mega3290P,
mega6490, mega6490A, mega6490P
T100
0
6, E.4
7, E.5
mega640, mega1280, mega2560
T100
0
43, D.0
44, D.1
xmegaA1, xmegaA1U
T100
0
1
2
3
16, C.1
36, E.1
26, D.1
46, F.1
15, C.0
35, E.0
25, D.0
45, F.0
xmegaA3, xmegaA3U, xmegaA3B, xmegaA3BU, xmegaD3
T64
0
1
16, C.1
36, E.1
15, C.0
35, E.0
xmegaA4, xmegaA4U
T44
0
1
11, C.1
29, E.1
10, C.0
28, E.0
xmegaD4
T44
0
1
11, C.1
29, E.1
10, C.0
28, E.0
Analog-to-Digital Converters
Most ZBasic target devices have a multiple analog inputs.  These inputs may be fed to an internal analog-
to-digital converter (ADC) or they may be used to perform analog level comparisons.  The I/O port
containing the analog inputs varies by target device as indicated in the table below.  The System Library
routines GetADC() and ADCtoCom1() use the ADC.  The analog comparator is used by
WaitForInterrupt() when configured to await an analog comparator event.
Analog Input Pins for ZX Devices
ZX Device
Analog Inputs
ZX-24, ZX-24a, ZX-24p, ZX-24n, ZX-24r, ZX-24s, ZX-24t
13-20
ZX-40, ZX-40a, ZX-40p, ZX-40n, ZX-40r, ZX-40s, ZX-40t
33-40
ZX-44, ZX-44a, ZX-44p, ZX-44n, ZX-44r, ZX-44s, ZX-44t
30-37
ZX-24x, ZX-24u
13-20, B.0-B.3
ZX-328n, ZX-328l
23-28
ZX-32n, ZX-32l
23-28, 19, 22
ZX-1281, ZX-1281n
54-61
ZX-1280, ZX-1280n
82-89, 90-97
ZX-32a4
40-44, 1-3, 4-7
ZX-128a1
95-100, 1-2, 5-12
ZX-24e, ZX-24ae, ZX-24pe, ZX-24ne
29-36
ZX-24pu, ZX-24nu, ZX-24ru, ZX-24su
29-36
ZX-128e, ZX-128ne, ZX-1281e, ZX-1281ne
54-61
ZX-24xu
29-36, 25-28
ZX-328nu
17-24
Analog Input Pins for Generic Target Devices
Target Device
Pkg.
Analog Inputs
tiny2313, tiny2313A, tiny4313, mega8515, mega161, mega162,
mega8U2, mega16U2, mega32U2, AT90USB82, AT90USB162
all
-
tiny24, tiny24A, tiny44, tiny44A, tiny84, tiny84A
P14
6-13
Q20
1-5, 15, 16, 20
tiny441, tiny841
S14
2-13
Q20
1-5, 11-16, 20
tiny48, tiny88
P28
23-28
T28
19-24
T32
23-28, 19, 22
tiny87, tiny167
S20
1-4, 7-10, 12, 13
T32
29-31, 3, 9-12, 15,
Previous page Top Next page