From c748343b00d9fa767b119eafb618c6271bb7031d Mon Sep 17 00:00:00 2001 From: Tom Haber Date: Fri, 23 May 2008 15:32:53 +0200 Subject: [PATCH] DTD adjusted --- devices/atmega162 | 437 +++++++++++++++++++++++++++++----------------------- devices/convert.xsl | 13 ++ devices/device.dtd | 13 +- 3 files changed, 266 insertions(+), 197 deletions(-) rewrite devices/atmega162 (99%) diff --git a/devices/atmega162 b/devices/atmega162 dissimilarity index 99% index 3a8a15d..a4d4f65 100644 --- a/devices/atmega162 +++ b/devices/atmega162 @@ -1,194 +1,243 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - EEARL - EEARH - EECR - EEDR - - - - PORTA - PINA - DDRA - - - - PORTB - PINB - DDRB - - - - PORTC - PINC - DDRC - - - - PORTD - PIND - DDRD - - - - PORTE - PINE - DDRE - - - - - - - TCCR0 - TCNT0 - OCR0 - TIFR - - - - TIFR - TIMSK - - - + + + + + External Pin,Power-on Reset,Brown-out Reset,Watchdog Reset,and JTAG AVR Reset. See Datasheet. + External Interrupt Request 0 + External Interrupt Request 1 + External Interrupt Request 2 + Pin Change Interrupt Request 0 + Pin Change Interrupt Request 1 + Timer/Counter3 Capture Event + Timer/Counter3 Compare Match A + Timer/Counter3 Compare Match B + Timer/Counter3 Overflow + Timer/Counter2 Compare Match + Timer/Counter2 Overflow + Timer/Counter1 Capture Event + Timer/Counter1 Compare Match A + Timer/Counter Compare Match B + Timer/Counter1 Overflow + Timer/Counter0 Compare Match + Timer/Counter0 Overflow + SPI Serial Transfer Complete + USART0, Rx Complete + USART1, Rx Complete + USART0 Data register Empty + USART1, Data register Empty + USART0, Tx Complete + USART1, Tx Complete + EEPROM Ready + Analog Comparator + Store Program Memory Read + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + MOSI:SPI Master data output,slave data input for SPI channel.When the SPI is enabled as a slave,this pin is configured as an input regardless of the setting of DDB5. When the SPI is enabled as a master,the data direction of this pin is controlled by DDB5.When the pin is forced by the SPI to be an input,the pull-up can still be controlled by the PORTB5 bit. + MISO:Master data input,slave data output pin for SPI channel.When the SPI is enabled as a master,this pin is configured as an input regardless of the setting of DDB6.When the SPI is enabled as a slave,the data direction of this pin is controlled by DDB6.When the pin is forced by the SPI to be an input,the pull-up can still be controlled by the PORTB6 bit. + SCK:Master clock output,slave clock input pin for SPI channel.When the SPI is enabled as a slave,this pin is configured as an input regardless of the setting of DDB7. When the SPI is enabled as a master,the data direction of this pin is controlled by DDB7.When the pin is forced by the SPI to be an input,the pull-up can still be controlled by the PORTB7 bit. + + RXD0,Receive Data (Data input pin for USART0).When the USART0 receiver is enabled this pin is configured as an input regardless of the value of DDD0.When USART0 forces this pin to be an input,the pull-up can still be controlled by the PORTD0 bit. + + TXD0,Transmit Data (Data output pin for USART0).When the USART0 transmitter is enabled,this pin is configured as an output regardless of the value of DDD1. + INT0,External Interrupt source 0:The PD2 pin can serve as an external interrupt source. XCK1,USART1 external clock.The Data Direction Register (DDD2)controls whether the clock is output (DDD2 set)or input (DDD2 cleared).The XCK1 pin is active only when USART1 operates in synchronous mode. + INT1,External Interrupt source 1:The PD3 pin can serve as an external interrupt source. ICP3 -Input Capture Pin:The PD3 pin can act as an input capture pin for Timer/Counter3. + TOSC1,Timer Oscillator pin 1:When the AS2 bit in ASSR is set (one)to enable asynchronous clocking of Timer/Counter2,pin PD4 is disconnected from the port,and becomes the input of the inverting oscillator amplifier.In this mode,a crystal oscillator is connected to this pin,and the pin can not be used as an I/O pin. XCK0,USART0 external clock.The Data Direction Register (DDD4)controls whether the clock is output (DDD4 set)or input (DDD4 cleared).The XCK0 pin is active only when USART0 operates in synchronous mode. OC3A,Output Compare matchA output:The PD4 pin can serve as an external output for the Timer/Counter1 output compareA.The pin has to be configured as an output (DDD4 set (one))to serve this function.The OC4A pin is also the output pin for the PWM mode timer function. + TOSC2,Timer Oscillator pin 2:When the AS2 bit in ASSR is set (one)to enable asynchronous clocking of Timer/Counter2,pin PD5 is disconnected from the port,and becomes the inverting output of the oscillator amplifier.In this mode,a crystal oscillator is connected to this pin,and the pin can not be used as an I/O pin. OC1A,Output Compare matchA output:The PD5 pin can serve as an external output for the Timer/Counter1 output compareA.The pin has to be configured as an output (DDD5 set (one))to serve this function.The OC1A pin is also the output pin for the PWM mode timer function. + WR is the external data memory write control strobe. + RD is the external data memory read control strobe. + + + + + A8,External memory interface address bit 8. PCINT8:The pin can also serve as a pin change interrupt. + A9,External memory interface address bit 9. PCINT9:The pin can also serve as a pin change interrupt. + A10,External memory interface address bit 10. PCINT11:The pin can also serve as a pin change interrupt. + A11,External memory interface address bit 11. PCINT11:The pin can also serve as a pin change interrupt. + A12,External memory interface address bit 12. TCK,JTAG Test Clock:JTAG operation is synchronous to TCK.When the JTAG inter-face is enabled,this pin can not be used as an I/O pin. PCINT12:The pin can also serve as a pin change interrupt. + A13,External memory interface address bit 13. TMS,JTAG Test Mode Select:This pin is used for navigating through the TAP-controller state machine.When the JTAG interface is enabled,this pin can not be used as an I/O pin. PCINT13:The pin can also serve as a pin change interrupt. + A14,External memory interface address bit 14. TDO,JTAG Test Data Out:Serial output data from Instruction register or Data Register. When the JTAG interface is enabled,this pin can not be used as an I/O pin. PCINT14:The pin can also serve as a pin change interrupt. + A15,External memory interface address bit 15. TDI,JTAG Test Data In:Serial input data to be shifted into the Instruction Register or Data Register (scan chains).When the JTAG interface is enabled,this pin can not be used as an I/O pin. PCINT15:The pin can also serve as a pin change interrupt. + OC1B,Output Compare matchB output:The PE0 pin can serve as an external output for the Timer/Counter1 output compareB.The pin has to be configured as an output (DDE0 set (one))to serve this function.The OC1Bpin is also the output pin for the PWM mode timer function. + ALE is the external data memory Address Latch Enable signal. + + ICP1 -Input Capture Pin:The PE2 pin can act as an input capture pin for Timer/Counter1. INT2,External Interrupt source 2:The PE2 pin can serve as an external interrupt source. + AD7 (External memory interface address and data bit 7) PCINT7 (Pin Change INTerrupt 7) + AD6 (External memory interface address and data bit 6) PCINT6 (Pin Change INTerrupt 6) + AD5 (External memory interface address and data bit 5) PCINT5 (Pin Change INTerrupt 5) + AD4 (External memory interface address and data bit 4) PCINT4 (Pin Change INTerrupt 4) + AD3 (External memory interface address and data bit 3) PCINT3 (Pin Change INTerrupt 3) + AD2 (External memory interface address and data bit 2) PCINT2 (Pin Change INTerrupt 2) + AD1 (External memory interface address and data bit 1) PCINT1 (Pin Change INTerrupt 1) + AD0 (External memory interface address and data bit 0) PCINT0 (Pin Change INTerrupt 0) + + + T0,Timer/Counter0 counter source. OC0,Output compare match output:The PB0 pin can serve as an external output for the Timer/Counter0 compare match.The PB0 pin has to be configured as an output (DDB0 set (one))to serve this function.The OC0 pin is also the output pin for the PWM mode timer function. + T1,Timer/Counter1 counter source. OC2,Output compare match output:The PB1 pin can serve as an external output for the Timer/Counter2 compare match.The PB1 pin has to be configured as an output (DDB1 set (one))to serve this function.The OC2 pin is also the output pin for the PWM mode timer function. + AIN0,Analog Comparator Positive Input.Configure the port pin as input with the internal pull-up switched off to avoid the digital port function from interfering with the function of the analog comparator. RXD1,Receive Data (Data input pin for USART1).When the USART1 receiver is enabled this pin is configured as an input regardless of the value of DDB2.When the USART1 forces this pin to be an input,the pull-up can still be controlled by the PORTB2 bit. + AIN1,Analog Comparator Negative Input.Configure the port pin as input with the internal pull-up switched off to avoid the digital port function from interfering with the function of the analog comparator. TXD1,Transmit Data (Data output pin for USART1).When the USART1 transmitter is enabled,this pin is configured as an output regardless of the value of DDB3. + SS:Slave Select input.When the SPI is enabled as a slave,this pin is configured as an input regardless of the setting of DDB4.As a slave,the SPI is activated when this pin is driven low.When the SPI is enabled as a master,the data direction of this pin is controlled by DDB4.When the pin is forced by the SPI to be an input,the pull-up can still be controlled by the PORTB4 bit. OC3B,Output Compare matchB output:The PB4 pin can serve as an external output for the Timer/Counter3 output compareB.The pin has to be configured as an output (DDB4 set (one))to serve this function.The OC3B pin is also the output pin for the PWM mode timer function. + + + + + + EEARL + EEARH + EECR + EEDR + + + + PORTA + PINA + DDRA + + + + PORTB + PINB + DDRB + + + + PORTC + PINC + DDRC + + + + PORTD + PIND + DDRD + + + + PORTE + PINE + DDRE + + + + + + + TCCR0 + TCNT0 + OCR0 + TIFR + + + + TIFR + TIMSK + + + + diff --git a/devices/convert.xsl b/devices/convert.xsl index 184cb24..5a8a6c5 100644 --- a/devices/convert.xsl +++ b/devices/convert.xsl @@ -78,6 +78,11 @@ + + + + + @@ -100,6 +105,10 @@ + + + + @@ -111,6 +120,10 @@ + + + + diff --git a/devices/device.dtd b/devices/device.dtd index c17c63b..89b68a6 100644 --- a/devices/device.dtd +++ b/devices/device.dtd @@ -6,21 +6,24 @@ - + - + @@ -34,6 +37,8 @@ + + -- 2.11.4.GIT