12.07.2015 Views

ATmega32A Datasheet - Sunrom Technologies

ATmega32A Datasheet - Sunrom Technologies

ATmega32A Datasheet - Sunrom Technologies

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

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

<strong>ATmega32A</strong>Table 16-3 shows the COM1x1:0 bit functionality when the WGM13:0 bits are set to the fastPWM mode.Table 16-3. Compare Output Mode, Fast PWM (1)COM1A1/COM1B1 COM1A0/COM1B0 Description0 0 Normal port operation, OC1A/OC1Bdisconnected.0 1 WGM13:0 = 15: Toggle OC1A on CompareMatch, OC1B disconnected (normal portoperation).For all other WGM13:0 settings, normal portoperation, OC1A/OC1B disconnected.1 0 Clear OC1A/OC1B on compare match, setOC1A/OC1B at BOTTOM,(non-inverting mode)1 1 Set OC1A/OC1B on compare match, clearOC1A/OC1B at BOTTOM,(inverting mode)Note: 1. A special case occurs when OCR1A/OCR1B equals TOP and COM1A1/COM1B1 is set. Inthis case the compare match is ignored, but the set or clear is done at BOTTOM. See “FastPWM Mode” on page 104. for more details.Table 16-4 shows the COM1x1:0 bit functionality when the WGM13:0 bits are set to the phasecorrect or the phase and frequency correct, PWM mode.Table 16-4.Compare Output Mode, Phase Correct and Phase and Frequency Correct PWM(1)COM1A1/COM1B1 COM1A0/COM1B0 Description0 0 Normal port operation, OC1A/OC1Bdisconnected.0 1 WGM13:0 = 9 or 14: Toggle OC1A onCompare Match, OC1B disconnected (normalport operation).For all other WGM13:0 settings, normal portoperation, OC1A/OC1B disconnected.1 0 Clear OC1A/OC1B on compare match whenup-counting. Set OC1A/OC1B on comparematch when downcounting.1 1 Set OC1A/OC1B on compare match when upcounting.Clear OC1A/OC1B on comparematch when downcounting.Note: 1. A special case occurs when OCR1A/OCR1B equals TOP and COM1A1/COM1B1 is set. See“Phase Correct PWM Mode” on page 106. for more details.• Bit 3 – FOC1A: Force Output Compare for Compare unit A• Bit 2 – FOC1B: Force Output Compare for Compare unit BThe FOC1A/FOC1B bits are only active when the WGM13:0 bits specifies a non-PWM mode.However, for ensuring compatibility with future devices, these bits must be set to zero when8155C–AVR–02/11113

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

Saved successfully!

Ooh no, something went wrong!