Navigation bar
  Start Previous page
 70 of 172 
Next page End  

ZBasic Language Reference
63
ZX Microcontroller Family
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
DDRB
ICR1H
PCMSK1
SREG
TIMSK1
DDRC
ICR1L
PCMSK2
TCCR0A
TIMSK2
DDRD
MCUCR
PINB
TCCR0B
TWAMR
DIDR0
MCUSR
PINC
TCCR1A
TWAR
DIDR1
OCR0A
PIND
TCCR1B
TWBR
EEARH
OCR0B
PORTB
TCCR1C
TWCR
EEARL
OCR1AH
PORTC
TCCR2A
TWDR
EECR
OCR1AL
PORTD
TCCR2B
TWSR
The 16-bit registers for the mega328P-based ZX models are shown in the table below.
ADC
EEAR
ICR1
OCR1A 
OCR1B
SP
TCNT1
UBRR0
ZX-1281 and ZX-1281n Registers
The pre-defined CPU registers for the ZX-1281 and ZX-1281n match those available on the ATmega1281
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 mega1281-based ZX Models
ACSR
EECR
MCUSR
OCR4AL
PINE
SREG
TCNT2
TWAR
ADCH
EEDR
MONDR
OCR4BH
PINF
TCCR0A
TCNT3H
TWBR
ADCL
EICRA
OCDR
OCR4BL
PING
TCCR0B
TCNT3L
TWCR
ADCSRA
EICRB
OCR0A
OCR4CH
PORTA
TCCR1A
TCNT4H
TWDR
ADCSRB
EIFR
OCR0B
OCR4CL
PORTB
TCCR1B
TCNT4L
TWSR
ADMUX
EIMSK
OCR1AH
OCR5AH
PORTC
TCCR1C
TCNT5H
UBRR0H
ASSR
EIND
OCR1AL
OCR5AL
PORTD
TCCR2A
TCNT5L
UBRR0L
CLKPR
GPIOR0
OCR1BH
OCR5BH
PORTE
TCCR2B
TIFR0
UBRR1H
DDRA
GPIOR1
OCR1BL
OCR5BL
PORTF
TCCR3A
TIFR1
UBRR1L
DDRB
GPIOR2
OCR1CH
OCR5CH
PORTG
TCCR3B
TIFR2
UCSR0A
DDRC
GTCCR
OCR1CL
OCR5CL
PRR0
TCCR3C
TIFR3
UCSR0B
DDRD
ICR1H
OCR2A
OSCCAL
PRR1
TCCR4A
TIFR4
UCSR0C
DDRE
ICR1L
OCR2B
PCICR
RAMPZ
TCCR4B
TIFR5
UCSR1A
DDRF
ICR3H
OCR3AH
PCIFR
SMCR
TCCR4C
TIMSK0
UCSR1B
DDRG
ICR3L
OCR3AL
PCMSK0
SPCR
TCCR5A
TIMSK1
UCSR1C
DIDR0
ICR4H
OCR3BH
PCMSK1
SPDR
TCCR5B
TIMSK2
UDR0
DIDR1
ICR4L
OCR3BL
PINA
SPH
TCCR5C
TIMSK3
UDR1
DIDR2
ICR5H
OCR3CH
PINB
SPL
TCNT0
TIMSK4
WDTCSR
EEARH
ICR5L
OCR3CL
PINC
SPMCSR
TCNT1H
TIMSK5
XMCRA
EEARL
MCUCR
OCR4AH
PIND
SPSR
TCNT1L
TWAMR
XMCRB
Previous page Top Next page