| công cụ tìm kiếm bảng dữ liệu linh kiện điện tử |
|
EKTF6708 bảng dữ liệu(PDF) 109 Page - ELAN Microelectronics Corp |
|
|
|||||||||||||||||||||||||||||
EKTF6708 bảng dữ liệu(HTML) 109 Page - ELAN Microelectronics Corp |
|
109 / 158 page ![]() eKTF6708 8-Bit Microcontroller IC Product Specification (V1.2) 03.12.2020 99 (This specification is subject to change without prior notice) 6.8.5 PWM Duty Cycle (DTX: DTxH/DT1L) The PWM duty cycle is defined by writing to the DTX register, and is latched from DTX to DLX while TMRX is cleared. When DLX is equal to TMRX, the PWMX pin is cleared. DTX can be loaded at anytime, however it cannot be latched into DLX until the current value of DLX is equal to TMRX. The following formula shows how to calculate the PWM duty cycle: value prescale TMRX F DTX cycle Duty OSC 1 Example: DTX = 10; Fosc = 4 MHz; TMRX (0, 0, 0) = 1 : 1; Then s M cycle Duty 5 . 2 1 4 1 10 6.8.6 PWM Programming Process/Steps 1) Load the PWM duty cycle to DT 2) Load the PWM time period to PRD 3) Enable the interrupt function by writing Bank0-R1D, if required 4) Load a desired value for the timer prescaler 5) Enable PWMX function (i.e., enable PWMXE control bit) 6) Finally, enable TMRX function (i.e., enable TXEN control bit) If the application needs to change PWM duty and period cycle at run time, refer to the following programming steps: 1) Load new duty cycle (if using dual PWM function) at any time. 2) Load new period cycle. You must take note of the order of loading period cycle. As the low byte of PWM period cycle is assigned a value, the new PWM cycle is loaded into a circuit. 3) The circuit will automatically update the new duty and period cycles to generate new PWM waveform at the next PWM cycle. |
|
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 |