English
Language : 

PIC24FJ16MC101_12 Datasheet, PDF (159/350 Pages) Microchip Technology – 16-bit Microcontrollers (up to 32 KB Flash and 2 KB SRAM)
PIC24FJ16MC101/102 AND PIC24FJ32MC101/102/104
REGISTER 15-1: PxTCON: PWM TIME BASE CONTROL REGISTER
R/W-0
U-0
R/W-0
U-0
U-0
U-0
PTEN
—
PTSIDL
—
—
—
bit 15
U-0
U-0
—
—
bit 8
R/W-0
bit 7
R/W-0
R/W-0
PTOPS<3:0>
R/W-0
R/W-0
R/W-0
PTCKPS<1:0>
R/W-0
R/W-0
PTMOD<1:0>
bit 0
Legend:
R = Readable bit
-n = Value at POR
W = Writable bit
‘1’ = Bit is set
U = Unimplemented bit, read as ‘0’
‘0’ = Bit is cleared
x = Bit is unknown
bit 15
bit 14
bit 13
bit 12-8
bit 7-4
bit 3-2
bit 1-0
PTEN: PWM Time Base Timer Enable bit
1 = PWM time base is on
0 = PWM time base is off
Unimplemented: Read as ‘0’
PTSIDL: PWM Time Base Stop in Idle Mode bit
1 = PWM time base halts in CPU Idle mode
0 = PWM time base runs in CPU Idle mode
Unimplemented: Read as ‘0’
PTOPS<3:0>: PWM Time Base Output Postscale Select bits
1111 = 1:16 postscale
•
•
•
0001 = 1:2 postscale
0000 = 1:1 postscale
PTCKPS<1:0>: PWM Time Base Input Clock Prescale Select bits
11 = PWM time base input clock period is 64 TCY (1:64 prescale)
10 = PWM time base input clock period is 16 TCY (1:16 prescale)
01 = PWM time base input clock period is 4 TCY (1:4 prescale)
00 = PWM time base input clock period is TCY (1:1 prescale)
PTMOD<1:0>: PWM Time Base Mode Select bits
11 = PWM time base operates in a Continuous Up/Down Count mode with interrupts for double
PWM updates
10 = PWM time base operates in a Continuous Up/Down Count mode
01 = PWM time base operates in Single Pulse mode
00 = PWM time base operates in a Free-Running mode
© 2011-2012 Microchip Technology Inc.
Preliminary
DS39997C-page 159