| 전자부품 데이터시트 검색엔진 |
|
PFS172 데이터시트(PDF) 47 Page - PADAUK Technology. |
|
|
|||||||||||||||||||||||||||||
PFS172 데이터시트(HTML) 47 Page - PADAUK Technology. |
|
47 / 92 page ![]() PFS172 8bit MTP MCU with 8-bit ADC ©Copyright 2020, PADAUK Technology Co. Ltd Page 47 of 92 PDK-DS-PFS172-EN_V000-May 8, 2020 Example 3: tm2c = 0b0001_1010, Y=8MHz tm2b = 0b0011_1111, K=63 tm2s = 0b1_00_00000, S1=1, S2=0 PWM output keep high duty of output = [(63+1) ÷ 64] × 100% = 100% Example 4: tm2c = 0b0001_1010, Y=8MHz tm2b = 0b0000_0000, K=0 tm2s = 0b1_00_00000, S1=1, S2=0 frequency = 8MHz ÷ ( 64 × 1 × (0+1) ) = 125KHz duty = [(0+1) ÷ 64] × 100% =1.5% 5.7.4 Complementary PWM with Dead Zones User can get complementary PWM with dead zones by employing TM2 and TM3. Here provide an example in which duty cycle and dead time are adjustable. //------- These two parameters need be defined when T(PWM) = 256 us ---------- #define PWM_pulse 70 // 70 us; Adjust it for a different duty cycle of TM2/TM3. #define dead_zone 30 // 30 us; Adjust it for the best dead time. //--------Parameters for switching duty cycle ----------------------------------- #define PWM_Pulse_a 100 // 100 us; Adjust it for a different duty cycle of TM2/TM3 #define PWM_Pulse_b 160 // 160 us; Adjust it for a different duty cycle of TM2/TM3 #define t_delay 500 // 500 us; Switching time of duty cycle void FPPA0 (void) { // SYSCLK must quicker than Timer2’s clock. Here set SYSCLK=2MHz to capture Tm2ct = 0. .ADJUST_IC SYSCLK=IHRC/8, IHRC=16MHz, VDD=3.3V, Init_ram; //******Generate complementary PWM with dead zones in a fixed-duty cycle**************** //------Set the counter upper bound, duty cycle and TMXCT ----------- $ TM2S 8BIT,/4,/4 // 16MHz /4 /4 /256 = 1MHz / 256 = 256 us TM2B = PWM_pulse - 1; $ TM3S 8BIT,/4,/4 // 16MHz /4 /4 /256 TM3B = PWM_pulse + 2 * dead_zone - 1; TM2CT = 0; |
|
링크 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 |