68 of 158
62 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 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