I have a problem with the SCI comunication with two MC9S08GT32, my code for 9600 baud N 8 1. is:
I work with an internal oscillator and the internal bus clock is 19.995429MHz, the CPU clk is 39.99MHz for the two micro.
I look with the scope the output signal and apparently are correct,the micro recive read the data but some times are correct, other times are wrong.I think that my problem is the work frequency, I generate a signal with a nop instruction, in one micro ton=340ns toff=230ns, in the other ton=450ns and toff=300ns, the time are identical with/without the
For this test the pin of two micro are connected with an 100R resistor and the signal are very good.
Can you help me?