Hi,
I want to build nursery rhyme play back from a PIC .
Single voice should be ok...kinda like the musical birthday cards etc.
Can anyone suggest an approach?
I was thinking of a frequency and duration pair of bytes for each tone so that a 256 byte eprom can 'store' up to 128 tones to make up clips of rhymes. Perhaps 10 seconds each?
Hi,
I want to build nursery rhyme play back from a PIC .
Single voice should be ok...kinda like the musical birthday cards etc.
Can anyone suggest an approach?
I was thinking of a frequency and duration pair of bytes for each tone so that a 256 byte eprom can 'store' up to 128 tones to make up clips of rhymes. Perhaps 10 seconds each?
I've started playing with XC8 recently, so took the opportunity to see if I could get this to work with XC8 (C never seems as portable as people like to suggest).
I already happened to have a 16F876 connected to my PICKit3, and the only change I had to make to the code was line 230, replacing OPTION with OPTION_REG (which I believe Ian mentions in the C versions of my tutorials?).
Worked straight away after that - biggest problem was finding a speaker to try on it
When I played with the ringtone circuit before, I converted the C to asm to run on a 12F675 - it's a long time back though, no idea where the code might be?.
However, having recently downloaded and installed the free version of XC8 it was EXTREMELY easy to get the C code from the site above to work - I've also changed it to work with the 12F1840 (because I have some ) - and while I haven't finished altering the setup details for that chip it does still build OK (but I can't seem to find my 8 pin tutorial board?, so my enthusiasm has waned). But a small 8 pin chip that plays ringtones is pretty cool.