AN114 Xicor, AN114 Datasheet - Page 12

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
read_from_dr:
mov_dr_2_wcr:
mov_wcr_2_dr:
global_dr_2_wcr:
global_wcr_2_dr:
decr_wiper:
incr_wiper:
REV 1.1 11/12/02
mov
mov
mov
call
mov
mov
mov
call
mov
mov
mov
call
mov
mov
mov
call
mov
mov
mov
call
mov
mov
mov
mov
call
mov
mov
mov
mov
call
END
ADDR_BYTE, #SLAVE_ADR12; Load Slave address byte
ID, #DCP2_R1; Specify DR#1 for DCP#2
COMMAND, #READDR; Read DR
execute
ADDR_BYTE, #SLAVE_ADR12; Load Slave address byte
ID, #DCP2_R1; Specify DR#1 to WCR of DCP#2
COMMAND, #XFRDR; Transfer DR to WCR
execute
ADDR_BYTE, #SLAVE_ADR12; Load Slave address byte
ID, #DCP2_R1; Specify WCR to DR#1 of DCP#2
COMMAND, #XFRWCR; Transfer WCRto DR
execute
ADDR_BYTE, #SLAVE_ADR12; Load Slave address byte
ID, #DR_1
COMMAND, #GXFRDR; Transfer DR to WCR
execute
ADDR_BYTE, #SLAVE_ADR12; Load Slave address byte
ID, #DR_1
COMMAND, #GXFRWCR; Transfer WCRto DR
execute
ADDR_BYTE, #SLAVE_ADR12; Load Slave address byte
ID, #WCR_2
PULSES, #0Fh; Decrement DCP#2 for 16 pulses
COMMAND, #INCDECWIPER; INC wiper
execute
ADDR_BYTE, #SLAVE_ADR12; Load Slave address byte
ID, #WCR_2
PULSES, #8Fh; Increment DCP#2 for 16 pulses
COMMAND, #INCDECWIPER; DEC wiper
execute
; DR value is in DATA_BYTE
; Specify DR#1 to WCR
; Specify WCR to DR#1 of DCP#2
; Select DCP#2
; Select DCP#2
Application Note
www.xicor.com
AN 114
12 of 12

Related parts for AN114