Other Parts Discussed in Thread: MSP430G2553
I am using IAR to download the debug version of my code to a 430g2553. I use the debug version because the eventual application will involve students writing their own code and learning to use debugging tools as it runs. However, this code also requires them to make a software serial interface. We use simple bit banging running on the DCO, something like this:
send_bit(value);
delay_cycles(104); //104 cycles at approx 1MHz gives us 9600 baud
repeat
I understand that, when using an uncalibrated DCO the timing might be off so badly that our serial will be flaky at best, and we definitely are seeing some flaky behaviour (it will work sometimes flawlessly, but sometimes the timing will be off and the receiver will get garbage).
I was wondering: is it possible that the debug mode is causing things to be worse? Will the debug mode still try to send data even if the serial/USB interface is not plugged in? Would that cause some interrupts to happen while the hardware serial sets up its buffers to send whatever data it sends?
It's sort of hard to replicate the timing issues, so turning off debug output in the assembler won't necessarily tell me if it worked - just because it worked 5 times in a row doesn't mean it won't fail again, hence why I ask.
Mike
ps: out of curiosity, what output is sent over the hardware serial interface when debug output is selected?