| Electronic Components Datasheet Search |
|
ATmega16U4 Datasheet(PDF) 173 Page - ATMEL Corporation |
|
|
|||||||||||||||||||||||||||||
ATmega16U4 Datasheet(HTML) 173 Page - ATMEL Corporation |
|
173 / 408 page ![]() 173 7766D–AVR–01/09 ATmega16U4/ATmega32U4 The output compare register C is an 8-bit read/write register. The Timer/Counter Output Compare Register C contains data to be continuously compared with Timer/Counter4, and a compare match will clear TCNT4. This register has the same function in Normal mode and PWM modes. Note that, if a smaller value than three is written to the Output Compare Register C, the value is automatically replaced by three as it is a minimum value allowed to be written to this register. Note that, if 10-bit accuracy is used special procedures must be followed when accessing the internal 10-bit Output Compare Registers via the 8-bit AVR data bus. These procedures are described in section “Accessing 10-Bit Registers” on page 160. 15.12.11 OCR4D – Timer/Counter4 Output Compare Register D The output compare register D is an 8-bit read/write register. The Timer/Counter Output Compare Register D contains data to be continuously compared with Timer/Counter4. Actions on compare matches are specified in TCCR4A. A compare match does only occur if Timer/Counter4 counts to the OCR4D value. A software write that sets TCNT4 and OCR4D to the same value does not generate a compare match. A compare match will set the compare interrupt flag OCF4D after a synchronization delay follow- ing the compare event. Note that, if 10-bit accuracy is used special procedures must be followed when accessing the internal 10-bit Output Compare Registers via the 8-bit AVR data bus. These procedures are described in section “Accessing 10-Bit Registers” on page 160. 15.12.12 TIMSK4 – Timer/Counter4 Interrupt Mask Register • Bit 7- OCIE4D: Timer/Counter4 Output Compare Interrupt Enable When the OCIE4D bit is set (one) and the I-bit in the Status Register is set (one), the Timer/Counter4 Compare Match D interrupt is enabled. The corresponding interrupt at vector $010 is executed if a compare match D occurs. The Compare Flag in Timer/Counter4 is set (one) in the Timer/Counter Interrupt Flag Register. • Bit 6 - OCIE4A: Timer/Counter4 Output Compare Interrupt Enable When the OCIE4A bit is set (one) and the I-bit in the Status Register is set (one), the Timer/Counter4 Compare Match A interrupt is enabled. The corresponding interrupt at vector $003 is executed if a compare match A occurs. The Compare Flag in Timer/Counter4 is set (one) in the Timer/Counter Interrupt Flag Register. • Bit 5 - OCIE4B: Timer/Counter4 Output Compare Interrupt Enable Bit 76543210 MSB LSB OCR4D Read/Write R/W R/W R/W R/W R/W R/W R/W R/W Initial value 00000000 Bit 76543210 OCIE4D OCIE4A OCIE4B TOIE4 TIMSK4 Read/Write R/W R/W R/W R/W R/W R/W R/W R/W Initial value 00000000 |
|
Link URL |
| Does ALLDATASHEET help your business so far? [ DONATE ] |
About Alldatasheet | Advertisement | Contact us | Privacy Policy | Link to Datasheet | Link Exchange | Manufacturer List All Rights Reserved©Alldatasheet.com |
| Russian : Alldatasheetru.com | Korean : Alldatasheet.co.kr | Spanish : Alldatasheet.es | French : Alldatasheet.fr | Italian : Alldatasheetit.com Portuguese : Alldatasheetpt.com | Polish : Alldatasheet.pl | Vietnamese : Alldatasheet.vn Indian : Alldatasheet.in | Mexican : Alldatasheet.com.mx | British : Alldatasheet.co.uk | New Zealand : Alldatasheet.co.nz |
|
Family Site : ic2ic.com |
icmetro.com |