beautypg.com

Maxim Integrated Ultra-High-Speed Flash Microcontroller User Manual

Page 61

background image

5-14

Ultra-High-Speed Flash

Microcontroller User’s Guide

Page Mode 1 External Timing—Pages 1:0 = 00b (One Cycle) (continued)

Figure 5-19 illustrates the JBC bit, rel (3 bytes, four cycles) instruction for the case where the tested bit is clear and the jump is not

taken. Note that one stall cycle must be inserted since the cycle count exceeds the byte count by one. The RET (1 byte, three cycles)

instruction that follows requires insertion of two stall cycles. In this example, the return address is on a different 256-byte page than the

RET instruction, thus resulting in a page-miss memory cycle. The MOV direct, #data (3 bytes, three cycles) executed next provides an

example of an instruction not requiring any stall cycles.

Figure 5-20 shows the same JBC bit, rel instruction for the case where the tested bit is set and the jump is taken. Since the bit must

be cleared and involves one of the special registers (PSW, SP, DPS, IE, EIE, IP0, IP1, EIP0, EIP1), a fifth memory cycle is required. For

this example, the jump taken by the JBC instruction crosses a 256-byte page boundary, while the RET instruction stays on the same

page.

SYSCLK

ALE

PSEN

PORT2

PORT0

10

D1

1D

HIT

HIT

MISS

JBC PSW.1, $+20h

LSB

stall

HIT

HIT

HIT

stall

stall

22

75

90

55

MISS

HIT

HIT

HIT

MOV P1,#55h

stall

RET

Figure 5-20. One-Cycle Page Mode 1: (Page Miss) – JBC Bit, Rel (Five Cycles) – (Page Miss) – RET – MOV Direct, Data

RET

SYSCLK

ALE

PSEN

PORT2

PORT0

10

D1

1D

HIT

HIT

MISS

JBC PSW.1, $+20h

LSB

22

stall

HIT

HIT

HIT

stall

stall

LSB

75

90

55

HIT

HIT

HIT

HIT

MOV P1,#55h

MISS

Figure 5-19. One-Cycle Page Mode 1: (Page Miss) – JBC Bit, Rel (Four Cycles)) – RET – (Page Miss)– MOV Direct, Data

Maxim Integrated