back to uC, PIC16F87X

Stewart Pye stew at uq.net.au
Sat Oct 16 04:52:36 CEST 1999


Hi Roel,

The F87x will be fine for this, though personally I'd use an AVR
microcontroller. However if you already know pic assembly language that
would be the best way to go. If not I think the STK200
programmer/development board for the AVR is about 35 pounds(including a 40
pin 8515 micro with UART, 3 timers and 8k flash ROM).And the silicon is
cheaper than PICs if you know where to get them. 

A good use for the A/D would be for a menu system:

Have an LCD or 7seg LED display for readout.
Say for example you want to edit the midi channel....
1. Read the pot value (potval). 
2. swap potval so the upper 4 bits are now the lower 4 bits.
3. And potval with 00001111 to mask out the top nibble.
4. You now have midi channel 0-15. You can store this as the midi channel.
If you want to display the midi channel just copy and increment this
channel so that channel zero displays channel one.

You can do this for all kind of parameters, changing it depending on how
many values you need. eg. if you wanted 255 values you can use the direct
value that you read from the A/D.  

Hope this Helps (and not confuses!)
stewart pye


At 11:22 AM 15/10/99 -0700, Roel Das wrote:
>Just a little more on the microcontrollers...
>I'm designing a midi-cv as part of my endworkproject. 
>Any recommandations on the processor? It should be
>VERY complete, nice interface and things...
>I can get a programmer and emulator-board for the
>microchip PIC16F87X series (20MHz, up to 5 I/O's,
>USART,up to 8 10bits ADC's,... and more) at school for
>about 90 Euro. The chips themselve cost 10 to 25 euro,
>i believe. 
>Would this be an ok deal? 
>Is the usart usable for MIDI?
>Any way to make use of the ADC? Controlknobs maybe?
>Thank you very much.
>smile
>Roel
>__________________________________________________
>Do You Yahoo!?
>Bid and sell for free at http://auctions.yahoo.com
>
>




More information about the Synth-diy mailing list