Hello All,
What I would basically like to do (i think) is preload all PICAXE 28X2 scratchpad (1024) memory byte locations with numbers between 2 - 30. (skips a couple numbers) I'm trying to preload the 100 most commonly used words in the English language. I think I need to write (PUT? PEEK?) them consecutively into the scratchpad all at once, but read (GET? PEEK?) them consecutively out only a few at a time. The word THE obviously would be three addresses. And the word THERE would be 5.
And example of the numbers that represent words are, 3,12,2 = THE, 3,16,2,10,2 = THERE, 6,5,9 = AND, 14,16,2,10,2 = WHERE. Obviously they are not ASCII numbers.
I think the question is....... how do I write to 1024 consecutive addresses with 1024 non consecutive numbers into the scratchpad?
I'm sure I can read them out and get them through my Morse routine as spoken words in MORSE, but can't figure how to get them into the scratchpad. :-( (it's probably very simple)
After reading the manual for a while and searching the forums, I can't seem to find anything as simple as EEPROM 0, (3,12,2,3,16,2,10,2 ........) but for the scratchpad. I've use the EEPROM for other stuff so there isn't not much left there to use.
Comments appreciated.
"TheAddict"
What I would basically like to do (i think) is preload all PICAXE 28X2 scratchpad (1024) memory byte locations with numbers between 2 - 30. (skips a couple numbers) I'm trying to preload the 100 most commonly used words in the English language. I think I need to write (PUT? PEEK?) them consecutively into the scratchpad all at once, but read (GET? PEEK?) them consecutively out only a few at a time. The word THE obviously would be three addresses. And the word THERE would be 5.
And example of the numbers that represent words are, 3,12,2 = THE, 3,16,2,10,2 = THERE, 6,5,9 = AND, 14,16,2,10,2 = WHERE. Obviously they are not ASCII numbers.
I think the question is....... how do I write to 1024 consecutive addresses with 1024 non consecutive numbers into the scratchpad?
I'm sure I can read them out and get them through my Morse routine as spoken words in MORSE, but can't figure how to get them into the scratchpad. :-( (it's probably very simple)
After reading the manual for a while and searching the forums, I can't seem to find anything as simple as EEPROM 0, (3,12,2,3,16,2,10,2 ........) but for the scratchpad. I've use the EEPROM for other stuff so there isn't not much left there to use.
Comments appreciated.
"TheAddict"