English
Language : 

TMP19A71CYFG Datasheet, PDF (368/402 Pages) Toshiba Semiconductor – 32-Bit RISC Microprocessor
TMP19A71
(b) Programming example for polling the FLCS.RDY/BSY bit
lui
r7,hi(FLCS)
; r7=0xFFFF_xxxx
addiu
r7,r7,lo(FLCS)
; r7=0xFFFF_E520 (FLCS address)
rdybsy_lp:
; RDY/BSY poiing
lw
r6,0(r7)
; r6 <-- FLCS
andi
r6,r6,0x04
; Mask bits other than FLCS.RDY/BSY
beq
r6,r0,rdybsy_lp
; Loop until FLCS.RDY/BSY=1
nop
(c) Programming example for erasing Block 1 and polling the write status flags
lui
r4,0x0002
addiu
r4,r4,0x5554
; r4=0x0002_5554
lui
r5,0x0002
ori
r5,r5,0xaaa8
; r5=0x0002_aaa8
ori
r6,r0,0x00aa
; 1st bus write cycle
sw
r6,0(r4)
; 1st 0x0002_5554 <-- 0x00aa
sync
nop
ori
r6,r0,0x0055
; 2nd bus write cycle
sw
r6,0(r5)
; 2nd 0x0002_aaa8 <-- 0x0055
sync
nop
ori
r6,r0,0x0080
;3rd bus write cycle
sw
r6,0(r4)
; 3rd 0x0002_5554 <-- 0x0080
sync
nop
ori
r6,r0,0x00aa
; 4th bus write cycle
sw
r6,0(r4)
; 4th 0x0002_5554 <-- 0x00aa
sync
nop
ori
r6,r0,0x0055
; 5th bus write cycle
sw
r6,0(r5)
; 5th 0x0002_aaa8 <-- 0x0055
sync
nop
ori
r6,r0,0x0030
; 6th bus write cycle
sw
r6,0(r5)
; 6th 0x0002_aaa8(A17=1) <-- 0x0030
sync
; Start erasing Block 1
nop
dq3_lp:
lw
r6,0(r5)
; Start polling the write status flags
; Read data at 0x0002_aaa8
TMP19A71 17-64