It would be nice to use the hser port on the X1 PICAXE for MIDI.
MIDI spec specifies a baud rate clock of 31.250+/-10% Kbaud, but 28.8 Kbaud is within +/-10%, so is 34Kbaud. Both the old PC and the Atari 800 spoke MIDI quite well and their UART could not do 31.250Kbaud?
An even bigger problem is the hser ports lack of a Start Bit, at least that is how it looks to me when I read Part 2 of the PICAXE User's Manual. There does not seem to be a way to set a Start Bit, nor set the number of Stop Bits, nor set any kind of Parity Bit, is something wrong with this UART?
Next, there needs to be a PICAXE Timer set up as a MIDI Clock, This has to be a programmable very low speed clock that can have its value changed in real time. The MIDI Clock has 24 pulses per Quarter Note, the number of Quarter notes per minute varies with Tempo. I have seen real music with Tempo as low as 30 and as high as 254, mostly Tempo stays around 74 to 96 and does not change for a whole song, but sometimes it does change. One of the reasons for MIDI Clock is when there are more than one instrument playing at a time, the "Note ON" command all need to come out during the same down beat.
Has anyone solved these problems?
I have found hippy's MIDI Music Box and it is a good starting point
"http://homepage.ntlworld.com/the.happy.hippy/picaxe/midiuart.txt"[!url] Can anyone provide me with URLs that are useful further reading? ********** UPDATE I just checked the ARATI 800. The Atari has been doing MIDI quite well since 1981 and the 800 is a 8-bit micro with a 4MHz system clock. The Midi doesn not go through the UART on the Atari, it goes in the high speed serial bus that connects to the Floppy Drives and the Printer, the circuit looks like a "bit-banger". UPDATE I have checked the studio PC and again the MIDI does not go through the serial port. The PC's MIDI goes through the joystick port. UPDATE, it looks like MIDI OUT is not a problem at 28.8Kbaud and it is possible from all these serial ports, it is the MIDI IN that is the problem! If the UART can not capture the incomming baud, then MIDI can not use the UART and one has to go to the "bit-banger" technique to do MIDI. oldjoe
MIDI spec specifies a baud rate clock of 31.250+/-10% Kbaud, but 28.8 Kbaud is within +/-10%, so is 34Kbaud. Both the old PC and the Atari 800 spoke MIDI quite well and their UART could not do 31.250Kbaud?
An even bigger problem is the hser ports lack of a Start Bit, at least that is how it looks to me when I read Part 2 of the PICAXE User's Manual. There does not seem to be a way to set a Start Bit, nor set the number of Stop Bits, nor set any kind of Parity Bit, is something wrong with this UART?
Next, there needs to be a PICAXE Timer set up as a MIDI Clock, This has to be a programmable very low speed clock that can have its value changed in real time. The MIDI Clock has 24 pulses per Quarter Note, the number of Quarter notes per minute varies with Tempo. I have seen real music with Tempo as low as 30 and as high as 254, mostly Tempo stays around 74 to 96 and does not change for a whole song, but sometimes it does change. One of the reasons for MIDI Clock is when there are more than one instrument playing at a time, the "Note ON" command all need to come out during the same down beat.
Has anyone solved these problems?
I have found hippy's MIDI Music Box and it is a good starting point
"http://homepage.ntlworld.com/the.happy.hippy/picaxe/midiuart.txt"[!url] Can anyone provide me with URLs that are useful further reading? ********** UPDATE I just checked the ARATI 800. The Atari has been doing MIDI quite well since 1981 and the 800 is a 8-bit micro with a 4MHz system clock. The Midi doesn not go through the UART on the Atari, it goes in the high speed serial bus that connects to the Floppy Drives and the Printer, the circuit looks like a "bit-banger". UPDATE I have checked the studio PC and again the MIDI does not go through the serial port. The PC's MIDI goes through the joystick port. UPDATE, it looks like MIDI OUT is not a problem at 28.8Kbaud and it is possible from all these serial ports, it is the MIDI IN that is the problem! If the UART can not capture the incomming baud, then MIDI can not use the UART and one has to go to the "bit-banger" technique to do MIDI. oldjoe
Last edited: