74 of 208
ZBasic Language Reference 66 ZX Microcontroller Family BasicX Register New Register ADCSR ADCSRA GIMSK GICR MCUSR MCUCSR UBRR UBRRL¹ UCR UCSRB USR UCSRA Notes: ¹ The serial port baud rate control register is 16-bits wide in the mega32 CPU. The upper bits are referred to as UBRRH. 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