| Motore di ricerca datesheet componenti elettronici |
|
R8C/L3AB Scheda tecnica(PDF) 521 Page - Renesas Technology Corp |
|
|
|||||||||||||||||||||||||||||
R8C/L3AB Scheda tecnica(HTML) 521 Page - Renesas Technology Corp |
|
521 / 848 page ![]() REJ09B0441-0010 Rev.0.10 Jul 30, 2008 Page 485 of 809 Under development Preliminary specification Specifications in this manual are tentative and subject to change. 23. Timer RG R8C/L35A Group, R8C/L36A Group, R8C/L38A Group, R8C/L3AA Group, R8C/L35B Group, R8C/L36B Group, R8C/L38B Group, R8C/L3AB Group 23.6.1 Procedure Example for Setting PWM Mode Figure 23.13 shows a Procedure Example for Setting PWM Mode. Figure 23.13 Procedure Example for Setting PWM Mode 23.6.2 Operating Example Figure 23.14 shows an Operating Example in PWM Mode (1). When PWM mode is selected while the TRGIOASEL0 bit in the TRGSR register is set to 1, the TRGIOA pin automatically functions as an output pin, high-level output at compare match with the TRGGRA register is selected, and low-level output at compare match with the TRGGRB register is selected. However, regardless of the setting of the TRGIOR register, the TRGIOB pin functions as an I/O port. This example applies when a compare match with the TRGGRA or TRGGRB register is set as the counter clear source for the TRG register. The initial status of the TRGIOA pin depends only on the counter clear sources. This correspondence is shown in Table 23.10. Table 23.10 Correspondence between Initial Status of TRGIOA Pin and Counter Clear Sources Counter Clear Source Initial Status of TRGIOA Pin Compare match with TRGGRA register High Compare match with TRGGRB register Low (1) Use bits TCK0 to TCK2 in the TRGCR register to select the count source. When an external clock is selected, use bits CKEG0 and CKEG1 in the TRGCR register to select the edge of the external clock. (2) Use bits CCLR0 and CCLR1 in the TRGCR register to select the counter clear source. (3) Set the high-level output timing for PWM output waveforms in the TRGGRA register. (4) Set the low-level output timing for PWM output waveforms in the TRGGRB register. (5) Use the PWM bit in the TRGMR register to select PWM mode. When PWM mode is selected, TRGGRA and TRGGRB are set as the output compare registers for setting the high-level output or low-level output timing for PWM output waveforms, regardless of the content of the TRGIOR register. While the TRGIOASEL0 bit in the TRGSR register is set to 1, the TRGIOA pin automatically functions as a PWM output pin. However, regardless of the setting of the TRGIOR register, the TRGIOB pin functions as an I/O port. (6) Set the TSTART bit in the TRGMR register to 1 to start the count operation of the TRG register. PWM mode (1) PWM mode Select the counter clock Select the counter clear source Set TRGGRA Set TRGGRB Set PWM mode Count operation starts (2) (3) (4) (5) (6) |
|
Link URL |
| Lei ha avuto il aiuto da alldatasheet? [ DONATE ] |
Di alldatasheet | Richest di pubblicita | contatti | Privacy Policy | Collegamento alla scheda tecnica | scambio Link | Ricerca produttore 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 |