| Electronic Components Datasheet Search |
|
SN250 Datasheet(PDF) 95 Page - STMicroelectronics |
|
|
|||||||||||||||||||||||||||||
SN250 Datasheet(HTML) 95 Page - STMicroelectronics |
|
95 / 130 page ![]() SN250 Functional description—application modules 95/130 7.4.3 Timer functionality (output compare) There are two output signals from each timer to generate application-specific waveforms. These waveforms are generated or altered by comparison results with the timer count value. There are four comparison results: ● Counter value reaches zero. ● Counter value reaches threshold value of TMR1_TOP or TMR2_TOP register. ● Counter value reaches comparison value of TMR1_CMPA or TMR2_CMPA register. ● Counter value reaches comparison value of TMR1_CMPB or TMR2_CMPB register. The output waveform generation from each timer is controlled with the register bits (TMR_CMPMOD or inverted with TMR_CMPINV) in the TMR1_CMPCFGA, TMR1_CMPCFGB, TMR2_CMPCFGA , and TMR2_CMPCFGB registers. Table 31 summarizes the output waveform generation modes. The output signals TMR1OA and TMR1OB from Timer 1, and TMR2OA and TMR2OB from Timer 2, are available on GPIO. For selecting alternate pin functions, refer to Table 17 and Table 18. Figure 14 and Figure 15 show examples of all timer output generation modes. Table 31. Output waveform settings TMR_CMPMOD[3:0] Output waveform generation mode 0 Disable alteration 1 Toggle on count = TOP 2 Set on count = TOP, clear on count = CMPA 3 Set on count = TOP, clear on count = CMPB 4 Set to 1 5 Set on count = CMPA, clear on count = TOP 6 Toggle on count = CMPA 7 Set on count = CMPA, clear on count = CMPB 8 Clear to 0 9 Set on count = CMPB, clear on count = TOP 10 Set on count = CMPB, clear on count = CMPA 11 Toggle on count = CMPB 12 Toggle on count = ZERO 13 Set on count = ZERO, clear on count = TOP 14 Set on count = ZERO, clear on count = CMPA 15 Set on count = ZERO, clear on count = CMPB |
|
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 |