- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi Everybody,
for a project i have to send a data request string via the SCB (in UART mode) to a serial device.
My problem is, that this request string has a 0x00 Char in it. Example: char rp[] = {0x64, 0x65, 0x00, 0x64, 0x65 };
If I monitor the output with a terminal program, the transmission via UartPutString stops before 0x00 because of the string termination.
The receiver only accepts/understands the request paket, when he receives it as a string at once.
( I tried UartPutChar and transmit every single char, but it fails...)
Any idea how I can fix that problem?
Device: CY8C4125AXI-483, PSocCreator 3.3
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Use SCB_UartPutChar().
I tried UartPutChar and transmit every single char, but it fails... It will not fail. Increase the Tx buffer to ~80 which will use the internal interrupt for transmission.
Bob
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Use SCB_UartPutChar().
I tried UartPutChar and transmit every single char, but it fails... It will not fail. Increase the Tx buffer to ~80 which will use the internal interrupt for transmission.
Bob