| công cụ tìm kiếm bảng dữ liệu linh kiện điện tử |
|
H8S/20223 bảng dữ liệu(PDF) 675 Page - Renesas Technology Corp |
|
|
|||||||||||||||||||||||||||||
H8S/20223 bảng dữ liệu(HTML) 675 Page - Renesas Technology Corp |
|
675 / 992 page ![]() Section 18 Timer RG Rev. 1.00 Oct. 03, 2008 Page 649 of 962 REJ09B0465-0100 (1) Example of PWM Mode Setting Procedure Figure 18.9 shows an example of the PWM mode setting procedure. Select counter clock PWM mode Select counter clearing source Set GRA <PWM mode> [1] [2] [3] Set GRB [4] Set PWM mode [5] Start counting [6] [1] Select the counter clock with bits TPSC2 to TPSC0 in TRGCR. When an external clock is selected, select the external clock edge with bits CKEG1 and CKEG0 in TRGCR. [2] Use bits CCLR1 and CCLR0 in TRGCR to select the counter clearing source. [3] Set the 1-output timing for the output PWM waveform with GRA. [4] Set the 0-output timing for the output PWM waveform with GRB. [5] Select the PWM mode with the PWM bit in TRGMDR. When PWM mode is set, GRA and GRB are used as output compare registers for setting 1-output/0-output for PWM output waveform, regardless of the TRGIOR setting. At this time, the TGIOA pin is automatically designated as a PWM output pin and the TGIOB pin is used as a general I/O for the relevant port. [6] Set the STR bit in TRGMDR to 1 to start the count operation. Figure 18.9 Example of PWM Mode Setting Procedure (2) Examples of PWM Mode Operation Figure 18.10 shows examples of PWM mode operation. When PWM mode is set, the TGIOA pin is automatically set as an output pin. The TGIOA pin outputs 1 on a GRA compare match and outputs 0 on a GRB compare match. The TGIOB pin always functions as an I/O pin for the relevant port. In the examples shown in the figure, GRA and GRB compare matches are set as the TRGCNT clearing source. The initial value of TGIOA differs according to the counter clearing source. The correspondence between counter clearing sources and initial values is shown in table 18.5. |
|
Link URL |
| Cho đến nay ALLDATASHEET có giúp ích cho doanh nghiệp của bạn hay không? [ DONATE ] |
Alldatasheet là | Quảng cáo | Liên lạc với chúng tôi | Chính sách bảo mật | Liên kết đến bảng dữ liệu | Trao đổi link | Tìm kiếm theo nhà sản xuất 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 |