13.07.2015 Views

X25640_8Kb_Serial_EE.. - ISL

X25640_8Kb_Serial_EE.. - ISL

X25640_8Kb_Serial_EE.. - ISL

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Using the Xicor <strong>X25640</strong> 8kB <strong>EE</strong>PROMPIC Program Listing (cont)Shinmov !ra,#DataInmov shifts,#8:loop clrb SCKnopmovb c,DATArlindirectsetb SCKdjnz shifts,:loopmov !ra,#DataOutret; Nop may be required at high speeds.; Returns the contents of the <strong>EE</strong>PROM's status register in; <strong>EE</strong>data. Uses <strong>EE</strong>data to shift out the op code.Read_statusmovmovclrbcallcallsetbretfsr,#<strong>EE</strong>dataindirect,#RDSRCSShoutShinCS; Reads the <strong>EE</strong>PROM data at the address specified by addrH and addrL; and writes it to the location <strong>EE</strong>data.Read_bytemovmovclrbcallmovcallmovcallmovcallsetbretfsr,#tempindirect,#READCSShoutfsr,#addrHShoutfsr,#addrLShoutfsr,#<strong>EE</strong>dataShinCS; Turns off the <strong>EE</strong>PROM's write protection. Must be called; after power up in order to write to the <strong>EE</strong>PROM.sales / technical support (916) 624-8333 • fax (916) 624-8003pictech@parallainc.com • stamptech@parallaxinc.com Page 5

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!