cancel
Showing results for 
Search instead for 
Did you mean: 

PSoC 4 MCU

vigic_2309616
New Contributor

Hello to all.

I have to implement a single wire bidirectional UART communication with PsSocCreator 4.1 for the PSoc4 Analog coprocessor.

Do you have any tips / examples to give me?

Thank you

0 Likes
Reply
1 Solution
Anonymous
Not applicable

Unless you use a handshake approach, you will not be able to know when data is going one direction versus the other, and would have collisions.

Single-wire implementations of UART tend to need to rigidly define a query-to-response format for sending/receiving data in order to prevent both devices trying to drive the wire at the same time.

Useful information similar to what you want to achieve: Using a UART to Implement a 1-Wire Bus Master - Tutorial - Maxim

Depending on your design requirements, you merely setup the device to be in Master, send the data, switch to slave, read for a period, and then switch back to master upon a receive or timeout.

The pin drive modes are very important for the signaling to work and should be chosen for carefully considering both devices connected together through the wire.

View solution in original post

0 Likes
Reply
1 Reply
Anonymous
Not applicable

Unless you use a handshake approach, you will not be able to know when data is going one direction versus the other, and would have collisions.

Single-wire implementations of UART tend to need to rigidly define a query-to-response format for sending/receiving data in order to prevent both devices trying to drive the wire at the same time.

Useful information similar to what you want to achieve: Using a UART to Implement a 1-Wire Bus Master - Tutorial - Maxim

Depending on your design requirements, you merely setup the device to be in Master, send the data, switch to slave, read for a period, and then switch back to master upon a receive or timeout.

The pin drive modes are very important for the signaling to work and should be chosen for carefully considering both devices connected together through the wire.

View solution in original post

0 Likes
Reply