| Electronic Components Datasheet Search |
|
HT45FM03B Datasheet(PDF) 32 Page - Holtek Semiconductor Inc |
|
|
|||||||||||||||||||||||||||||
HT45FM03B Datasheet(HTML) 32 Page - Holtek Semiconductor Inc |
|
32 / 83 page ![]() HT45FM03B Rev. 1.10 32 May 7, 2010 As the PWM outputs are shared with I/O pins, each pin has a corresponding bit in the PCPWMC register to de- termine if it is to be used an an I/O pin or as a PWM out- put pin. The three PWM channels can be chosen to have either single or dual complimentary outputs, cho- sen via the PWMCEN bit in the PWMC0 register. The Port control register, PCC, must also ensure that the pins are setup as outputs for correct operation. Once the PWM function is properly setup, its individual outputs can be enabled using bits in the PCPWMD reg- ister. When the PWM output function is enabled, the PWMPS0~PWMPS2, PWMxL and PWMxH register val- ues can be written to at any time, even if the PWM is run- ning. When the BLDC mode is enabled by setting the BLDCMD bit in the DBTC register high, this ensures that the PWMnH/PWMnL and their corresponding compli- mentary I/O pins can never both be active at the same time. Pins PC0/PC2/PC4 or PC1/PC3/PC5 are active high or active low also by configuration option. The PWM frequency depends upon the PWM Mode chosen, the system clock frequency fSYS and the condi- tion of the PWMPS0~PWMPS2 bits. By programming suitable values for these bits the user has the flexibility to choose from a wide range of frequencies to suit their application needs. The following equation shows how the frequency can be calculated. The decimal equiva- lent of the binary bit value should be substituted to cal- culate the value. Mode PWM Frequency 10-bit fSYS ¸(1024´((PWMPS2~PWMPS0)+1) 9+1 fSYS ¸(512´((PWMPS2~PWMPS0)+1) 8+2 fSYS ¸(256´((PWMPS2~PWMPS0)+1) 7+3 fSYS ¸(128´((PWMPS2~PWMPS0)+1) For Example in the 10-bit operating mode if: · f SYS=12MHz · PWMPS2~PWMPS0=011 (decimal 3) ¼ gives a PWM frequency of 2.93kHz The accompanying table shows a range of already cal- culated PWM frequency values for user reference. · 10-bit PWM Full Frequency PWMPS2~ PWMPS0 fSYS= 12MHz fSYS= 16MHz fSYS= 20MHz Unit 000 11.72 15.63 19.53 kHz 001 5.86 7.81 9.77 kHz 010 3.91 5.21 6.51 kHz 011 2.93 3.91 4.88 kHz 100 2.34 3.13 3.91 kHz 101 1.95 2.60 3.26 kHz 110 1.67 2.23 2.79 kHz 111 1.46 1.95 2.44 kHz · (9+1)-bit PWM Full Frequency PWMPS2~ PWMPS0 fSYS= 12MHz fSYS= 16MHz fSYS= 20MHz Unit 000 23.44 31.25 39.06 kHz 001 11.72 15.63 19.53 kHz 010 7.81 10.42 13.02 kHz 011 5.86 7.81 9.77 kHz 100 4.69 6.25 7.81 kHz 101 3.91 5.21 6.51 kHz 110 3.35 4.46 5.58 kHz 111 2.93 3.91 4.88 kHz · (8+2)-bit PWM Full Frequency PWMPS2~ PWMPS0 fSYS= 12MHz fSYS= 16MHz fSYS= 20MHz Unit 000 46.88 62.50 78.13 kHz 001 23.44 31.25 39.06 kHz 010 15.63 20.83 26.04 kHz 011 11.72 15.63 19.53 kHz 100 9.38 12.50 15.63 kHz 101 7.81 10.42 13.02 kHz 110 6.7 8.93 11.16 kHz 111 5.86 7.81 9.77 kHz |
|
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 |