AN1241 Motorola Semiconductor Products, AN1241 Datasheet - Page 16

no-image

AN1241

Manufacturer Part Number
AN1241
Description
Interfacing the Mc68hc705j1a to 9356/9366 Eeproms
Manufacturer
Motorola Semiconductor Products
Datasheet
*****************************************************************************
*
*
*
* These subroutines support the functions called from the Command subs
*
*****************************************************************************
***
J9356_WR_OP
*
J9356_LOOP1
J9356_L1_2
*
J9356_L1_3
*** Subroutine to write 8 bit address ****************************************
J9356_WR_ADDR
*
J9356_LOOP2
J9356_L2_2
*
J9356_L2_3
16
Subroutine to write 3 bit opcode
Write to the serial output pin
Clock the serial clock pin
Write to the serial output pin
Clock the serial clock pin
ldx
brclr
bset
bra
bclr
bset
bclr
asl
decx
bne
clra
sta
rts
ldx
brclr
bset
bra
bclr
bset
bclr
asl
decx
bne
rts
EEPROM Supporting SubRoutines
Freescale Semiconductor, Inc.
For More Information On This Product,
#3T
7,OPCODE,J9356_L1_2
SER_OUT,PORTA
J9356_L1_3
SER_OUT,PORTA
SER_CLK,PORTA
SER_CLK,PORTA
OPCODE
J9356_LOOP1
COPR
#8T
7,ADDR,J9356_L2_2
SER_OUT,PORTA
J9356_L2_3
SER_OUT,PORTA
SER_CLK,PORTA
SER_CLK,PORTA
ADDR
J9356_LOOP2
Go to: www.freescale.com
;init counter for LOOP1
;ser_out = 1
;goto L1_3
;ser_out = 0
;ser_clk = 1
;ser_clk = 0
;rotate the opcode
;decrease counter loop
;is LOOP1 finished?
;kick the wdog
;return
;init counter for LOOP2
;ser_out = 1
;goto L2_3
;ser_out = 0
;ser_clk = 1
;ser_clk = 0
;rotate the addr
;decrease counter loop
;is LOOP2 finished?
;return
************************************
;if opcode bit7 = 0, goto L1_2
;if addr bit7 = 0, goto L2_2
AN1241/D
*
*
*
*
*

Related parts for AN1241