| công cụ tìm kiếm bảng dữ liệu linh kiện điện tử |
|
PIC18F4331 bảng dữ liệu(PDF) 192 Page - Microchip Technology |
|
|
|||||||||||||||||||||||||||||
PIC18F4331 bảng dữ liệu(HTML) 192 Page - Microchip Technology |
|
192 / 396 page ![]() PIC18F2331/2431/4331/4431 DS39616B-page 190 Preliminary 2003 Microchip Technology Inc. 17.4.2 INTERRUPTS IN SINGLE-SHOT MODE When the PWM time base is in the Single-shot mode (PTMOD<1:0> = 01), an interrupt event is generated when a match with the PTPER register occurs. The PWM timer register (PTMR) is reset to zero on the following input clock edge, and the PTEN bit is cleared. The postscaler selection bits have no effect in this Timer mode. 17.4.3 INTERRUPTS IN CONTINUOUS UP/DOWN COUNTING MODE In the Up/Down Counting mode (PTMOD<1:0> = 10), an interrupt event is generated each time the value of the PTMR register becomes zero and the PWM time base begins to count upwards. The postscaler selection bits may be used in this mode of the timer to reduce the frequency of the interrupt events. Figure 17-7 shows the interrupts in continuous Up/Down Counting mode. FIGURE 17-6: PWM TIME BASE INTERRUPT TIMING, SINGLE SHOT MODE Q2 Q1 Q3 Q4 Q2 Q1 Q3 Q4 Q2 Q1 Q3 Q4 Q2 Q1 Q3 Q4 Q2 Q1 Q3 Q4 1 1 FOSC/4 PTMR FFEh FFFh 000h 000h 000h 1 PTIF bit 2 Note 1: Interrupt flag bit PTIF is sampled here (every Q1). 2: PWM Time Base Period register, PTPER, is loaded with the value FFFh for this example. Qc Qc Qc Qc Qc Qc Qc Qc Qc Qc Qc Qc Qc Qc Qc Qc Qc Qc Qc Qc 1 1 PTMR FFEh FFFh 000h 000h 000h 1 2 A: PRESCALER = 1:1 B: PRESCALER = 1:4 PTMR_INT_REQ Q4 Q4 PTIF bit PTMR_INT_REQ |
|
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 |