AN114 Xicor, AN114 Datasheet - Page 6

no-image

AN114

Manufacturer Part Number
AN114
Description
Interfacing the X9408/X9418 XDCP to 8051 Microcontrollers
Manufacturer
Xicor
Datasheet

Available stocks

Company
Part Number
Manufacturer
Quantity
Price
Part Number:
AN1149FHKEBV
Manufacturer:
PANASONIC/松下
Quantity:
20 000
; FUNCTION: Appends bits R1, R0, P1, P0 to the appropriate
;
;
; INPUTS: ID
; OUTPUTS: NONE
; CALLS: instr_gen
; AFFECTED: ID,A,DPTR
;
;-----------------------------------------------------------------------------
read_wcr:
write_wcr:
read_dr:
write_dr:
xfr_dr:
xfr_wcr:
gxfr_dr:
REV 1.1 11/12/02
Instruction code and passes the instruction byte to the
Instruction Generator.
mov
orl
mov
mov
call
ret
mov
orl
mov
mov
call
ret
mov
orl
mov
mov
call
ret
mov
orl
mov
mov
call
ret
mov
orl
mov
mov
call
ret
mov
orl
mov
mov
call
ret
mov
orl
mov
mov
call
ret
a,ID
a,#090h
ID,a
dptr,#case1
instr_gen
a,ID
a,#0A0h
ID,a
dptr,#case2
instr_gen
a,ID
a,#0B0h
ID,a
dptr,#case1
instr_gen
a,ID
a,#0C0h
ID, a
dptr,#case3
instr_gen
a,ID
a,#0D0h
ID, a
dptr,#case4
instr_gen
a,ID
a,#0E0h
ID, a
dptr,#case5 ; Jump to the addr for this instruction
instr_gen
a,ID
a,#010h
ID, a
dptr,#case4
instr_gen
; Get bits R1 R0 P1 P0
; Save the result
; Append to Write WCR instruction code
; Append to the XFR WCR instruction code
; Get bits x x P1 P0
; Append to read WCR instruction code
; Save the result
; Jump to the base addr for this instruciton
; Get bits x x P1 P0
; Save the result
; Jump to the base addr for this instruction
; Get bits R1 R0 P1 P0
; Append to Read DR instruction code
; Save the result
; Jump to the base addr for this instruction
; Get bits R1 R0 P1 P0
; Append to Write DR instruction code
; Save the result
; Jump to the base addr for this instruction
; Get bits R1 R0 P1 P0
; Append to the XFR DR instruction code
; Save the result
; Jump to the addr for this instruction
; Get bits R1 R0 x x
; Append to the GXFR DR instruction code
; Save the result
; Jump to the addr for this instruction
Application Note
www.xicor.com
AN 114
6 of 12

Related parts for AN114