EmbeddedRelated.com
Forums
The 2024 Embedded Online Conference

Problem in using SCI...send a string

Started by folg...@yahoo.com January 22, 2009
I havent read all the threads but i do have working string tx/rx code for both sci1 and sci0 for the dragon12+ board if you need? its written in c for codewarrior

--- In 6..., folgli@... wrote:
>
> Hello,
>
> >Have you enabled the TE and RE bits in SCI0CR2?
> Yes by using this function:
>
> #define TX 0x08
> #define RX 0x04
>
> SetSCI0(RX|TX);
>
> void SetSCI0(char OnOff)
> {
> SCI0CR2= OnOff; // SCI Control Register 2 (SCICR2)
> }
> I am able to send one character. I thing setting TE and RE is not the problem. I thing something is destroying the status flags but what and why...
>


The 2024 Embedded Online Conference