| Electronic Components Datasheet Search |
|
NRF52811-QCAA-R7 Datasheet(PDF) 149 Page - Nordic Semiconductor |
|
|
|||||||||||||||||||||||||||||
NRF52811-QCAA-R7 Datasheet(HTML) 149 Page - Nordic Semiconductor |
|
149 / 444 page ![]() Peripherals When the counter is running in up-and-down mode, the following formula can be used to compute the PWM period and the step size: TPWM(Up And Down) = TPWM_CLK * 2 * COUNTERTOP Step width/Resolution: Tsteps = TPWM_CLK * 2 6.12.2 Decoder with EasyDMA The decoder uses EasyDMA to take PWM parameters stored in RAM and update the internal compare registers of the wave counter, based on the mode of operation. PWM parameters are organized into a sequence containing at least one half word (16 bit). Its most significant bit[15] denotes the polarity of the OUT[n] while bit[14:0] is the 15-bit compare value. Bit number 31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0 Id B A A A A A A A A A A A A A A A Reset 0x00000000 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 Id RW Field Value Id Value Description A RW COMPARE Duty cycle setting - value loaded to internal compare register B RW POLARITY Edge polarity of GPIO. RisingEdge 0 First edge within the PWM period is rising FallingEdge 1 First edge within the PWM period is falling The DECODER register controls how the RAM content is interpreted and loaded into the internal compare registers. The LOAD field controls if the RAM values are loaded to all compare channels, or to update a group or all channels with individual values. The following figure illustrates how parameters stored in RAM are organized and routed to various compare channels in different modes: P O L COMPARE P O L COMPARE ... P O L COMPARE COMP0 COMP1 COMP2 COMP3 SEQ[n].PTR COMP0 COMP1 COMP2 COMP3 COMP0 COMP1 COMP2 COMP3 DECODER.LOAD=Common P O L COMPARE P O L COMPARE ... P O L COMPARE COMP0 COMP1 COMP2 COMP3 COMP0 COMP1 DECODER.LOAD=Grouped P O L COMPARE P O L COMPARE P O L COMPARE COMP0 COMP1 COMP3 DECODER.LOAD=Single P O L COMPARE COMP2 Increasing Data RAM address P O L COMPARE P O L COMPARE TOP COMP0 COMP1 COUNTERTOP DECODER.LOAD=WaveForm P O L COMPARE COMP2 Figure 50: Decoder memory access modes A special mode of operation is available when DECODER.LOAD is set to WaveForm. In this mode, up to three PWM channels can be enabled - OUT[0] to OUT[2]. In RAM, four values are loaded at a time: the first, second and third location are used to load the values, and the fourth RAM location is used to load 4454_140 v1.0 149 |
|
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 |