possan Posted May 3, 2005 Report Posted May 3, 2005 Hi this must be considered quite off-topic but this seems to be the most active midi and pic forum...The problem: I'm using a 16f84 @ 4mhz and i am trying to do some midi message transfer by bitbanging, but i cant seem to get it to work, my midimonitor keeps displaying multiple messages instead of one single message, ie. timing must be wrong, and according to the pages i found you're supposed to have 32uS delay between bits transferred, one start and one stopbit, levels inverted, 1=idle, 0=bit on etc..So, anyone out there with some working really simple code in asm, jal or c that sends some midi messages using a 16f84?The closest source i managed to find was in mplab asm and for 10mhz.. i'd really like a 4mhz one for reference. Quote
TK. Posted May 6, 2005 Report Posted May 6, 2005 Hi,you could use the inbuild simulator of MPLAB in order to determine the delay (or number of cycles) between each sent bit. At 4 MHz it must be exactly 32 cycles, not more, not less...Best Regards, Thorsten. Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.