??? 10/28/10 08:53 Read: times |
#179379 - Read internal EEPROM routine Responding to: ???'s previous message |
Hi J,
Here is the read routine. ; ;***************************************************************************** ; ; ; Read Internal P89LPC938 EEPROM byte ; Address bit 8 in r6, address bits 0-7 in r7 ; r6,r7 incremented by routine ; ; ReadIntEEPROM: mov DEECON,r6 ;eeprom address (xxxxxxx8) mov DEEADR,r7 ;eeprom address (7:0) RMc: mov a,DEECON jnb acc.7,RMc ;poll for "EE read done" inc r7 mov a,r7 jnz RIMx mov r6,#1 RIMx: mov a,DEEDAT ;Put EEPROM data byte into Acc ret ; ; ; ;***************************************************************************** Cheers, Bert |
Topic | Author | Date |
lpc900 eeprom external access | 01/01/70 00:00 | |
the only way is ... | 01/01/70 00:00 | |
Darn! | 01/01/70 00:00 | |
Any Takers? | 01/01/70 00:00 | |
C or ASM? | 01/01/70 00:00 | |
Nice! | 01/01/70 00:00 | |
Read internal EEPROM routine | 01/01/70 00:00 |