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.

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...