[sdiy] midi clock to GATE (or trigger) converter with Arduino???

Tom Wiltshire tom at electricdruid.net
Thu Mar 1 10:43:50 CET 2012


On 1 Mar 2012, at 04:24, dan snazelle wrote:

>> 
>> The serial speed for MIDI is 31250 baud, which kind of sucks because it's not a standard terminal speed.
>> 
>> 
> 
> 
> if its not a standard terminal speed then how do i get the terminal to lock to it?
> 
> thanks!


I don't think 31250 baud is such a pain - it's 1MHz divided by 32, which is a convenient number. Just use a crystal which is a whole number of MHz for your system clock.

On many chips you have to set up the baud rate by setting some register to count uP clock pulses. On the PICs I use, if I've got a 8MHz clock, I'd need to count 256 clocks to get 31250 (8MHz/256=31250). On Arduino they probably make it easier than that.

HTH,
Tom




More information about the Synth-diy mailing list