Jump to content

Bitbanging a serial out on J5?


Recommended Posts

Posted

Hello,

I need a additional serial (rs232) out for my midibox project

would it be possible to use a J5 pin for this like the midi outs of clockbox v1.1?

specifications:

4800baud

start and stop bit, no parity

Michaël

Posted

Hi,

it depends on your application - bitbanging requires to disable interrupts. The baudrate is very slow, much slower than MIDI. If something is received via MIDI while your function sends out a 4800 baud stream, data loss can happen at the receiver side - if you are sure, that nothing will be received, than I don't see problems here...

Best Regards, Thorsten.

Posted

Ok great news :-)

could you tell me how you simulated your bitbanging routine to determinate the required delay cycles?

is it possible to simulate mixed C/ASM in MLAB?

Posted

It could be somehow possible to realize a mixed C/ASM simulation, but why do you want to simulate the 2 second startup of bootloader/MIOS (which takes some minutes), just to execute this tiny routine?

So far I remember, I copy&pasted the assembly routine into a dummy .asm file, and simulated it directly

Best Regards, Thorsten.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...