At 17:45 31/03/97 +0200, you wrote: >I am making a gadget, and I would like my Pic 16C84 to play music. One >possibility would be to let the Pic do all the work and drive a loudspeaker >directly (I am satisfied with square waves). So my first question is > >*** Can I find the necessary programs somewhere? > >However while playing music the Pic will also be tied up, making some >lights flash. So my second question is. > >*** Is there a dedicated chip that drives a loudspeaker and that take >digitally coded notes (MIDI ??). I rather prefer this solution. > >Any help will be appreciated. > >Michel If there are going to be human beings watching the lights flash you should have plenty of time to spare. I would use the timer interrupt to toggle the music output. If you need a second timebase you could always use a little hardware to generate a suitable interrupt every mS or so. Keith. ========================================================== Keith Dowsett "Variables won't; constants aren't." E-mail: kdowsett@rpms.ac.uk WWW: http://kd.rpms.ac.uk/index.html