| 전자부품 데이터시트 검색엔진 |
|
EKTF6708 데이터시트(PDF) 109 Page - ELAN Microelectronics Corp |
|
|
|||||||||||||||||||||||||||||
EKTF6708 데이터시트(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. |
|
링크 URL |
| ALLDATASHEET 가 귀하에 도움이 되셨나요? [ DONATE ] |
Alldatasheet는? | 광고문의 | 운영자에게 연락하기 | 개인정보취급방침 | 링크 투 데이터시트 | 링크교환 | 제조사별 검색 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 |