Electronic Components Datasheet Search
  English  ▼
ALLDATASHEET.NET

X  

PIC18LF4331 Datasheet(PDF) 182 Page - Microchip Technology

Part # PIC18LF4331
Description  28/40/44-Pin Enhanced Flash Microcontrollers with nanoWatt Technology, High-Performance PWM and A/D
PDF  392 Pages
Scroll/Zoom Zoom In 100%  Zoom Out
Manufacturer  MICROCHIP [Microchip Technology]
Direct Link  http://www.microchip.com
Logo MICROCHIP - Microchip Technology

PIC18LF4331 Datasheet(HTML) 182 Page - Microchip Technology

Back Button PIC18LF4331 Datasheet HTML 178Page - Microchip Technology PIC18LF4331 Datasheet HTML 179Page - Microchip Technology PIC18LF4331 Datasheet HTML 180Page - Microchip Technology PIC18LF4331 Datasheet HTML 181Page - Microchip Technology PIC18LF4331 Datasheet HTML 182Page - Microchip Technology PIC18LF4331 Datasheet HTML 183Page - Microchip Technology PIC18LF4331 Datasheet HTML 184Page - Microchip Technology PIC18LF4331 Datasheet HTML 185Page - Microchip Technology PIC18LF4331 Datasheet HTML 186Page - Microchip Technology Next Button
Zoom Inzoom in Zoom Outzoom out
 182 / 392 page
background image
PIC18F2331/2431/4331/4431
DS39616D-page 182
 2010 Microchip Technology Inc.
18.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 Time Base 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.
18.4.3
INTERRUPTS IN CONTINUOUS
UP/DOWN COUNT MODE
In
the
Continuous
Up/Down
Count
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 18-7 shows the interrupts in Continuous
Up/Down Count mode.
FIGURE 18-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
1
2
A: PRESCALER = 1:1
B: PRESCALER = 1:4
PTMR_INT_REQ
Q4
Q4
PTIF bit
PTMR_INT_REQ
000h



Html Pages

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100  ...More


Datasheet Download

Go To PDF Page


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


Mirror Sites
English : Alldatasheet.com  |   English : Alldatasheet.net  |   Chinese : Alldatasheetcn.com  |   German : Alldatasheetde.com  |   Japanese : Alldatasheet.jp
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