by xyz123456 » Thu Jul 17, 2008 8:24 am
by xyz123456
Thu Jul 17, 2008 8:24 am
Hi all,
I tried to send the ascii value of carriage return from the CM2 controller. But i am getting a NCK from the CMUCAM2 . Can anyone help me with this. The piece of code i had written is given below:
typedef unsigned char byte
int main()
{
.......
TxD80(13); //Transmit via serial port
.......
}
void TxD80(byte c)
{
while(!TXD0_READY); // Wait till transmit buffer is empty
TXD0_DATA = c; // put data into transmit buffer
}
Do let me know if there is any error in the implementation.
Thanks in advance.
Hi all,
I tried to send the ascii value of carriage return from the CM2 controller. But i am getting a NCK from the CMUCAM2 . Can anyone help me with this. The piece of code i had written is given below:
typedef unsigned char byte
int main()
{
.......
TxD80(13); //Transmit via serial port
.......
}
void TxD80(byte c)
{
while(!TXD0_READY); // Wait till transmit buffer is empty
TXD0_DATA = c; // put data into transmit buffer
}
Do let me know if there is any error in the implementation.
Thanks in advance.