SCB UART

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
Anonymous
Not applicable

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

0 Likes
1 Solution
Bob_Marlowe
Level 10
Level 10
First like given 50 questions asked 10 questions asked

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

View solution in original post

0 Likes
1 Reply
Bob_Marlowe
Level 10
Level 10
First like given 50 questions asked 10 questions asked

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

0 Likes