March 08, 2004

CREATING A TABLE ON THE PIC

Today I have created a TABLE similar to an array on my PIC.
But note that this is not just a list of bytes in RAM, but bytes in
the EEPROM DATA memory. Program memory is for 14 bit
instructions, but EEPROM data memory is in bytes.

I created a program in QBASIC that creates a table. It is called
MAKETABL.BAS. There is another program READTABL.BAS.
These programs use PIC programming commands the same
as those used to enter the main program onto the PIC.

Next I have created a program READPROM.ASM which reads the
table out of the EEPROM . The code for this is more complicated than you would imagine, but I have successfully done it. I am planning to use a table for setting the tones in a musical tone generator. I should eventually be able to send out to a small speaker via a transistor interface aome nusrsery rhyme songs or perhaps a rendition of Westminster chimes.

Posted by larrykeegan at March 8, 2004 11:01 PM