Page 36 of 346 Start Back Next End ZBasic System Library 24 ZBasic Microcontrollers 1 23, C.4 17, C.7 15, C.5 16, C.6 ZX-128a1 No 0 1 2 3 29, D.4 19, C.4 39, E.4 49, F.4 32, D.7 22, C.7 42, E.7 52, F.7 30, D.5 20, C.5 40, E.5 50, F.5 31, D.6 21, C.6 41, E.6 51, F.6 ZX-24e, ZX-24ae, ZX-24pe, ZX-24pu Yes 0 24, B.4 21, B.7 23, B.5 22, B.6 ZX-24ne, ZX-24nu, ZX-24ru, ZX-24su No 0 24, B.4 21, B.7 23, B.5 22, B.6 ZX-128e, ZX-128ne, ZX-1281e, ZX-1281ne No 0 28, B.0 27, B.1 26, B.2 25, B.3 ZX-328nu No 0 13, B.2 16, B.5 14, B.3 15, B.4 ZX-24xu No 0 1 16, D.4 8, C.4 13, D.7 5. C.7 15, D.5 7, C.5 14, D.6 6, C.6 ¹ The SPI pins are found along the edge of the board between pins 1 and 24 For generic target devices, user programs are always stored in internal Flash memory. The table below shows the chip select pin associated with each on-chip SPI controller as well as the SPI control/data pins. As described above, the SPI chip select pin(s) may be used for general purpose I/O except that if the related SPI controller is used in the application program the chip select pin must either be an output or it must be held high during SPI transactions SPI Control/Data Pins By Controller Index for Generic Target Devices Target Device Pkg. Ctrl. Idx. CS Pin SCK Pin MOSI Pin MISO Pin tiny24, tiny24A, tiny44, tiny44A, tiny84, tiny2313, tiny2313A, tiny4313 all - - tiny48, tiny88 P28 0 16, B.2 19, B.5 17. B.3 18, B.4 T28 12, B.2 15, B.5 13. B.3 14, B.4 T32 14, B.2 17, B.5 15. B.3 16, B.4 tiny87, tiny167 S20 9, A.6 8, A.5 7, A.4 3, A.2 T32 11, A.6 10, A.5 9, A.4 31, A.2 mega48, mega48A, mega48P, mega48PA, mega8, mega8A, mega88, mega88A, mega88P, mega88PA, mega168, mega168A, mega168P, mega168PA, mega328, mega328P P28 0 16, B.2 19, B.5 17, B.3 18, B.4 T28 12, B.2 15, B.5 13, B.3 14, B.4 T32 14, B.2 17, B.5 15, B.3 16, B.4 mega16, mega16A, mega164A, mega164P, mega164PA, mega32, mega32A, mega324P, mega324PA, mega644, mega644A, mega644P, mega644PA, mega1284P, mega161, mega162, mega163, mega323 P40 0 5, B.4 8, B.7 6, B.5 7, B.6 T44 44, B.4 3, B.7 1, B.5 2, B.6 mega64, mega64A, mega128, mega128A, mega1281, mega2561, AT90CAN32, AT90CAN64, AT90CAN128 T64 0 10, B.0 11, B.1 12, B.2 13, B.3 mega640, mega1280, mega2560 T100 0 19, B.0 20, B.1 21, B.2 22, B.3 mega8U2, mega16U2, mega32U2 AT90USB82, AT90USB162 T32 0 14, B.0 15, B.1 16, B.2 17, B.3 mega16U4, mega32U4 T44 0 8, B.0 9, B.1 10, B.2 11, B.3 mega8515, mega8535 P40 0 5, B.4 8, B.7 6, B.5 7, B.6 T44 44, B.4 8, B.7 6, B.5 7, B.6 L44 6, B.4 9, B.7 7, B.5 8, B.6 mega165, mega165A, mega165P, mega165PA, mega325, mega325P, mega645, mega645A, mega645P, mega169, mega169A, mega169P, mega169PA, mega329, mega329P, mega329PA, mega649, mega649A, mega649P T64 0 10, B.0 11, B.1 12, B.2 13, B.3 mega3250, mega3250P, mega6450, mega6450A, mega6450P, mega3290, mega3290P, mega6490, T100 0 19, B.0 20, B.1 21, B.2 22, B.3