| Electronic Components Datasheet Search |
|
SYNPWM Datasheet(PDF) 26 Page - Feeling Technology Corp. |
|
|
|||||||||||||||||||||||||||||
SYNPWM Datasheet(HTML) 26 Page - Feeling Technology Corp. |
|
26 / 57 page ![]() FM8P73B Web site: http://www.feeling-tech.com.tw Rev1.0 Nov 20, 2013 P.26/FM8P73B FEELING TECHNOLOGY 2.4.2 Sync PWM mode In Sync PWM mode, the PWM has two outputs. PWM1N Non overlap time can be adjusted from SYNPWM<1:0>, please refer to the sample program and the timing diagram below. Example 2.3: PWM1 Setting (Sync mode) Address Code NA #include <8P73B.ASH> … //Set PWM1 Period n MOVIA 0x61 n+1 MOVAR T1CON ;Set source: 4MHz IRC (250nS) Prescaler 1:2 n+2 MOVIA 0x80 n+3 MOVAR PWM1CON ;Set PWM interrupt rate 1:1, output on IOA0 n+4 MOVIA 0x0F n+5 MOVAR T1LA ;Set period (0x0F down count to 0x00) ;Period time = 250ns x 16 x 2 = 8uS //Set PWM1 Duty n+6 MOVIA 0x61 n+7 MOVAR T2CON ;Set source 4MHz IRC (250nS) Prescaler 1:2 n+8 MOVIA 0x07 n+9 MOVAR T2LA ;Set Duty (0x07 down count to 0x00) ;Duty time = 250ns x 8 x2 = 4uS //Set Sync PWM n+10 MOVIA 0x82 n+11 MOVAR SYNPWM ;Set PWM1P is normal, IOA1 is PWM1N output ;Non overlap time = 3/2 cycle time n+12 BSR T1CON,T1EN_B ;Start PWM1 n+13 MOVIA 0x81 n+14 MOVAR INTEN ;Enable global & PWM1 interrupt n+15 CLRR INTFLAG ;Clear interrupt flag Note: The PWM duty (Timer2) must be smaller than PWM period (Timer1). Figure 2.6: Sync PWM Waveform TMR1 counter : Sync PWM1P output : Sync PWM1N output : TMR2 counter : PWM Period PWM Duty 00 01 0D 0C 00 01 09 0A Non Overlap ti me =3/2 cycl e |
|
Link URL |
| Does ALLDATASHEET help your business so far? [ DONATE ] |
About Alldatasheet | Advertisement | Contact us | Privacy Policy | Link to Datasheet | Link Exchange | Manufacturer List 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 |