PIC10F200/202/204/206
FIGURE 5-2:
SUCCESSIVE I/O OPERATION (PIC10F200/202/204/206)
Q1 Q2 Q3 Q4
PC + 3
NOP
Q1 Q2 Q3 Q4 Q1 Q2 Q3 Q4 Q1 Q2 Q3 Q4
Instruction
Fetched
GP<2:0>
Port pin
written here
Instruction
Executed
MOVWF GPIO
(Write to GPIO)
Port pin
sampled here
MOVF GPIO,W
(Read GPIO)
PC
MOVWF GPIO
PC + 1
MOVF GPIO, W
PC + 2
NOP
This example shows a write to GPIO followed
by a read from GPIO.
Data setup time = (0.25 T
CY
– T
PD
)
where: T
CY
= instruction cycle
T
PD
= propagation delay
Therefore, at higher clock frequencies, a
write followed by a read may be problematic.
NOP
©
2007 Microchip Technology Inc.
DS41239D-page 27