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.
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.
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now