| công cụ tìm kiếm bảng dữ liệu linh kiện điện tử |
|
ATmega16U4 bảng dữ liệu(PDF) 149 Page - ATMEL Corporation |
|
|
|||||||||||||||||||||||||||||
ATmega16U4 bảng dữ liệu(HTML) 149 Page - ATMEL Corporation |
|
149 / 408 page ![]() 149 7766D–AVR–01/09 ATmega16U4/ATmega32U4 15.6.2 Enhanced Compare/PWM mode When the bit ENHC4 of TCCR4E register is set, the Enhanced Compare/PWM mode is enabled. This mode allows user to add an accuracy bit to Output Compare Register OCR4A, OCR4B and OCR4D. Like explained previously, a compare condition appears when one of the three Output Compare Registers (OCR4A/B/D) matches the value of TCNT4 (10-bits resolution). In basic PWM Mode, the corresponding enabled output toggles on the Compare Match. The Enhanced Compare/PWM mode introduces a bit that determines on which internal clock edge the Com- pare Match condition is actually signalled. That means that the corresponding outputs will toggle on the standard clock edge (like in Normal mode) if the LSB of OCR4A/B/D is ‘0’, or on the oppo- site (next) edge if the LSB is ‘1’. User will notice that between Normal and Enhanced PWM modes, the output frequency will be identical, while the PWM resolution will be better in second case. Writing to the Output Compare registers OCR4A/B/D or reading them will be identical in both modes. In Enhanced mode, user must just consider that the TC4H register can be up to 3-bits wide (and have the same behavior than during 2-bits operation). That will concern OCR4A, OCR4B and OCR4D registers accesses only. Indeed, the OCR4C register must not include the additional accuracy bit, and remains in the resolution that determines the output signal period. Figure 15-10. How register access works in Enhanced mode That figure shows that the true OCR4A/B/D value corresponds to the value loaded by the user shifted on the right in order to transfer the least significant bit directly to the Waveform genera- tion module. The maximum available resolution is 11-bits, but any other resolution can be specified. For example, a 8-bits resolution will allow to obtain the same frequency than a Normal PWM mode with 7-bits resolution. Example: – PLL Postcaler output = 64 MHz, No Prescaler on Timer/Counter4. – Setting OCR4C = 0x7F determines a full 7-bits theoretical resolution, and so a 500kHz output frequency. 9 6 3 1 5 7 42 0 8 10 9 6 3 1 5 7 42 0 8 (TC4H) (OCR4A/B/D) Output Compare Module A/B/D Waveform Generation Enhanced Mode Pin Toggle True OCR4A/B/D User Interface Side Timer Logic Side ENHC4 TCNT4<9:0> OCR4C<9:0> Configuration bits |
|
Link URL |
| Cho đến nay ALLDATASHEET có giúp ích cho doanh nghiệp của bạn hay không? [ DONATE ] |
Alldatasheet là | Quảng cáo | Liên lạc với chúng tôi | Chính sách bảo mật | Liên kết đến bảng dữ liệu | Trao đổi link | Tìm kiếm theo nhà sản xuất 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 |