18 of 323
ZBasic System Library 8 ZX Microcontroller Family USART3 Com8 64, J.1 63, J.0 ZX-24x USARTD0 Com1¹ 1, D.3 2, D.2 USARTD1 Com2 D.7 D.6 USARTC0 Com7 9, C.3 10, C.2 USARTC1 Com8 5, C.7 6, C.6 USARTE0 Com9 19, E.3 18, E.2 ZX-32a4 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 ZX-128a1 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 ZX-24e, ZX-24ae USART0 Com1¹ 1, D.1 2, D.0 ZX-24ne, ZX-24pe USART0 Com1¹ 1, D.1 2, D.0 USART1 Com2 17, D.3 18, D.2 ZX-24nu, ZX-24pu, ZX-24ru, ZX-24su USART0 Com1 1, D.1 2, D.0 USART1 Com2 17, D.3 18, D.2 ZX-24xu USARTD0 Com1 1, D.3 2, D.2 USARTD1 Com2 13, D.7 14, D.6 USARTC0 Com7 9, C.3 10, C.2 USARTC1 Com8 5, C.7 6, C.6 USARTE0 Com9 21, E.3 22, E.2 ZX-328nu USART0 Com1 19, D.1 20, D.0 ZX-128e, ZX-128ne, ZX-1281e, ZX-1281ne USART0 Com1¹ 19, E.1 20, E.0 USART1 Com2 9, D.3 10, D.2 ¹For these devices, the Com1 signals are logically inverted. SPI Interface On some ZX devices, your program is stored in an external EEPROM that is read and written using the SPI interface. A dedicated I/O pin is required for selecting the EEPROM device during SPI operations and this I/O pin cannot be used for other purposes. However, the SPI bus itself can be used to communicate with other SPI devices. Although most SPI devices are tolerant of the ZX device using the SPI bus to fetch instructions from your program, a few are not. Generally speaking, if you can send and receive all of the data that an SPI device requires using a single call to SPICmd(), then that SPI device is usable with the ZX models that utilize an external EEPROM. The table below indicates which devices use an external EEPROM for user programs and, if so, the I/O pin used for the chip select. SPI EEPROM Usage and CS Pin By Controller Index ZX Model Uses SPI EEPROM Idx 0 CS Pin Idx 1 CS Pin Idx 2 CS Pin Idx 3 CS Pin ZX-24, ZX-24a, ZX-24p Yes B.4 ZX-40, ZX-40a, ZX-40p Yes 5, B.4 ZX-44, ZX-44a, ZX-44p Yes 44, B.4 ZX-24x No D.4 8, C.4 ZX-24n, ZX-24r, ZX-24s No B.4 ZX-40n, ZX-40r, ZX-40s No 5, B.4 ZX-44n, ZX-44r, ZX-44s No 44, B.4 ZX-328n, ZX-328l No 16, B.2 ZX-32n, ZX-32l No 14, B.2