76 of 208
ZBasic Language Reference 68 ZX Microcontroller Family 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 The 16-bit registers for the mega1281-based ZX models are shown in the table below. ADC ICR5 OCR3B OCR5A TCNT3 EEAR OCR1A OCR3C OCR5B TCNT4 ICR1 OCR1B OCR4A OCR5C TCNT5 ICR3 OCR1C OCR4B SP UBRR0 ICR4 OCR3A OCR4C TCNT1 UBRR1 ZX-1280 and ZX-1280n Registers The pre-defined CPU registers for the ZX-1280 and ZX-1280n match those available on the ATmega1280 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.