Page 19 of 346 Start Back Next End ZBasic System Library 7 ZBasic Microcontrollers Section 2 - Resource Usage The various ZBasic target devices offer a variety of resources for use in your program, e.g. timers, interrupts, UART (hardware serial port), analog-to-digital converters, etc. Some of these resources are allocated to specific functions of ZBasic and/or are used by certain ZBasic System Library routines. The resources available on a particular target device vary and the remainder of this section documents the availability for each supported device. Consult the datasheet for the particular target device for detailed information about the device. In some of the following sub-sections, resource usage is described separately for ZX devices and generic target devices. In others, resource usage is described only in terms of the base device and it is thus necessary to know the base device underlying your particular ZX device; the table below shows the correspondence. Base CPU Type for ZX Devices ZX Device Base CPU Type ZX-24, ZX-40, ZX-44, ZX-24e mega32 ZX-24a, ZX-40a, ZX-44a, ZX-24ae mega644 ZX-24p, ZX-40p, ZX-44p, ZX-24n, ZX-40n, ZX-44n, ZX-24ne, ZX-24pe, ZX-24nu, ZX-24pu mega644P ZX-24r, ZX-40r, ZX-44r, ZX-24s, ZX-40s, ZX-44s, ZX-40t, ZX-44t, ZX-24ru, ZX-24su mega1284P ZX-328n, ZX-328l, ZX-32n, ZX-32l, ZX-328nu mega328P ZX-1280, ZX-1280n mega1280 ZX-1281, ZX-1281n, ZX-1281e, ZX-1281ne mega1281 ZX-128e, ZX-128ne mega128 ZX-128a1 xmega128A1 ZX-24x, ZX-32a4, ZX-24xu xmega32A4 Package Designation Codes In the following sub-sections, some of the tables include package designation codes for the different processor types because the pin assignments vary by package type. The table below gives package designation codes and the corresponding package types for various devices. Note, particularly, that suffixes like A, P and PA have been omitted because the package availability is generally the same irrespective of the suffix. Package Designation Codes Code Package Types Device or Family L44 PLCC-44 mega8515, mega8535 P14 PDIP-14, SOIC-14 tiny24, tiny44, tiny84 P20 PDIP-20, SOIC-20 tiny2313, tiny4313 P28 PDIP-28 tiny48, tiny88, ATmega P40 PDIP-40 ATmega Q20 VQFN-20, QFN-20, MLF-20 tiny24, tiny44, tiny2313, tiny4313 S20 TSSOP-20, SOIC-20 tiny87, tiny167 T28 TQFP-28, MLF-28, QFN-28 tiny48, tiny88, ATmega T32 TQFP-32, MLF-32, QFN-32 tiny48, tiny88, tiny87, tiny167, ATmega T44 TQFP-44, MLF-44, QFN-44 various ATmega. ATxmega T64 TQFP-64, MLF-64, QFN-64 various ATmega. ATxmega T100 TQFP-100, MLF-100, QFN-100 various ATmega. ATxmega UARTs An on-board hardware serial port, (UART, USART, or LIN/UART), is used for the Com1 serial channel (if available). By default, the UART is configured to operate at 19,200 baud and is utilized by the System