12.07.2015 Views

ATmega32A Datasheet - Sunrom Technologies

ATmega32A Datasheet - Sunrom Technologies

ATmega32A Datasheet - Sunrom Technologies

SHOW MORE
SHOW LESS
  • No tags were found...

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

<strong>ATmega32A</strong>Table 12-11. Overriding Signals for Alternate Functions in PC3:PC0 (1)SignalName PC3/TMS PC2/TCK PC1/SDA PC0/SCLPUOE JTAGEN JTAGEN TWEN TWENPUOV 1 1 PORTC1 • PUD PORTC0 • PUDDDOE JTAGEN JTAGEN TWEN TWENDDOV 0 0 SDA_OUT SCL_OUTPVOE 0 0 TWEN TWENPVOV 0 0 0 0DIEOE JTAGEN JTAGEN 0 0DIEOV 0 0 0 0DI – – – –AIO TMS TCK SDA INPUT SCL INPUTNote: 1. When enabled, the Two-wire Serial Interface enables slew-rate controls on the output pinsPC0 and PC1. This is not shown in the figure. In addition, spike filters are connected betweenthe AIO outputs shown in the port figure and the digital logic of the TWI module.12.3.4 Alternate Functions of Port DThe Port D pins with alternate functions are shown in Table 12-12.Table 12-12.Port PinPD7PD6PD5PD4PD3PD2PD1PD0Port D Pins Alternate FunctionsAlternate FunctionOC2 (Timer/Counter2 Output Compare Match Output)ICP1 (Timer/Counter1 Input Capture Pin)OC1A (Timer/Counter1 Output Compare A Match Output)OC1B (Timer/Counter1 Output Compare B Match Output)INT1 (External Interrupt 1 Input)INT0 (External Interrupt 0 Input)TXD (USART Output Pin)RXD (USART Input Pin)The alternate pin configuration is as follows:• OC2 – Port D, Bit 7OC2, Timer/Counter2 Output Compare Match output: The PD7 pin can serve as an external outputfor the Timer/Counter2 Output Compare. The pin has to be configured as an output (DDD7set (one)) to serve this function. The OC2 pin is also the output pin for the PWM mode timerfunction.• ICP1 – Port D, Bit 6ICP1 – Input Capture Pin: The PD6 pin can act as an Input Capture pin for Timer/Counter1.8155C–AVR–02/1164

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!