PIC14000-04 Microchip Technology, PIC14000-04 Datasheet - Page 27

no-image

PIC14000-04

Manufacturer Part Number
PIC14000-04
Description
28-Pin Programmable Mixed Signal Controller
Manufacturer
Microchip Technology
Datasheet

Available stocks

Company
Part Number
Manufacturer
Quantity
Price
Part Number:
PIC14000-04/SO
Quantity:
48
Part Number:
PIC14000-04/SO
Manufacturer:
Microchip Technology
Quantity:
135
Part Number:
PIC14000-04/SO
Manufacturer:
Maxim
Quantity:
103
Part Number:
PIC14000-04/SP
Manufacturer:
Microchip
Quantity:
482
Part Number:
PIC14000-04/SP
Manufacturer:
MICROCHIP/微芯
Quantity:
20 000
Part Number:
PIC14000-04/SS
Manufacturer:
Microchip Technology
Quantity:
135
Part Number:
PIC14000-04/SS
Manufacturer:
MICROCHI
Quantity:
20 000
This interrupt can wake the device up from SLEEP. The
user, in the interrupt service routine, can clear the
interrupt in one of two ways:
• Disable the interrupt by clearing the RCIE
• Read PORTC. This will end mismatch condition.
A mismatch condition will continue to set the RCIF bit.
Reading PORTC will end the mismatch condition, and
allow the RCIF bit to be cleared.
If bit CMAOE (CMCON<1>) is set, the RC0/REFA pin
becomes the programmable reference A and analog
output. Pin RC1/CMPA becomes the comparator A out-
put.
PORTC<7:6> also serves multiple functions. These
pins act as the I
module is enabled. They also serve as the serial pro-
gramming interface data and clock line for in-circuit
programming of the EPROM.
FIGURE 5-3:
1996 Microchip Technology Inc.
(PIE1<2>) bit
Then, clear the RCIF (PIR1<2>) bit.
Note:
Note:
Setting CMAOE changes the definition of
RC0/REFA and RC1/CMPA, bypassing
the PORTC data and TRISC register set-
tings.
I/O pins have protection diodes to V
2
C data and clock lines when the I
BLOCK DIAGRAM OF PORTC<7:6> PINS
PORTC
TRISC
Write
Write
Data
Bus
Set
RCIF
PORTC
Read
D
CK Q
From other
PORTC pins
D
CK Q
Read
TRISC
Q
Q
I
2
DD
CCON<5>
Preliminary
2
and V
C
SS
. These pins do not have a P-channel pull-up.
The TRISC register controls the direction of the
PORTC pin. A ‘1’ in each location configures the
corresponding port pin as an input. Upon reset, this
register sets to FFh, meaning all PORTC pins are ini-
tially inputs. The data register should be initialized prior
to configuring the port as outputs.
Unused inputs should not be left floating to avoid
leakage currents. All pins have input protection diodes
to V
EXAMPLE 5-2:
CLRF
BSF
MOVLW 0xCF
MOVWF TRISC
Q
Q
DD
EN
EN
Schmitt Trigger
D
D
Input Buffer
and V
PORTC
STATUS, RPO
V
SS
V
SS
DD
N
N
.
Read PORTC
INITIALIZING PORTC
; Initialize PORTC data
;
;
;
; Value used to initialize
; data direction
; Set RC<3:0> as inputs
;
;
; Select Bank1
I/O
Pin
latches before setting
the data direction
register
RC<5:4> as outputs
RC<7:6> as inputs
PIC14000
DS40122B-page 27

Related parts for PIC14000-04