English
Language : 

PIC18F2331 Datasheet, PDF (273/396 Pages) Microchip Technology – 28/40/44-Pin Enhanced Flash Microcontrollers with nanoWatt Technology, High Performance PWM and A/D
PIC18F2331/2431/4331/4431
REGISTER 22-4: CONFIG3L: CONFIGURATION REGISTER 3 LOW (BYTE ADDRESS 300004h)
U-0
U
R/P-1
R/P-1
R/P-1
R/P-1
U
U
—
—
T1OSCMX HPOL
LPOL PWMPIN
—
—
bit 7
bit 0
bit 7-6
bit 5
bit 4
bit 3
bit 2
bit 1-0
Unimplemented: Read as ‘0’
T1OSCMX: Timer1 Oscillator Mode bit
1 = Low power Timer1 operation when microcontroller is in Sleep mode.
0 = Standard (legacy) Timer1 oscillator operation.
HPOL(1): High-Side Transistors Polarity bit (i.e., odd PWM output polarity control bit )
1 = PWM 1, 3, 5 and 7 are active-high (default)
0 = PWM 1, 3, 5 and 7 are active-low
LPOL(1): Low-Side Transistors Polarity bit (i.e., even PWM output polarity control bit)
1 = PWM 0, 2, 4 and 6 are active-high (default)
0 = PWM 0, 2, 4 and 6 are active-low
PWMPIN(2): PWM output pins Reset state control bit
1 = PWM outputs disabled upon Reset (default)
0 = PWM outputs drive active states upon Reset(3)
Unimplemented: Read as ‘0’
Note 1: Polarity control bits HPOL and LPOL define PWM signal output active and inactive
states; PWM states generated by the fault inputs or PWM manual override.
2: PWM6 and PWM7 output channels are only available on the PIC18F4X21 devices.
3: When PWMPIN = 0, PWMEN<2:0> = 101 if device has eight PWM output pins (40
and 44-pin devices) and PWMEN<2:0> = 100 if the device has six PWM output pins
(28-pin device). PWM output polarity is defined by HPOL and LPOL.
Legend:
R = Readable bit
P = Programmable bit
- n = Value when device is unprogrammed
U = Unimplemented bit, read as ‘0’
u = Unchanged from programmed state
 2003 Microchip Technology Inc.
Preliminary
DS39616B-page 271