PIC16C54B-20/P Microchip Technology, PIC16C54B-20/P Datasheet - Page 25
![MICRO CTRL 512 20MHZ OTP 18DIP](/photos/6/76/67657/18-dip_300mil__sml.jpg)
PIC16C54B-20/P
Manufacturer Part Number
PIC16C54B-20/P
Description
MICRO CTRL 512 20MHZ OTP 18DIP
Manufacturer
Microchip Technology
Series
PIC® 16Cr
Specifications of PIC16C54B-20/P
Core Processor
PIC
Core Size
8-Bit
Speed
20MHz
Peripherals
POR, WDT
Number Of I /o
12
Program Memory Size
768B (512 x 12)
Program Memory Type
OTP
Ram Size
25 x 8
Voltage - Supply (vcc/vdd)
3 V ~ 5.5 V
Oscillator Type
External
Operating Temperature
0°C ~ 70°C
Package / Case
18-DIP (0.300", 7.62mm)
Lead Free Status / RoHS Status
Request inventory verification / Request inventory verification
Eeprom Size
-
Data Converters
-
Connectivity
-
- Current page: 25 of 218
- Download datasheet (2Mb)
5.0
As with any other register, the I/O registers can be
written and read under program control. However, read
instructions (e.g., MOVF PORTB,W) always read the I/O
pins independent of the pin’s input/output modes. On
RESET, all I/O ports are defined as input (inputs are at
hi-impedance) since the I/O control registers (TRISA,
TRISB, TRISC) are all set.
5.1
PORTA is a 4-bit I/O register. Only the low order 4 bits
are used (RA3:RA0). Bits 7-4 are unimplemented and
read as '0's.
5.2
PORTB is an 8-bit I/O register (PORTB<7:0>).
5.3
PORTC is an 8-bit I/O register for PIC16C55s,
PIC16C57s and PIC16CR57s.
PORTC is a general purpose register for PIC16C52,
PIC16C54s, PIC16CR54s, PIC16C56s, PIC16C58s
and PIC16CR58s.
5.4
The output driver control registers are loaded with the
contents of the W register by executing the TRIS f
instruction. A '1' from a TRIS register bit puts the
corresponding output driver in a hi-impedance mode.
A '0' puts the contents of the output data latch on the
selected pins, enabling the output buffer.
The TRIS registers are “write-only” and are set (output
drivers disabled) upon RESET.
TABLE 5-1:
N/A
05h
06h
07h
Legend: Shaded boxes = unimplemented, read as ‘0’,
Note:
Address
1998 Microchip Technology Inc.
I/O PORTS
PORTA
PORTB
PORTC
TRIS Registers
– = unimplemented, read as '0', x = unknown, u = unchanged
A read of the ports reads the pins, not the
output data latches. That is, if an output
driver on a pin is enabled and driven high,
but the external system is holding it low, a
read of the port will indicate that the pin is
low.
TRIS
PORTA
PORTB
PORTC
Name
SUMMARY OF PORT REGISTERS
I/O control registers (TRISA, TRISB, TRISC)
Bit 7
RC7
RB7
—
Bit 6
RC6
RB6
—
Bit 5
RB5
RC5
—
Preliminary
Bit 4
RB4
RC4
—
Bit 3
RC3
RA3
RB3
5.5
The equivalent circuit for an I/O port pin is shown in
Figure 5-1. All ports may be used for both input and
output operation. For input operations these ports are
non-latching. Any input must be present until read by
an input instruction (e.g., MOVF
outputs are latched and remain unchanged until the
output latch is rewritten. To use a port pin as output,
the corresponding direction control bit (in TRISA,
TRISB) must be cleared (= 0). For use as an input, the
corresponding TRIS bit must be set. Any I/O pin can
be programmed individually as input or output.
FIGURE 5-1:
Note 1: I/O pins have protection diodes to V
Data
Bus
WR
Port
W
Reg
TRIS ‘f’
Bit 2
RA2
RB2
RC2
I/O Interfacing
D
D
CK
CK
Bit 1
RA1
RB1
RC1
Reset
TRIS
Latch
Data
Latch
EQUIVALENT CIRCUIT
FOR A SINGLE I/O PIN
Q
Q
Q
Q
Bit 0
RC0
RA0
RB0
RD Port
PIC16C5X
1111 1111
---- xxxx
xxxx xxxx
xxxx xxxx
Power-On
Value on
Reset
PORTB,
DS30453B-page 25
V
V
P
N
DD
SS
DD
1111 1111
---- uuuu
uuuu uuuu
uuuu uuuu
WDT Reset
MCLR and
and V
Value on
W). The
I/O
pin
SS
.
(1)
Related parts for PIC16C54B-20/P
Image
Part Number
Description
Manufacturer
Datasheet
Request
R
![PIC16C54B-04I/SO](/photos/6/76/67656/150-18-soic_tmb.jpg)
Part Number:
Description:
MICRO CTRL 512 4MHZ OTP 18SOIC
Manufacturer:
Microchip Technology
Datasheet:
![PIC16C54B-04/P](/photos/6/76/67657/18-dip_300mil__tmb.jpg)
Part Number:
Description:
MICRO CTRL 512 4MHZ OTP 18DIP
Manufacturer:
Microchip Technology
Datasheet:
![PIC16C54B-04/SO](/photos/6/76/67656/150-18-soic_tmb.jpg)
Part Number:
Description:
MICRO CTRL 512 4MHZ OTP 18SOIC
Manufacturer:
Microchip Technology
Datasheet:
![PIC16C54B-20/SO](/photos/6/76/67656/150-18-soic_tmb.jpg)
Part Number:
Description:
MICRO CTRL 512 20MHZ OTP 18SOIC
Manufacturer:
Microchip Technology
Datasheet:
![PIC16C54B/JW](/photos/12/13/121351/150-18-cdip_tmb.jpg)
Part Number:
Description:
MICRO CTRL 512 X 12 EPROM 18CDIP
Manufacturer:
Microchip Technology
Datasheet:
![PIC16C54B-04I/P](/photos/6/76/67657/18-dip_300mil__tmb.jpg)
Part Number:
Description:
MICRO CTRL 512 4MHZ OTP 18DIP
Manufacturer:
Microchip Technology
Datasheet:
![PIC16C54B-04I/SS](/photos/6/58/65895/150-20-ssop_tmb.jpg)
Part Number:
Description:
MICRO CTRL 512 4MHZ OTP 20SSOP
Manufacturer:
Microchip Technology
Datasheet:
![PIC16C54B-04/SS](/photos/6/58/65895/150-20-ssop_tmb.jpg)
Part Number:
Description:
MICRO CTRL 512 4MHZ OTP 20SSOP
Manufacturer:
Microchip Technology
Datasheet:
![PIC16C54B-20I/P](/photos/6/76/67657/18-dip_300mil__tmb.jpg)
Part Number:
Description:
MICRO CTRL 512 20MHZ OTP 18DIP
Manufacturer:
Microchip Technology
Datasheet:
![PIC16C54B-20I/SO](/photos/6/76/67656/150-18-soic_tmb.jpg)
Part Number:
Description:
MICRO CTRL 512 20MHZ OTP 18SOIC
Manufacturer:
Microchip Technology
Datasheet:
![PIC16C54B-20I/SS](/photos/6/58/65895/150-20-ssop_tmb.jpg)
Part Number:
Description:
MICRO CTRL 512 20MHZ OTP 20SSOP
Manufacturer:
Microchip Technology
Datasheet:
![PIC16C54B-20/SS](/photos/6/58/65895/150-20-ssop_tmb.jpg)
Part Number:
Description:
MICRO CTRL 512 20MHZ OTP 20SSOP
Manufacturer:
Microchip Technology
Datasheet:
![PIC16C54-XTI/SO](/photos/6/76/67656/150-18-soic_tmb.jpg)
Part Number:
Description:
IC MCU OTP 512X12 18SOIC
Manufacturer:
Microchip Technology
Datasheet:
![PIC16C54-RC/P](/photos/6/76/67657/18-dip_300mil__tmb.jpg)
Part Number:
Description:
IC MCU OTP 512X12 18DIP
Manufacturer:
Microchip Technology
Datasheet:
![PIC16C54-RC/SO](/photos/6/76/67656/150-18-soic_tmb.jpg)
Part Number:
Description:
IC MCU OTP 512X12 18SOIC
Manufacturer:
Microchip Technology
Datasheet: