S
Susanne Fischer
- Jan 1, 1970
- 0
Hi!
I have a MB90F347 microcontroller from Fujitsu and am trying to
communicate over UART. Everything works fine, if I transmit only
values from 1 to 255. But I'm not able to send a 0 (0x00).
I really don't understand why this doesn't work. Also in the hardware
manual and in the application notes I can't find any hint on that.
....
// initialize UART0
BGR0 = 1666; // 9600 Baud @ 16MHz
SCR0 = 0x17; // 8N1
SMR0 = 0x0d; // enable SOT3, Reset, normal mode
SSR0 = 0x00; // LSB first
....
while (SSR0_TDRE == 0); // wait for transmit buffer empty
TDR0 = 0x01; // this works fine
while (SSR0_TDRE == 0);
TDR0 = 0x00; // nothing happens here... WHY?
....
Thank you very much for your help in advance,
Susanne Fischer
I have a MB90F347 microcontroller from Fujitsu and am trying to
communicate over UART. Everything works fine, if I transmit only
values from 1 to 255. But I'm not able to send a 0 (0x00).
I really don't understand why this doesn't work. Also in the hardware
manual and in the application notes I can't find any hint on that.
....
// initialize UART0
BGR0 = 1666; // 9600 Baud @ 16MHz
SCR0 = 0x17; // 8N1
SMR0 = 0x0d; // enable SOT3, Reset, normal mode
SSR0 = 0x00; // LSB first
....
while (SSR0_TDRE == 0); // wait for transmit buffer empty
TDR0 = 0x01; // this works fine
while (SSR0_TDRE == 0);
TDR0 = 0x00; // nothing happens here... WHY?
....
Thank you very much for your help in advance,
Susanne Fischer