English
Language : 

PIC16LF18854 Datasheet, PDF (199/668 Pages) Microchip Technology – C Compiler Optimized RISC Architecture
PIC16(L)F18856/76
12.1.1 CURRENT-CONTROLLED DRIVE
Special precautions must be taken when enabling the
current-controlled output drivers. An external resistor
must be inserted in series with the load to dissipate
most of the power. If an external resistor is not used
then the pin circuity will dissipate all the power, thereby
exceeding the maximum power specifications for the
pin and the device. Determine the resistance and
power rating of the external resistor such that the
voltage at the pin is 0 for current sink and VDD for
current source when the load is drawing the maximum
expected power. For example, consider a load that is
expected to vary from 1.0 to 1.5 volts. When VDD is 5V
and the current is 1 mA then the combination of the
external resistor and pin circuitry must make up the 3.5
to 4V difference. The external resistor should be sized
to drop 3.5V at a current of 1 mA. The pin circuitry will
then make up the 0 to 0.5 volt difference.
12.2 I/O Priorities
Each pin defaults to the PORT data latch after Reset.
Other functions are selected with the peripheral pin
select logic. See Section 13.0 “Peripheral Pin Select
(PPS) Module” for more information.
Analog input functions, such as ADC and comparator
inputs, are not shown in the peripheral pin select lists.
These inputs are active when the I/O pin is set for
Analog mode using the ANSELx register. Digital output
functions may continue to control the pin when it is in
Analog mode.
Analog outputs, when enabled, take priority over the
digital outputs and force the digital output driver to the
high-impedance state.
12.3 Register Definitions: Current-Controlled Drive Configuration
REGISTER 12-1: CCDCON REGISTER
R/W-0/0
U-0
U-0
U-0
U-0
U-0
CCDEN(1)
—
—
—
—
—
bit 7
R/W-x/u
R/W-x/u
CCDS<1:0>
bit 0
Legend:
R = Readable bit
u = Bit is unchanged
‘1’ = Bit is set
W = Writable bit
x = Bit is unknown
‘0’ = Bit is cleared
U = Unimplemented bit, read as ‘0’
-n/n = Value at POR and BOR/Value at all other Resets
bit 7
bit 6-2
bit 1-0
CCDEN: Current Controlled Drive Enable bit(1)
1 = Current-Controlled drive is enabled for all ports. Port pins enabled for current-controlled source
with the CCDPxy or current-controlled sink with the CCCNxy controls will have their current lim-
ited to that selected by the CCDS selection.
0 = Current-controlled drive disabled
Unimplemented: Read as ‘0’
CCDS<1:0>: Current Controlled Drive Selection bits:
Current setting (mA):
11 = 1.0
10 = 2.0
01 = 5.0
00 = 10.0
Note 1: If either CCDPxy or CCDNxy is set when CCDEN = 0, the operation of the pin is undefined.
 2016 Microchip Technology Inc.
Preliminary
DS40001824A-page 199