Electronic Components Datasheet Search |
|
STMPE2403 Datasheet(PDF) 43 Page - STMicroelectronics |
|
STMPE2403 Datasheet(HTML) 43 Page - STMicroelectronics |
43 / 63 page STMPE2403 PWM controller 43/63 11.3 PWM Instruction Channel x (PWMICx) This PWMICx is the dataport that allows the instructions to be loaded into the PWM channel. The loading of the instructions is achieved by continuously writing to this dataport. As this dataport address falls on the non-auto increment region, continuous write operation on I2C will write into the same dataport address. The ‘x’ value is from 0 to 2 as there are 3 independent PWM channels. To access these dataports, the corresponding ENx in the PWMCS register must be set to 0 first to put the PWM channel in reset state. 11.4 PWM commands The STMPE2403 PWM Controller works as a simple MCU, with program space of 64 instructions and a simple instruction set. The instructions are all 16 bits in length. The 3 most significant bits are used to identify the commands. Bit 7654321 0 IB7 IB6 IB5 IB4 IB3 IB2 IB1 IB0 Read/Write RW RW RW RW RW RW RW RW Reset Value 0000000 0 Table 41. Bit description Bits Name Description 7:0 IB[y] PWM Instruction Channel x, where y is 7 to 0 As an instruction is 16-bit width, writing the instruction into this 8-bit PWMICx dataport requires two 8-bit data write. The most significant byte of the 16-bit instruction is to be written in first and followed by the least significant byte of the instruction. The same effect applies to the read operation. Table 42. PWM commands Instruction Description RAMP This instruction starts the PWM counters and set the pwm_x_out with the result from the counting. Prescale: (0 or 1) ‘0’ - divide 32KHz clock by 16 ‘1’ – divide 32KHz clock by 512 Step Time: (1-63) One ramp increment done in (step time) x (clock after prescale) Sign: (0 or 1) “0” – increase PWM output ‘1’ – decrease PWM output Increment: (0-127) The number of increment/decrement cycles |
Similar Part No. - STMPE2403 |
|
Similar Description - STMPE2403 |
|
|
Link URL |
Privacy Policy |
ALLDATASHEET.COM |
Does ALLDATASHEET help your business so far? [ DONATE ] |
About Alldatasheet | Advertisement | Datasheet Upload | Contact us | Privacy Policy | 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 |