69 of 172
ZBasic Language Reference 62 ZX Microcontroller Family ZX-24a, ZX-40a, and ZX-44a Registers The pre-defined CPU registers for the ZX-24a, ZX40a and ZX-44a match those available on the ATmega644 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 mega644-based ZX Models ACSR EEDR OCR1AH PIND TCCR1A TWAR ADCH EICRA OCR1AL PORTA TCCR1B TWBR ADCL EIFR OCR1BH PORTB TCCR1C TWCR ADCSRA EIMSK OCR1BL PORTC TCCR2A TWDR ADCSRB GPIOR0 OCR2A PORTD TCCR2B TWSR ADMUX GPIOR1 OCR2B PRR0 TCNT0 UBRR0H ASSR GPIOR2 OSCCAL SMCR TCNT1H UBRR0L DDRA GTCCR PCICR SPCR0 TCNT1L UCSR0A DDRB ICR1H PCIFR SPDR0 TCNT2 UCSR0B DDRC ICR1L PCMSK0 SPH TIFR0 UCSR0C DDRD MCUCR PCMSK1 SPL TIFR1 UDR0 DIDR0 MCUSR PCMSK2 SPMCSR TIFR2 WDTCSR DIDR1 MONDR PCMSK3 SPSR0 TIMSK0 EEARH OCDR PINA SREG TIMSK1 EEARL OCR0A PINB TCCR0A TIMSK2 EECR OCR0B PINC TCCR0B TWAM The 16-bit registers for the mega644-based ZX models are shown in the table below. ADC EEAR ICR1 OCR1A OCR1B SP TCNT1 UBRR0 ZX-24p, ZX-40p, ZX-44p, ZX-24n, ZX-40n and ZX-44n Registers The pre-defined CPU registers for these devices match those available on the ATmega644P 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 mega644P-based ZX Models ACSR EEDR OCR1AH PIND TCCR1A TWAR UDR1 ADCH EICRA OCR1AL PORTA TCCR1B TWBR WDTCSR ADCL EIFR OCR1BH PORTB TCCR1C TWCR ADCSRA EIMSK OCR1BL PORTC TCCR2A TWDR ADCSRB GPIOR0 OCR2A PORTD TCCR2B TWSR ADMUX GPIOR1 OCR2B PRR0 TCNT0 UBRR0H ASSR GPIOR2 OSCCAL SMCR TCNT1H UBRR0L DDRA GTCCR PCICR SPCR0 TCNT1L UCSR0A 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 mega644-based ZX models are shown in the table below. ADC EEAR ICR1 OCR1A OCR1B SP TCNT1 UBRR0 UBRR1