DatasheetQ Logo
Electronic component search and free download site. Transistors,MosFET ,Diode,Integrated circuits

PIC16LC558T-04/SO View Datasheet(PDF) - Microchip Technology

Part Name
Description
Manufacturer
PIC16LC558T-04/SO
Microchip
Microchip Technology 
PIC16LC558T-04/SO Datasheet PDF : 108 Pages
First Prev 21 22 23 24 25 26 27 28 29 30 Next Last
5.3 PORTC and TRISC Registers(1)
PORTC is a 8-bit wide latch. All pins have data direc-
tion bits (TRIS registers) which can configure these
pins as input or output.
A '1' in the TRISC register puts the corresponding out-
put driver in a Hi-impedance mode. A '0' in the TRISC
register puts the contents of the output latch on the
selected pin(s).
Reading the PORTC register reads the status of the
pins, whereas writing to it will write to the port latch. All
write operations are read-modify-write operations. So a
write to a port implies that the port pins are first read,
then this value is modified and written to the port data
latch
PIC16C55X
FIGURE 5-5:
BLOCK DIAGRAM OF
PORT PINS RC<7:0>
Data
Bus
WR
PORTC
WR
TRISC
D
Q
CK
Q
Data Latch
D
Q
CK
Q
TRIS Latch
RD TRISC
VDD
P
VDD
N
I/O pin
VSS
VSS
TTL
Input
Buffer
Q
D
EN
RD PORTC
TABLE 5-5: PORTC FUNCTIONS
Name
Bit #
Buffer Type
RC0
RC1
RC2
RC3
RC4
RC5
RC6
RC7
Legend:
Bit 0
TTL
Bi-directional I/O port.
Bit 1
TTL
Bi-directional I/O port.
Bit 2
TTL
Bi-directional I/O port.
Bit 3
TTL
Bi-directional I/O port.
Bit 4
TTL
Bi-directional I/O port.
Bit 5
TTL
Bi-directional I/O port.
Bit 6
TTL
Bi-directional I/O port.
Bit 7
TTL
Bi-directional I/O port.
ST = Schmitt Trigger, TTL = TTL input
Function
TABLE 5-6: SUMMARY OF REGISTERS ASSOCIATED WITH PORTC AND TRISC
Address Name
Bit 7
Bit 6
Bit 5
Bit 4
Bit 3
Bit 2
Bit 1
Bit 0
Value on
POR
07h
PORTC
RC7
RC6
87h
TRISC
TRISC7 TRISC6
Legend: x = unknown, u = unchanged
Note 1: PIC16C557 ONLY.
RC5
RC4
RC3
RC2
RC1
RC0
TRISC5 TRISC4 TRISC3 TRISC2 TRISC1 TRISC0
xxxx xxxx
1111 1111
Value on
All Other
RESETS
uuuu uuuu
1111 1111
2002 Microchip Technology Inc.
Preliminary
DS40143D-page 27

Share Link: 

datasheetq.com  [ Privacy Policy ]Request Datasheet ] [ Contact Us ]