參數(shù)資料
型號(hào): X12xx-EVM(中文)
英文描述: Xicor RTC X12xx-EVM User Guide(XICOR RTC X12xx-EVM評(píng)估板使用說明)
中文描述: Xicor時(shí)鐘X12xx - EVM用戶指南(XICOR RTC的X12xx - EVM的評(píng)估板使用說明)
文件頁數(shù): 14/18頁
文件大小: 561K
代理商: X12XX-EVM(中文)
ProgB8:
;*******************************************************************************
;** Name: SlavAddr
;** Description: Build the slave address for the IIC Device.
;** Function: This subroutine concatenates the bit fields for Device ID,
;** the high address bits and the command bit. The resultant
;** byte is then transmitted to the IIC Device.
;** Calls: OutByte
;** Input: C = COMMAND BIT (=0 WRITE, =1 READ)
;** Output: None
;** Register Usage: A
;*******************************************************************************
SlavAddr:
mov A,dID
; IF IS FIXED DEVICE USE:'#DeviceID'
rlc A ; MERGE THE COMMAND BIT
ajmp OutByte ; SEND THE SLAVE ADDRESS
;*******************************************************************************
;** Name: OutByte
;** Description: Sends a byte to the IIC Device
;** Function: This subroutine shifts out a byte, MSB first, through the
;** assigned SDA/SCL lines on port 1.
;** Calls: ClockPulse, GetACK
;** Input: A = Byte to be sent
;** Return Value: None
;** Register Usage: A
;*******************************************************************************
OutByte:
setb C
OutByteLoop:
rlc A ; SHIFT OUT THE BYTE, MSB FIRST
jnc OutByte0
setb P1.SDAbit
ajmp OutByte1
OutByte0:
clr P1.SDAbit
OutByte1:
acall ClockPulse ; CLOCK THE DATA INTO THE IIC Device
cjne A,#10000000b,OutByteNxt ; SKIP IF NOT DONE
jmp GetACK ; CHECK FOR AN ACK FROM THE DEVICE
OutByteNxt:
clr C ; LOOP IF ALL THE BITS HAVE
ajmp OutByteLoop ; NOT BEEN SHIFTED OUT
;******************************************************************************
;** Name: InByte
;** Description: Shifts in a byte from the IIC Device
mov A,DPL ; LOAD THE LOWER BYTE OF THE WORD ADDRESS
acall OutByte ; SEND OUT THE LOWER BYTE OF THE ADDRESS
xch A,B ; LOAD THE DATA TO BE SENT IN THE ACC
acall OutByte ; SEND OUT THE DATA TO THE SERIAL MEMORY
ajmp Stop ; END OF THE OPERATION
www.ic base.c om
相關(guān)PDF資料
PDF描述
X187 TEMPERATURSICHERUNG 187GRAD 5ST
X25 40V Single N-Channel HEXFET Power MOSFET in a D2-Pak package; A IRL1004S with Standard Packaging
X2001D-20 NVRAM (EEPROM Based)
X2001D-25 A 30V Single N-Channel HEXFET Power MOSFET in a DirectFET MX, 180 Amps
X2001DI 30V Single N-Channel HEXFET Power MOSFET in a TO-262 package; Similar to IRF3709ZCL with Lead Free Packaging
相關(guān)代理商/技術(shù)參數(shù)
參數(shù)描述
X12xx-EVM-08 制造商:P&S 功能描述:X1208IB8, ISL1208IB8 Evaluation Board Using PC to Display Clock, and An Instal Software CD-ROM
X12xx-EVM-26 制造商:P&S 功能描述:Xicor RTC X12xx-EVM User Guide
X12xx-EVM-27 制造商:P&S 功能描述:Xicor RTC X12xx-EVM User Guide
X12xx-EVM-28 制造商:P&S 功能描述:Xicor RTC X12xx-EVM User Guide
X13005 制造商:STMICROELECTRONICS 制造商全稱:STMicroelectronics 功能描述:HIGH VOLTAGE FAST-SWITCHING NPN POWER TRANSISTOR