PIC18F2331 MICROCHIP [Microchip Technology], PIC18F2331 Datasheet - Page 188

no-image

PIC18F2331

Manufacturer Part Number
PIC18F2331
Description
28/40/44-Pin Enhanced Flash Microcontrollers with nanoWatt Technology, High Performance PWM and A/D
Manufacturer
MICROCHIP [Microchip Technology]
Datasheet

Available stocks

Company
Part Number
Manufacturer
Quantity
Price
Part Number:
PIC18F2331-I/SO
Manufacturer:
MICROCHIP/微芯
Quantity:
20 000
Part Number:
PIC18F2331-I/SP
Manufacturer:
MICROCHIP/微芯
Quantity:
20 000
PIC18F2331/2431/4331/4431
REGISTER 17-1:
REGISTER 17-2:
DS39616B-page 186
bit 7
bit 6
bit 5-0
bit 7-4
bit 3-2
bit 1-0
bit 7
Legend:
R = Readable bit
-n = Value at POR
PTEN: PWM Time Base Timer Enable bit
1 = PWM time base is ON
0 = PWM time base is OFF
PTDIR: PWM Time Base Count Direction Status bit
1 = PWM time base counts down.
0 = PWM time base counts up.
Unimplemented: Read as ‘0’.
bit 7
PTOPS3:PTOPS0: PWM Time Base Output Postscale Select bits
0000 =1:1 Postscale
0001 =1:2 Postscale
.
.
.
1111 =1:16 Postscale
PTCKPS1:PTCKPS0: PWM Time Base Input Clock Prescale Select bits
00 =PWM time base input clock is Fosc/4
01 =PWM time base input clock is Fosc/16 (1:4 prescale)
10 =PWM time base input clock is Fosc/64 (1:16 prescale)
11 =PWM time base input clock is Fosc/256 (1:64 prescale)
PTMOD1:PTMOD0: PWM Time Base Mode Select bits
11 =PWM time base operates in a Continuous Up/Down mode with interrupts for double PWM
10 =PWM time base operates in a Continuous Up/Down Counting mode.
01 =PWM time base configured for Single-shot mode.
00 =PWM time base operates in a Free Running mode.
Legend:
R = Readable bit
-n = Value at POR
PTOPS3
PTCON0: PWM TIMER CONTROL REGISTER 0
PTCON1: PWM TIMER CONTROL REGISTER 1
R/W-0
PTEN
R/W-0
updates.
PTOPS2
PTDIR
R/W-0
R-0
PTOPS1
R/W-0
U-0
W = Writable bit
‘1’= bit is set
W = Writable bit
‘1’ = bit is set
Preliminary
PTOPS0
R/W-0
U-0
(1:1 prescale)
PTCKPS1 PTCKPS0 PTMOD1
U = Unimplemented bit, read as ‘0’
R/W-0
‘0’ = bit is cleared
U = Unimplemented bit, read as ‘0’
‘0’ = bit is cleared
U-0
R/W-0
U-0
 2003 Microchip Technology Inc.
x = bit is unknown
x = bit is unknown
R/W-0
U-0
PTMOD0
R/W-0
U-0
bit 0
bit 0

Related parts for PIC18F2331