參數(shù)資料
型號: AN1241D
廠商: 飛思卡爾半導(dǎo)體(中國)有限公司
英文描述: Interfacing the MC68HC705J1A to 9356/9366 EEPROMs
中文描述: 接口的MC68HC705J1A的九千三百六十六分之九千三百五十六的EEPROM
文件頁數(shù): 16/21頁
文件大?。?/td> 253K
代理商: AN1241D
AN1241/D
16
*****************************************************************************
* *
* EEPROM Supporting SubRoutines *
* *
* These subroutines support the functions called from the Command subs *
* *
*****************************************************************************
*** Subroutine to write 3 bit opcode ************************************
J9356_WR_OP ldx #3T ;init counter for LOOP1
* Write to the serial output pin
J9356_LOOP1 brclr 7,OPCODE,J9356_L1_2 ;if opcode bit7 = 0, goto L1_2
bset SER_OUT,PORTA ;ser_out = 1
bra J9356_L1_3 ;goto L1_3
J9356_L1_2 bclr SER_OUT,PORTA ;ser_out = 0
* Clock the serial clock pin
J9356_L1_3 bset SER_CLK,PORTA ;ser_clk = 1
bclr SER_CLK,PORTA ;ser_clk = 0
asl OPCODE ;rotate the opcode
decx ;decrease counter loop
bne J9356_LOOP1 ;is LOOP1 finished
clra
sta COPR ;kick the wdog
rts ;return
*** Subroutine to write 8 bit address ****************************************
J9356_WR_ADDR ldx #8T ;init counter for LOOP2
* Write to the serial output pin
J9356_LOOP2 brclr 7,ADDR,J9356_L2_2 ;if addr bit7 = 0, goto L2_2
bset SER_OUT,PORTA ;ser_out = 1
bra J9356_L2_3 ;goto L2_3
J9356_L2_2 bclr SER_OUT,PORTA ;ser_out = 0
* Clock the serial clock pin
J9356_L2_3 bset SER_CLK,PORTA ;ser_clk = 1
bclr SER_CLK,PORTA ;ser_clk = 0
asl ADDR ;rotate the addr
decx ;decrease counter loop
bne J9356_LOOP2 ;is LOOP2 finished
rts ;return
F
Freescale Semiconductor, Inc.
For More Information On This Product,
Go to: www.freescale.com
n
.
相關(guān)PDF資料
PDF描述
AN1432NT AN1432NT - Variable output. low voltage operation shunt regulator
AN1434M Analog IC
AN1434T Analog IC
AN1458 Voltage-Feedback Operational Amplifier
AN1458S Voltage-Feedback Operational Amplifier
相關(guān)代理商/技術(shù)參數(shù)
參數(shù)描述
AN-1244 制造商:NSC 制造商全稱:National Semiconductor 功能描述:Photo-Diode Current-to-Voltage Converters
AN124952 制造商:AN# - MILITARY 功能描述:
AN124970 制造商: 功能描述: 制造商:undefined 功能描述:
AN124971 制造商:AN# - MILITARY 功能描述:
AN124972 制造商:AN# - MILITARY 功能描述: