jayanthyk192
Full Member level 3
Hi,
i'm trying build a (keyboard)piano using a P89V51RD2,right now i'm using only 2 buttons to produce varying frequency clock pulse.output is a quartz crystal.i have made a c program which stores the keys i press and the delay between each.the problem is i'm storing it in the ram => when i switch off the supply all the data is lost.the program size around 3KB,(which i saw by clicking properties of the hex file) and the MC's rom is 64KB.so i wanted to transfer the data to the rom during the time when the program is running.i would appreciate if anyone could give me a c code or the algorithm that can do the job when i press a button.please don't give assembly codes as i'm still in the process of learning it.
thank you.
i'm trying build a (keyboard)piano using a P89V51RD2,right now i'm using only 2 buttons to produce varying frequency clock pulse.output is a quartz crystal.i have made a c program which stores the keys i press and the delay between each.the problem is i'm storing it in the ram => when i switch off the supply all the data is lost.the program size around 3KB,(which i saw by clicking properties of the hex file) and the MC's rom is 64KB.so i wanted to transfer the data to the rom during the time when the program is running.i would appreciate if anyone could give me a c code or the algorithm that can do the job when i press a button.please don't give assembly codes as i'm still in the process of learning it.
thank you.