- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I am trying to put 16bits output from the filter to the UART but keep getting corrupted results.
CY_ISR(filterVDAC)
{
char transmission[16];
uint16 c = Filter_Read16(Filter_CHANNEL_A);
sprintf(transmission,"%d",c);
UART_1_PutString(transmission);
}
Solved! Go to Solution.
- Labels:
-
PSoC 5LP
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
> If you get the wrong result, there are two possibilities,
> one: the UART transmit the wrong data, the second maybe the filter gives wrong.
Some more things, I just remembered is,
(1) if I connect rx and tx swapped the data seems to be corrupted.
(2) if the baud rate is wrong between UART and the receiver (serial terminal),
the data also seems to be corrupted.
(3) if the UART's tx is not connected to the receiver's rx, floating,
also gives us seems to be corrupted data.
I'm surprised we have so many ways to get "seems to be" corrupted data.
moto