PIC16C558-04/SO Microchip Technology, PIC16C558-04/SO Datasheet - Page 31

IC MCU OTP 2KX14 18SOIC

PIC16C558-04/SO

Manufacturer Part Number
PIC16C558-04/SO
Description
IC MCU OTP 2KX14 18SOIC
Manufacturer
Microchip Technology
Series
PIC® 16Cr
Datasheets

Specifications of PIC16C558-04/SO

Core Size
8-Bit
Program Memory Size
3.5KB (2K x 14)
Core Processor
PIC
Speed
4MHz
Peripherals
POR, WDT
Number Of I /o
13
Program Memory Type
OTP
Ram Size
128 x 8
Voltage - Supply (vcc/vdd)
3 V ~ 5.5 V
Oscillator Type
External
Operating Temperature
0°C ~ 70°C
Package / Case
18-SOIC (7.5mm Width)
Controller Family/series
PIC16C
No. Of I/o's
13
Ram Memory Size
128Byte
Cpu Speed
4MHz
No. Of Timers
1
Lead Free Status / RoHS Status
Lead free / RoHS Compliant
For Use With
XLT18SO-1 - SOCKET TRANSITION 18SOIC 300MILISPICR1 - ADAPTER IN-CIRCUIT PROGRAMMING309-1075 - ADAPTER 18-SOIC TO 18-SOIC309-1024 - ADAPTER 28-SOIC TO 28-DIP309-1011 - ADAPTER 18-SOIC TO 18-DIP309-1010 - ADAPTER 18-SOIC TO 18-DIPAC164010 - MODULE SKT PROMATEII DIP/SOIC
Eeprom Size
-
Data Converters
-
Connectivity
-
Lead Free Status / RoHS Status
Lead free / RoHS Compliant, Lead free / RoHS Compliant
EXAMPLE 5-1:
FIGURE 5-6:
 2002 Microchip Technology Inc.
; Initial PORT settings: PORTB<7:4> Inputs
;
;
; PORTB<7:6> have external pull-up and are
; not connected to other circuitry
;
;
;
;
Note 1: This example shows write to PORTB followed by a read from PORTB.
BCF PORTB, 7
BCF PORTB, 6
BSF STATUS, RP0 ;
BCF TRISB, 7
BCF TRISB, 6
Instruction
2: Data setup time = (0.25 T
RB <7:0>
fetched
output valid. Therefore, at higher clock frequencies, a write followed by a read may be problematic.
PC
READ-MODIFY-WRITE
INSTRUCTIONS ON AN
I/O PORT
SUCCESSIVE I/O OPERATION
Q1
MOVWF PORTB
; 01pp pppp
; 10pp pppp
; 10pp pppp
; 10pp pppp
PORT latch PORT pins
---------- ---------
Q2
Write to
PORTB
PORTB<3:0> Outputs
PC
Q3
CY
Q4
- T
11pp pppp
11pp pppp
11pp pppp
10pp pppp
PD
) where T
Q1
MOVF PORTB, W
Read PORTB
MOVWF
Preliminary
Execute
PORTB
Q2
PC + 1
CY
T
Q3
= instruction cycle and T
PD
Q4
5.4.2
The actual write to an I/O port happens at the end of an
instruction cycle, whereas for reading, the data must be
valid at the beginning of the instruction cycle, as shown
in Figure 5-6. Therefore, care must be exercised if a
write followed by a read operation is carried out on the
same I/O port. The sequence of instructions should be
such to allow the pin voltage to stabilize (load
dependent) before the next instruction which causes
that file to be read into the CPU is executed. Otherwise,
the previous state of that pin may be read into the CPU
rather than the new state. When in doubt, it is better to
separate these instructions with an NOP or another
instruction not accessing this I/O port.
Q1
Port pin
sampled here
Q2
PORTB, W
PC + 2
Execute
NOP
MOVF
SUCCESSIVE OPERATIONS ON I/O
PORTS
Q3
PD
= propagation delay of Q1 cycle to
Q4
Q1
PIC16C55X
Execute
Q2
PC + 3
NOP
NOP
Q3
DS40143D-page 29
Q4

Related parts for PIC16C558-04/SO