Shop OBEX P1 Docs P2 Docs Learn Events
real time eeprom read to debug. — Parallax Forums

real time eeprom read to debug.

jonduncanjonduncan Posts: 40
edited 2007-03-09 21:45 in BASIC Stamp
Is there anyway to send EEPROM to debug without using a register or memory location, I want to be able to read chunks of the EEPROM and send it to debug terminal, is the only way to do that a for loop and writing to a register?

Comments

  • Mike GreenMike Green Posts: 23,101
    edited 2007-03-09 21:45
    You need at least 2 memory locations, a word that is used to hold the address to be read and a byte to hold the contents of that address. You need a FOR loop, a READ statement, and a DEBUG statement (or other output statement) like:
    lastAddr CON $xxxx  ' last address to be displayed
    i          VAR  word
    datum VAR  byte
    
    for i = 0 to lastAddr-1
      read i,datum
      debug datum
    next
    
Sign In or Register to comment.