| Electronic Components Datasheet Search |
|
SH89F52P/044PR Datasheet(PDF) 58 Page - SINOWEALTH Electronic Ltd |
|
|
|||||||||||||||||||||||||||||
SH89F52P/044PR Datasheet(HTML) 58 Page - SINOWEALTH Electronic Ltd |
|
58 / 105 page ![]() SH88F516(SH88F54/SH89F52) 58 Table 9.3 PWMx (x = 0-2) Duty Control Register C1H - C3H Bit7 Bit6 Bit5 Bit4 Bit3 Bit2 Bit1 Bit0 PWMxD (x=0-2) PWMxD.7 PWMxD.6 PWMxD.5 PWMxD.4 PWMxD.3 PWMxD.2 PWMxD.1 PWMxD.0 R/W R/W R/W R/W R/W R/W R/W R/W R/W Reset Value (POR/WDT/LVR/PIN) 0 0 0 0 0 0 0 0 Bit Number Bit Mnemonic Description 7-0 PWMxD[7:0] PWMx Duty Register PWM output duty = PWMxD[7:0] X PWM clock When PWMxP[7:0] ≤ PWMxD[7:0], if PWMS = 0, PWMx output high level When PWMxP[7:0] ≤ PWMxD[7:0], if PWMS = 1, PWMx output low level Programming Note: (1) Set the PWM period/duty cycle by writing proper value to the PWM period control register (PWMP) or PWM duty control register (PWMD). (2) Select the PWM output mode (high level valid or low level valid) by writing the PWMS bit in the PWM control register (PWMCON). (3) In order to output the desired PWM waveform, enable the PWM module by writing “1” to the EPWMx bit in the PWM control register (PWMCON). (4) If the PWM period cycle or duty cycle is to be changed, the writing flow should be followed as described in step 1 or step 2. The modified reloading counter value will take effect in the next period. PWMn clock t PWM 01 02 03 04 05 06 07 08 09 0A 0B 0C 0D 0E 0F 01 02 03 04 05 06 07 08 09 0A 0B 0C 0D 01 02 03 04 05 06 07 08 Write [PPn.7, PPn.0] = 0DH Write [PDn.7, PDn.0] = 07H PWMn output (PWMnS = 0) Period cycle = 0FH x t PWM Duty cycle = 06H x t PWM Period cycle = 0DH x t PWM Duty cycle = 06H x t PWM Duty cycle = 07H x t PWM n = 0 or 1 PWM output Period or Duty cycle changing example |
|
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 |