- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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?
Solved! Go to Solution.
- Labels:
-
PSoC 5LP
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
What errors? Easiest to check is always when you provide us with a workspace bundle.
Bob
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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