| Moteur de recherche de fiches techniques de composants électroniques |
|
STMPE2403 Fiches technique(PDF) 45 Page - STMicroelectronics |
|
|
|||||||||||||||||||||||||||||
STMPE2403 Fiches technique(HTML) 45 Page - STMicroelectronics |
|
45 / 63 page ![]() STMPE2403 PWM controller 45/63 In order to enable a PWM channel, the programming sequence below should be observed. ● The ENx of the PWMCS register should be kept in ‘0’. By default, it has a value of ‘0’. ● Loads the instructions into the PWM channel x by writing the corresponding PWMICx. ● The PWM channel x has a 64-word depth (16-bit width). Any instructions of size less than or equal to 64 words can be loaded into the channel. Any attempt to load beyond 64 words will result in internal address pointer to roll-over (0x1f ◊ 0x00) and the excess instructions to be over-written into the first address location of the channel and onwards. ● After the instructions are loaded in, then, the PWM channel x can be enabled by setting a ‘1’ to the ENx bit. ● Enables the corresponding interrupt mask bit to allow interruption to the host. Table 44. Instruction bit Instruction Bit 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0 RAMP 0 Prescale 0=16 1=512 Step Time 0 - 63 0 = immediate action Sign 0=step-up 1=step-down Increment 1 – 126 LOAD 0 1 0 PWM Value 0-255 GTS 0 0 0 0 0 BRANCH 1 01 Loop Count 0-63 Addr Step Size 0 – 63* END 1 10 Interrupt to host Reset instructio n counter and output level to zero RESERVED TRIG 1 11 Wait for Trigger on channel 0 – 2 and external Trigger Continues if all selected triggers present. Each bit signifies wait for the corresponding channel. Send Trigger on channel 0 – 2 and external Trigger Continues if no Wait for Trigger in this instruction. x(1) reserved 1 00 RESERVED 1. Don’t care |
|
Lien URL |
| ALLDATASHEET vous a-t-il été utile ? [ DONATE ] |
À propos de Alldatasheet | Publicité | Contactez-nous | Politique de confidentialité | Lien vers la fiche technique | Echange de liens | Fabricants 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 |