18 of 318
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, ZX-24nu, ZX-24pu USART0 Com1¹ 1, D.1 2, D.0 USART1 Com2 17, D.3 18, D.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, the Com2 signals are not, however. 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 Channel and EEPROM Usage ZX Model Uses SPI EEPROM SPI 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 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 ZX-1281, ZX-1281n No 10, B.0 ZX-1280, ZX-1280n No 19, B.0 ZX-32a4 No 24, D.4 ZX-128a1, ZX-32a4 No 29, D.4 ZX-24e, ZX-24ae, ZX-24pe, ZX-24pu Yes 24, B.4 ZX-24ne, ZX-24nu No 24, B.4 ZX-128e, ZX-128ne, ZX-1281e, ZX-1281ne No 28, B.0