PIC16F54-I/SS Microchip Technology, PIC16F54-I/SS Datasheet - Page 31

IC MCU FLASH 512X12 20SSOP

PIC16F54-I/SS

Manufacturer Part Number
PIC16F54-I/SS
Description
IC MCU FLASH 512X12 20SSOP
Manufacturer
Microchip Technology
Series
PIC® 16Fr
Datasheets

Specifications of PIC16F54-I/SS

Core Size
8-Bit
Program Memory Size
768B (512 x 12)
Core Processor
PIC
Speed
20MHz
Peripherals
POR, WDT
Number Of I /o
12
Program Memory Type
FLASH
Ram Size
25 x 8
Voltage - Supply (vcc/vdd)
2 V ~ 5.5 V
Oscillator Type
External
Operating Temperature
-40°C ~ 85°C
Package / Case
20-SSOP
Controller Family/series
PIC16F
No. Of I/o's
12
Ram Memory Size
25Byte
Cpu Speed
20MHz
No. Of Timers
1
Lead Free Status / RoHS Status
Lead free / RoHS Compliant
For Use With
AC164307 - MODULE SKT FOR PM3 28SSOPAC164014 - MODULE SKT PROMATEII 44PQFP
Eeprom Size
-
Data Converters
-
Connectivity
-
Lead Free Status / RoHS Status
Lead free / RoHS Compliant, Lead free / RoHS Compliant

Available stocks

Company
Part Number
Manufacturer
Quantity
Price
Part Number:
PIC16F54-I/SS
Manufacturer:
MIC
Quantity:
20 000
6.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
high-impedance) since the I/O control registers
(TRISA, TRISB, TRISC) are all set.
6.1
PORTA is a 4-bit I/O register. Only the low order 4 bits
are used (RA<3:0>). Bits 7-4 are unimplemented and
read as ‘0’s.
6.2
PORTB is an 8-bit I/O register (PORTB<7:0>).
6.3
PORTC is an 8-bit I/O register (PORTC<7:0>) for the
PIC16F57.
PORTC is a general purpose register for the
PIC16F54.
6.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 corre-
sponding output driver in a high-impedance (Input)
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 6-1:
 2004 Microchip Technology Inc.
N/A
05h
06h
07h
Legend:
Note 1:
Address
Note:
I/O PORTS
PORTA
PORTB
PORTC
TRIS Registers
Shaded cells = unimplemented, read as ‘0’, — = unimplemented, read as ‘0’,
File address 07h is a general purpose register on the PIC16F54.
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
(1)
I/O Control Registers (TRISA, TRISB, TRISC)
Bit 7
RB7
RC7
Bit 6
RC6
RB6
Bit 5
RB5
RC5
Preliminary
Bit 4
RB4
RC4
Bit 3
RA3
RB3
RC3
6.5
The equivalent circuit for an I/O port pin is shown in
Figure 6-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 PORTB, W). The out-
puts 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
and TRISC) 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 6-1:
Data
Bus
WR
Port
W
Reg
TRIS ‘f’
Bit 2
RC2
RA2
RB2
I/O Interfacing
D
D
Bit 1
CK
CK
RC1
RA1
RB1
Reset
TRIS
Latch
Data
Latch
x
= unknown,
Q
Q
Q
Q
Bit 0
RA0
RB0
RC0
EQUIVALENT CIRCUIT
FOR A SINGLE I/O PIN
RD Port
PIC16F5X
1111 1111
---- xxxx
xxxx xxxx
xxxx xxxx
u
Power-on
Value on
= unchanged
Reset
Q
DS41213B-page 29
E
V
V
P
N
D
SS
DD
1111 1111
---- uuuu
uuuu uuuu
uuuu uuuu
WDT Reset
MCLR and
Value on
V
V
DD
SS
I/O
pin

Related parts for PIC16F54-I/SS