Microchip Technology AC164337 Data Sheet

Page of 286
dsPIC30F1010/202X
DS70000178D-page 110
 2006-2014 Microchip Technology Inc.
  
REGISTER 12-1:
PTCON: PWM TIME BASE CONTROL REGISTER
R/W-0
U-0
R/W-0
R/W-0
R/W-0
R/W-0
R/W-0
R/W-0
PTEN
PTSIDL
SESTAT
SEIEN
EIPU
SYNCPOL
SYNCOEN
bit 15
bit 8
R/W-0
R/W-0
R/W-0
R/W-0
R/W-0
R/W-0
R/W-0
R/W-0
SYNCEN
SYNCSRC<2:0>
SEVTPS<3:0>
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
PTEN: PWM Module Enable bit 
1
 = PWM module is enabled
0
 = PWM module is disabled
bit 14
Unimplemented: Read as ‘0’ 
bit 13
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
bit 12
SESTAT: Special Event Interrupt Status bit
1
 =  Special Event Interrupt is pending
0
 =  Special Event Interrupt is not pending
bit 11
SEIEN: Special Event Interrupt Enable bit
1
 =  Special Event Interrupt is enabled
0
 =  Special Event Interrupt is disabled
bit 10
EIPU: Enable Immediate Period Updates bit
1
 =  Active Period register is updated immediately
0
 =  Active Period register updates occur on PWM cycle boundaries
bit 9
SYNCPOL: Synchronize Input Polarity bit
1
 =  SYNCIN polarity is inverted (low active)
0
 =  SYNCIN is high active
bit 8
SYNCOEN: Primary Time Base Sync Enable bit
1
 =  SYNCO output is enabled
0
 =  SYNCO output is disabled
bit 7
SYNCEN: External Time Base Synchronization Enable bit
1
 =  External synchronization of primary time base is enabled
0
 =  External synchronization of primary time base is disabled
bit 6-4
SYNCSRC<2:0>: Sync Source Selection bits
000
 =  SYNCI
001
 =  Reserved
 .
 .
111
 =  Reserved
bit 3-0
SEVTPS<3:0>: PWM Special Event Trigger Output Postscale Select bits
0000
 = 1:1 Postscale
0001
 = 1:2 Postscale
  | |
  | |
1111
 = 1:16 Postscale