Page 35 of 346 Start Back Next End ZBasic System Library 23 ZBasic Microcontrollers xmega16d4, xmega32d4 T44 TimerC0 TimerD0 TimerE0 11, C.1 21, D.1* 29, E.1 xmega64d3, xmega128d3, xmega192d3, xmega256d3 T64 TimerC0 TimerD0 TimerE0 TimerF0 17, C.1 27, D.1* 37, E.1 47, F.1 xmega64a3, xmega128a3, xmega256a3, xmega256a3b T64 TimerC0 TimerD0 TimerE0 TimerE1 TimerF0 17, C.1 27, D.1* 37, E.1 41, E.5 47, F.1 xmega64a1, xmega128a1 T100 TimerC0 TimerD0 TimerE0 TimerE1 TimerF0 TimerF1 16, C.1 26, D.1* 36, E.1 40, E.5 46, F.1 50, F.5 * Denotes the default OutputCapture pin. 1 Requires the TIMER1_COMPC ISR and supports OutputCapture modulation. As noted in the two tables above, some devices support OutputCapture modulation on a dedicated pin. This capability allows the OutputCapture waveform to modulate the compare output of the Serial Timer. See the description of OutputCaptureEx for more information. SPI Controllers 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, some 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 ZX devices use an external EEPROM for user program storage and, if so, the I/O pin used for the chip select. For devices that do not use an external EEPROM for user program storage, the indicated chip select pin can be used for general purpose I/O with the proviso that if the 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 EEPROM Usage and Control/Data Pins By Controller Index for ZX Devices ZX Device Uses SPI EEPROM Ctrl. Idx. CS Pin SCK Pin MOSI Pin MISO Pin ZX-24, ZX-24a, ZX-24p Yes 0¹ B.4 B.7 B.5 B.6 ZX-40, ZX-40a, ZX-40p Yes 0 5, B.4 8, B.7 6, B.5 7, B.6 ZX-44, ZX-44a, ZX-44p Yes 0 44, B.4 3, B.7 1, B.5 2, B.6 ZX-24x No 0¹ 1 D.4 8, C.4 D.7 5. C.7 D.5 7, C.5 D.6 6, C.6 ZX-24n, ZX-24r, ZX-24s No 0¹ B.4 B.7 B.5 B.6 ZX-40n, ZX-40r, ZX-40s, ZX-40t No 0 5, B.4 8, B.7 6, B.5 7, B.6 ZX-44n, ZX-44r, ZX-44s, ZX-44t No 0 44, B.4 3, B.7 1, B.5 2, B.6 ZX-328n, ZX-328l No 0 16, B.2 19, B.5 17, B.3 18, B.4 ZX-32n, ZX-32l No 0 14, B.2 17, B.5 15, B.3 16, B.4 ZX-1281, ZX-1281n No 0 10, B.0 11, B.1 12, B.2 13, B.3 ZX-1280, ZX-1280n No 0 19, B.0 20, B.1 21, B.2 22, B.3 ZX-32a4 No 0 24, D.4 27, D.7 25, D.5 26, D.6