| 전자부품 데이터시트 검색엔진 |
|
SN8P1702P 데이터시트(PDF) 88 Page - SONiX Technology Company |
|
|
|||||||||||||||||||||||||||||
SN8P1702P 데이터시트(HTML) 88 Page - SONiX Technology Company |
|
88 / 145 page ![]() SN8P1700 8-bit micro-controller build-in 12-bit ADC SONiX TECHNOLOGY CO., LTD Page 88 Revision 1.94 PWM FUNCTION DESCRIPTION OVERVIEW PWM function is generated by TC0/TC1 timer counter and output the PWM signal to PWM0OUT pin (P5.4)/ PWM1OUT pin (P5.3). The 8-bit counter counts modulus 256, from 0-255, inclusive. The value of the 8-bit counter is compared to the contents of the reference register (TC0R/TC1R). When the reference register value (TC0R/TC1R) is equal to the counter value (TC0C/TC1C), the PWM output goes low. When the counter reaches zero, the PWM output is forced high. The low-to-high ratio (duty) of the PWM0/PWM1 output is TC0R/256 and TC1R/256. All PWM outputs remain inactive during the first 256 input clock signals. Then, when the counter value (TC0C/TC1C) changes from FFH back to 00H, the PWM output is forced to high level. The pulse width ratio (duty cycle) is defined by the contents of the reference register (TC0R/TC1R) and is programmed in increments of 1:256. The 8-bit PWM data register TC0R/TC1R is write only register. PWM output can be held at low level by continuously loading the reference register with 00H. Under PWM operating, to change the PWM’s duty cycle is to modify the TC0R/TC1R. Reference Register Value (TC0R/TC1R) Duty 0000 0000 0/256 0000 0001 1/256 0000 0010 2/256 . . . . 1000 0000 128/256 1000 0001 129/256 . . . . 1111 1110 254/256 1111 1111 255/256 Table 8-5. The PWM Duty Cycle Table Figure 8-8 The Output of PWM with different TC0R/TC1R. TC0/TC1 Clock TC0R/TC1R = 00H Low High Low Low High TC0R/TC1R = 01H TC0R/TC1R = 80H TC0R/TC1R = FFH Low High 01 128 ..... 254 255 ..... 01 128 ..... 254 255 ..... TC0/TC1 Clock TC0R/TC1R = 00H Low High Low Low High TC0R/TC1R = 01H TC0R/TC1R = 80H TC0R/TC1R = FFH Low High Low High 01 128 ..... 254 255 ..... 01 128 ..... 254 255 ..... 01 128 ..... 254 255 ..... ..... 01 128 ..... 254 255 ..... ..... |
|
링크 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 |