參數(shù)資料
型號(hào): AN114
英文描述: Interfacing the X9408/X9418 XDCP to 8051 Microcontrollers
中文描述: 數(shù)字電位器的接口X9408/X9418的8051微控制器
文件頁(yè)數(shù): 10/12頁(yè)
文件大小: 262K
代理商: AN114
10 of 12
AN 114
Application Note
www.xicor.com
REV 1.1 11/12/02
clr
ret
SCL
;Complete clock pulse
;-----------------------------------------------------------------------------
;
; NAME: stop_cond (Stop condition)
; FUNCTION: Issues an I2C bus stop condition
; INPUTS: NONE
; OUTPUTS: NONE
; CALLS: NONE
; AFFECTED: SDA, SCL
;
;-----------------------------------------------------------------------------
stop_cond:
clr
SDA
; Pull SDA LOW and hold
setb
SCL
; Pull SCL HIGH and hold
nop
nop
nop
nop
setb
SDA
; Pull SDA HIGH (SCL=HIGH)
ret
;-----------------------------------------------------------------------------
;
; NAME: ack_send (Send Acknowledge)
; FUNCTION: Sends an acknowledge bit to complete SDA line data reads
; INPUTS: NONE
; OUTPUTS: NONE
; CALLS: send_bit
; AFFECTED: A
;
;-----------------------------------------------------------------------------
ack_send:
clr
call
ret
a
SEND_BIT
; A <- LOW (Sending a 0)
; Send the bit!
;-----------------------------------------------------------------------------
;
; NAME: polling (Acknowledge polling for XFR_WCR, WRITE_DR, GXFR_WCR)
; FUNCTION: Sends dummy commands to X9408 during an internal write cycle
;
so that the end of the cycle is marked by an acknowledge
; INPUTS: ADDR_BYTE
; OUTPUTS: NONE
; CALLS: start_cond, send_byte
; AFFECTED: C
;
;-----------------------------------------------------------------------------
polling:
call
mov
START_COND
a,ADDR_BYTE
; Re-establish I2C protocol
; Attempt to send a dummy command
again:
call
jc
SEND_BYTE
POLLING
; If C=1, then there was no ACK
ret
相關(guān)PDF資料
PDF描述
AN12-008-5 Analog IC
AN13-006-5 Analog IC
AP22-008-5 Analog IC
AP23-006-5 Analog IC
AN11-020-5 Analog IC
相關(guān)代理商/技術(shù)參數(shù)
參數(shù)描述
AN1149-3 制造商:LUMILEDS 制造商全稱:LUMILEDS 功能描述:Electrical Design Considerations for SuperFlux LEDs
AN1149-3A 制造商:LUMILEDS 制造商全稱:LUMILEDS 功能描述:Advanced Electrical Design Models
AN1149-3B 制造商:LUMILEDS 制造商全稱:LUMILEDS 功能描述:SuperFlux & SnapLED Emitter Forward Voltage Data
AN1149-4 制造商:LUMILEDS 制造商全稱:LUMILEDS 功能描述:Thermal Management Considerations for SuperFlux LEDs
AN1149-5 制造商:LUMILEDS 制造商全稱:LUMILEDS 功能描述:Secondary Optics Design Considerations for SuperFlux LEDs