cancel
Showing results for 
Search instead for 
Did you mean: 

PSoC 5, 3 & 1

NeAl_2298636
New Contributor II

Hi,

I tried the connections as below, but it gives a ton of errors. Is it not possible to use the gates with other components?

pastedImage_0.png

0 Likes
1 Solution
odissey1
Honored Contributor II

necdet,

The single-wire UART communication can be accomplished in Master-Slave configuration. Both UARTs are idling in Rx state. To send message the Master switches to Tx mode, sends message and goes into idle Rx state. The slave receives message, goes into Tx mode, responds, and returns back into idle Rx state. Only Master can initiate communication to avoid collision. This way you can communicate PSoC to PSoC only. Each UART should be connected to in-out pin through bufoe, which direction is controlled by ControlReg.

odissey1

UART_1-wire_01.png

View solution in original post

0 Likes
7 Replies
Bob_Marlowe
Expert II

What errors? Easiest to check is always when you provide us with a workspace bundle.

Bob

0 Likes
NeAl_2298636
New Contributor II

Thanks Bob,

Attaching the workspace bundle. Problem is between UART Rx and buffer output connection.

0 Likes
Bob_Marlowe
Expert II

Of course you may connect Rx to logic gates. But the error message tells that you need an in-out terminal to connect to the buffer. There are times when the input to Rx is undefined. Use a different gate for your Rx.

And: The AND gate will get optimized out. You cannot use this as a delay, will not work.

Bob

0 Likes
NeAl_2298636
New Contributor II

Thanks for the help Bob!

What other gates can I use? I am simply trying to make a single wire communication line. Instead of separate RX and TX lines. I thought PSoC gates can be used to save some board space instead of using external 74HC126 etc.

0 Likes
Bob_Marlowe
Expert II

You will need something like a mux to select the signal coming in or going out. Will be difficult to sync the other communication side. There is a one-wire interface, but it is slow and not easy to handle.

I would suggest to let the two-wire UART interface as it is, it will be difficult enough to write a protocol having two devices talk to each other.

What do you need the 74HC126 for? RS232 levels are +-12V and up to 5V can be driven by the PSoC.

Bob

0 Likes
RaAl_264636
Contributor II

What other gates can I use? I am simply trying to make a single wire communication line. Instead of separate RX and TX lines. I thought PSoC gates can be used to save some board space instead of using external 74HC126 etc.

Would there be any problem if you use the UART in RS485 mode? Use the transmit direction signal to decouple the internal Tx pin from the external signal (otherwise the two outputs would get shorted). Maybe there's also another solution possible, show your circuit or describe what's acceptable (e.g. a resistor between PSoC Rx and Tx pin to decouple, etc.).

Regards

0 Likes
odissey1
Honored Contributor II

necdet,

The single-wire UART communication can be accomplished in Master-Slave configuration. Both UARTs are idling in Rx state. To send message the Master switches to Tx mode, sends message and goes into idle Rx state. The slave receives message, goes into Tx mode, responds, and returns back into idle Rx state. Only Master can initiate communication to avoid collision. This way you can communicate PSoC to PSoC only. Each UART should be connected to in-out pin through bufoe, which direction is controlled by ControlReg.

odissey1

UART_1-wire_01.png

View solution in original post

0 Likes