Alternative to EEPROM command?

Andrew Cowan

Senior Member
I am using a parallel LCD display in a project.

I am using the standard routines, where you store data in EEPROM, then use a subroutine to send it out.

I am using an 18X, and have run out of EEPROM locations.

Is there any way to send data out without using EEPROM? I still have 500 bytes left on the chip.

Would something like this work?
Code:
w3="h"
gosub outputtoLCD
w3="e"
gosub outputtoLCD
w3="l"
gosub outputtoLCD
w3="l"
gosub outputtoLCD
w3="o"
gosub outputtoLCD
I still have about 200 gosubs left to use.

Thanks!

A
 

hippy

Ex-Staff (retired)
Yes, that would work, plus you can use LOOKUP ...

For indexVar = 0 To 4
Lookup indexVar, ( "hello" ), w3
Gosub outputtoLCD
Next

Which also has the advantage of not using up GOSUB statements.
 

westaust55

Moderator
which PICAXE are you using? :confused:

28X1/2 and 40X1/2 also have table memory. :)
Defined at download and stored in program space, then read only.
 

lanternfish

Senior Member
why not use an i2c eeprom. Mind you, I had used up all the space available using EEPROM TABLE and LOOKUP commands. Cheers
 
Top