@hippy Thank you for the ideas and suggested code.
Slow to reply because I have been out playing guitar and Bass all day with a great bunch, it sort of keeps us alive a bit.
When I tested using the uart I originally set it up without the invert= directive and sent messages out using uart.write(string). I captured the output via a usb ttl level serial device on another usb port on the pc displaying what the Pico sent using Putty. Everything worked.
I didn’t notice any issues or unexpected chars to indicate that there was a need to flush the uart fifo buffers.
To make matters worse I went and dug out some Z80 assembler code I wrote in 1992 when I built a Z80 based Midi floor control board and sure enough the actual midi messages that I had setup back then concur with what I sent to similar kit back then including the Alesis quadraverb. I even wrote code to request the Alesis patch dump and unpacking it to do other far more complicated stuff…. I am guessing that the issue is something more to do with the interface config but I have tried many of the suggested Pi Project ideas including the lower value resistors for the 3.3v.
As stated in my first post I am not sure if simply setting baud rate to 31250 works without other things being done to the clock rate applied to the uart but I’ve not seen a clear set of code around that, it could be that I am reading relic info that litters the web as thing move on and depricated code gets left behind.
I will play with your suggested code and keep digging.
Thank you again.
Slow to reply because I have been out playing guitar and Bass all day with a great bunch, it sort of keeps us alive a bit.
When I tested using the uart I originally set it up without the invert= directive and sent messages out using uart.write(string). I captured the output via a usb ttl level serial device on another usb port on the pc displaying what the Pico sent using Putty. Everything worked.
I didn’t notice any issues or unexpected chars to indicate that there was a need to flush the uart fifo buffers.
To make matters worse I went and dug out some Z80 assembler code I wrote in 1992 when I built a Z80 based Midi floor control board and sure enough the actual midi messages that I had setup back then concur with what I sent to similar kit back then including the Alesis quadraverb. I even wrote code to request the Alesis patch dump and unpacking it to do other far more complicated stuff…. I am guessing that the issue is something more to do with the interface config but I have tried many of the suggested Pi Project ideas including the lower value resistors for the 3.3v.
As stated in my first post I am not sure if simply setting baud rate to 31250 works without other things being done to the clock rate applied to the uart but I’ve not seen a clear set of code around that, it could be that I am reading relic info that litters the web as thing move on and depricated code gets left behind.
I will play with your suggested code and keep digging.
Thank you again.
Statistics: Posted by Stratcat — Mon Sep 15, 2025 6:59 pm