Datasheet
1999 Microchip Technology Inc. DS40139E-page 23
PIC12C5XX
FIGURE 5-2: SUCCESSIVE I/O OPERATION
PC PC + 1 PC + 2
PC + 3
Q1 Q2
Q3
Q4
Q1 Q2
Q3
Q4
Q1 Q2
Q3
Q4
Q1 Q2
Q3
Q4
Instruction
fetched
GP5:GP0
MOVWF GPIO
NOP
Port pin
sampled here
NOP
MOVF GPIO,W
Instruction
executed
MOVWF GPIO
(Write to
GPIO)
NOP
MOVF GPIO,W
This example shows a write to GPIO followed
by a read from GPIO.
Data setup time = (0.25 T
CY – TPD)
where: T
CY = instruction cycle.
T
PD = propagation delay
Therefore, at higher clock frequencies, a
write followed by a read may be problematic.
(Read
GPIO)
Port pin
written here