Microchip Technology MA330031-2 Data Sheet

Page of 530
dsPIC33EPXXXGP50X, dsPIC33EPXXXMC20X/50X AND PIC24EPXXXGP/MC20X
DS70000657H-page 342
 2011-2013 Microchip Technology Inc.
  
REGISTER 24-2:
PTGCON: PTG CONTROL REGISTER
R/W-0
R/W-0
R/W-0
R/W-0
R/W-0
R/W-0
R/W-0
R/W-0
PTGCLK2
PTGCLK1
PTGCLK0
PTGDIV4
PTGDIV3
PTGDIV2
PTGDIV1
PTGDIV0
bit 15
bit 8
R/W-0
R/W-0
R/W-0
R/W-0
U-0
R/W-0
R/W-0
R/W-0
PTGPWD3
PTGPWD2
PTGPWD1
PTGPWD0
PTGWDT2
PTGWDT1
PTGWDT0
bit 7
bit 0
Legend:
R = Readable bit
W = Writable bit
U = Unimplemented bit, read as ‘0’
-n = Value at POR
‘1’ = Bit is set
‘0’ = Bit is cleared
x = Bit is unknown
bit 15-13
PTGCLK<2:0>:
 Select PTG Module Clock Source bits
111
 = Reserved
110
 = Reserved
101
 = PTG module clock source will be T3CLK
100
 = PTG module clock source will be T2CLK
011
 = PTG module clock source will be T1CLK
010
 = PTG module clock source will be T
AD
001
 = PTG module clock source will be F
OSC
000
 = PTG module clock source will be F
P
bit 12-8
PTGDIV<4:0>:
 PTG Module Clock Prescaler (divider) bits
11111
 = Divide-by-32
11110
 = Divide-by-31



00001
 = Divide-by-2
00000
 = Divide-by-1
bit 7-4
PTGPWD<3:0>:
 PTG Trigger Output Pulse-Width bits
1111
 = All trigger outputs are 16 PTG clock cycles wide
1110
 = All trigger outputs are 15 PTG clock cycles wide



0001
 = All trigger outputs are 2 PTG clock cycles wide
0000
 = All trigger outputs are 1 PTG clock cycle wide
bit 3
Unimplemented:
 Read as ‘0’ 
bit 2-0
PTGWDT<2:0>:
 Select PTG Watchdog Timer Time-out Count Value bits
111
 = Watchdog Timer will time-out after 512 PTG clocks
110
 = Watchdog Timer will time-out after 256 PTG clocks
101
 = Watchdog Timer will time-out after 128 PTG clocks
100
 = Watchdog Timer will time-out after 64 PTG clocks
011
 = Watchdog Timer will time-out after 32 PTG clocks
010
 = Watchdog Timer will time-out after 16 PTG clocks
001
 = Watchdog Timer will time-out after 8 PTG clocks
000
 = Watchdog Timer is disabled