ZBasic Language Reference
67
ZX Microcontroller Family
DDRB
ICR1H
PCIFR
SPDR0
TCNT2
UCSR0B
DDRC
ICR1L
PCMSK0
SPH
TIFR0
UCSR0C
DDRD
MCUCR
PCMSK1
SPL
TIFR1
UDR0
DIDR0
MCUSR
PCMSK2
SPMCSR
TIFR2
UBRR1H
DIDR1
MONDR
PCMSK3
SPSR0
TIMSK0
UBRR1L
EEARH
OCDR
PINA
SREG
TIMSK1
UCSR1A
EEARL
OCR0A
PINB
TCCR0A
TIMSK2
UCSR1B
EECR
OCR0B
PINC
TCCR0B
TWAM
UCSR1C
The 16-bit registers for the mega644P-based ZX models are shown in the table below.
ADC
EEAR
ICR1
OCR1A
OCR1B
SP
TCNT1
UBRR0
UBRR1
ZX-24r, ZX-40r, ZX-44r, ZX-24s, ZX-40s and ZX-44s Registers
The pre-defined CPU registers for these devices match those available on the ATmega1284P CPU and
all are Byte values. Discussion of the use of these registers is beyond the scope of this document. See
the Atmel documentation for a full description. Also, be advised that modifying some of these registers
may severely alter the behavior of the control program, possibly even rendering it inoperable.
CPU Registers for mega1284P-based ZX Models
ACSR
EEDR
OCR0A
PCMSK1
SPL
TCNT1L
TWDR
ADCH
EICRA
OCR0B
PCMSK2
SPMCSR
TCNT2
TWSR
ADCL
EIFR
OCR1AH
PCMSK3
SPSR0
TCNT3H
UBRR0H
ADCSRA
EIMSK
OCR1AL
PINA
SREG
TCNT3L
UBRR0L
ADCSRB
GPIOR0
OCR1BH
PINB
TCCR0A
TIFR0
UCSR0A
ADMUX
GPIOR1
OCR1BL
PINC
TCCR0B
TIFR1
UCSR0B
ASSR
GPIOR2
OCR2A
PIND
TCCR1A
TIFR2
UCSR0C
DDRA
GTCCR
OCR2B
PORTA
TCCR1B
TIFR3
UDR0
DDRB
ICR1H
OCR3AH
PORTB
TCCR1C
TIMSK0
UBRR1H
DDRC
ICR1L
OCR3AL
PORTC
TCCR2A
TIMSK1
UBRR1L
DDRD
ICR3H
OCR3BH
PORTD
TCCR2B
TIMSK2
UCSR1A
DIDR0
ICR3L
OCR3BL
PRR0
TCCR3A
TIMSK3
UCSR1B
DIDR1
MCUCR
OSCCAL
SMCR
TCCR3B
TWAM
UCSR1C
EEARH
MCUSR
PCICR
SPCR0
TCCR3C
TWAR
UDR1
EEARL
MONDR
PCIFR
SPDR0
TCNT0
TWBR
WDTCSR
EECR
OCDR
PCMSK0
SPH
TCNT1H
TWCR
The 16-bit registers for the mega1284P-based ZX models are shown in the table below.
ADC
ICR1
OCR1A
OCR3A
SP
TCNT3
UBRR1
EEAR
ICR3
OCR1A
OCR3A
TCNT1
UBRR0
ZX-328n, ZX-328l, ZX-32n and ZX-32l Registers
The pre-defined CPU registers for these devices match those available on the ATmega328P CPU and all
are Byte values. Discussion of the use of these registers is beyond the scope of this document. See the
Atmel documentation for a full description. Also, be advised that modifying some of these registers may
severely alter the behavior of the control program, possibly even rendering it inoperable.
CPU Registers for mega328P-based ZX Models
ACSR
EEDR
OCR1BH
PRR
TCNT0
UBRR0H
ADCH
EICRA
OCR1BL
SMCR
TCNT1H
UBRR0L
ADCL
EIFR
OCR2A
SPCR
TCNT1L
UCSR0A
ADCSRA
EIMSK
OCR2B
SPDR
TCNT2
UCSR0B
ADCSRB
GPIOR0
OSCCAL
SPH
TIFR0
UCSR0C
ADMUX
GPIOR1
PCICR
SPL
TIFR1
UDR0
ASSR
GPIOR2
PCIFR
SPMCSR
TIFR2
WDTCSR
CLKPR
GTCCR
PCMSK0
SPSR
TIMSK0