Page 38 of 346 Start Back Next End ZBasic System Library 26 ZBasic Microcontrollers T28 0 28, C.5 27, C.4 T32 0 28, C.5 27, C.4 mega16, mega16A, mega164A, mega164P, mega164PA, mega32, mega32A, mega324P, mega324PA, mega644, mega644A, mega644P, mega644PA, mega1284P, mega8535, mega163, mega323 P40 0 22, C.0 23, C.1 T44 0 19, C.0 20, C.1 mega64, mega64A, mega128, mega128A, mega1281, mega2561, AT90CAN32, AT90CAN64, AT90CAN128, AT90USB646, AT90USB647, AT90USB1286, AT90USB1287 T64 0 25, D.0 26, D.1 mega8U2, mega16U2, mega32U2 AT90USB82, AT90USB162, mega8515, mega161, mega162 T32 - - - mega16U4, mega32U4 T44 0 18, D.0 19, D.1 mega165, mega165A, mega165P, mega165PA, mega325, mega325P, mega645, mega645A, mega645P, mega169, mega169A, mega169P, mega169PA, mega329, mega329P, mega329PA, mega649, mega649A, mega649P T64 0 6, E.4 7, E.5 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 xmega16a4, xmega32a4 T44 0 1 11, C.1 29, E.1 10, C.0 28, E.0 xmega16d4, xmega32d4 T44 0 1 11, C.1 29, E.1 10, C.0 28, E.0 xmega64a3, xmega128a3, xmega256a3, xmega256a3b, xmega64d3, xmega128d3, xmega192d3, xmega256d3 T64 0 1 16, C.1 36, E.1 15, C.0 35, E.0 xmega64a1, xmega128a1 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 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 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 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