欢迎访问ic37.com |
会员登录 免费注册
发布采购

AN1241D 参数 Datasheet PDF下载

AN1241D图片预览
型号: AN1241D
PDF下载: 下载PDF文件 查看货源
内容描述: 接口的MC68HC705J1A到九千三百六十六分之九千三百五十六的EEPROM [Interfacing the MC68HC705J1A to 9356/9366 EEPROMs]
分类和应用: 可编程只读存储器电动程控只读存储器电可擦编程只读存储器
文件页数/大小: 21 页 / 932 K
品牌: FREESCALE [ Freescale ]
 浏览型号AN1241D的Datasheet PDF文件第12页浏览型号AN1241D的Datasheet PDF文件第13页浏览型号AN1241D的Datasheet PDF文件第14页浏览型号AN1241D的Datasheet PDF文件第15页浏览型号AN1241D的Datasheet PDF文件第17页浏览型号AN1241D的Datasheet PDF文件第18页浏览型号AN1241D的Datasheet PDF文件第19页浏览型号AN1241D的Datasheet PDF文件第20页  
Freescale Semiconductor, Inc.  
*****************************************************************************  
*
*
*
*
*
*
*
*
EEPROM Supporting SubRoutines  
* These subroutines support the functions called from the Command subs  
*
*****************************************************************************  
***  
J9356_WR_OP  
Subroutine to write 3 bit opcode ************************************  
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  
bra  
bclr  
SER_OUT,PORTA ;ser_out = 1  
J9356_L1_3 ;goto L1_3  
SER_OUT,PORTA ;ser_out = 0  
J9356_L1_2  
*
Clock the serial clock pin  
J9356_L1_3  
bset  
bclr  
asl  
SER_CLK,PORTA ;ser_clk = 1  
SER_CLK,PORTA ;ser_clk = 0  
OPCODE  
;rotate the opcode  
decx  
bne  
clra  
sta  
;decrease counter loop  
;is LOOP1 finished?  
J9356_LOOP1  
COPR  
;kick the wdog  
;return  
rts  
*** 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  
bset  
bra  
;if addr bit7 = 0, goto L2_2  
SER_OUT,PORTA ;ser_out = 1  
J9356_L2_3 ;goto L2_3  
SER_OUT,PORTA ;ser_out = 0  
J9356_L2_2  
bclr  
*
Clock the serial clock pin  
J9356_L2_3  
bset  
bclr  
asl  
decx  
bne  
SER_CLK,PORTA ;ser_clk = 1  
SER_CLK,PORTA ;ser_clk = 0  
ADDR  
;rotate the addr  
;decrease counter loop  
;is LOOP2 finished?  
;return  
J9356_LOOP2  
rts  
AN1241/D  
For More Information On This Product,  
Go to: www.freescale.com  
16  
 复制成功!