ZBasic Language Reference
166
ZBasic Microcontrollers
Configuration Element
Syntax
EEPROM type and size
-z0:<EEPROM type>
External RAM configuration
-z1:<ext RAM cfg>
ATN character
-z3:<ATN char>
Default Com1 speed (VM devices only)
-z4:<Com1 speed index>
Sign-on flag
-z5:<sign-on flag>
Byte value
-zb:<addr>:<value>
Word value
-zw:<addr>:<value>
Double word value
-zd:<addr>:<value>
In general, the values for the parameters to the configuration option may be given in decimal or
hexadecimal form. A prefix of 0x indicates hexadecimal form.
-z0:<EEPROM type>
This configuration option is only useful for devices that require an external EEPROM and where you can
choose which EEPROM to use, e.g. some ZX-40 or ZX-44 series devices. The <EEPROM type>
element is a 16-bit composite value that specifies characteristics of the attached EEPROM. The least
significant byte specifies the page size of the EEPROM in terms of 16-byte blocks. For example, a page
size of 64 bytes would be specified using the value 4 while a page size of 128 bytes would be specified
using the value 8. The least significant bit of the most significant byte specifies whether the EEPROM
requires full-page writes. If the EEPROM supports writing less than a full page, this bit should be off.
The example configuration specifications below all use the hexadecimal form. Note that the values
specified in the examples are shown with 4 hexadecimal digits for clarity but leading zero digits may be
omitted.
-z0:0x0004
This specifies an EEPROM with a 64-byte page that supports partial page writes. This is the
configuration to use for the Atmel AT25256A. This is the default configuration, ZX devices come pre-
configured for this EEPROM.
-z0:0x0104
This specifies an EEPROM with a 64-byte page that requires full page writes. This is the configuration
value to use for the Atmel AT25HP256.
-z0:0x0008
This specifies an EEPROM with a 128-byte page that supports partial page writes. This is the
configuration value to use for the ST Microelectronics M95512.
-z0:0x0108
This specifies an EEPROM with a 128-byte page that requires full page writes. This is the configuration
value to use for the Atmel AT25HP512.
-z1:<ext RAM cfg>
The value for the external RAM configuration is described earlier in this document. See the section
describing Option ExtRamConfig.
-z3:<ATN char>
The value of the ATN character configuration must be in the range 0 to 31 (&H00 to &H1F). The value of
zero indicates that no ATN character is being specified.
|