- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Good morning everybody,
I need to find out if it is possible to independantly switch the transmitter or receiver on / off. The reason for this is that I have the TX and RX lines connected through a transistor to be able to chat to a smart card. It can obviously now be seen that if the receiver is on while trying to transmit, things don't work so well as the UART then transmits to itself. Any ideas? Regards, TyroneLink Copied
3 Replies
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I don't think there is a way to separately control Tx/Rx enables, but you can separately turn the interrupt enables on/off. If you disable Rx interrupts while you are transmitting then you won't see your own reflection. At the end of Tx you can read the Rx register (twice) to empty it then enable the interrupt. Don't forget, when you load the last character of your Tx into the UART it hasn't yet been sent. I hope this might be of some help.
Banx.- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi Tyrone,
> if the receiver is on while trying to transmit, things don't work so well You can just gate the rxd line while transmitting -- use a PIO to control the gate. Regards, --Scott- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi Scott,
Thanx! I've already done that and it seems to work fine. I use a PIO line along with an OR gate thus just making the RX line follow whenever I need it to. I have additional hardware to do this that I am sure I'll be able to do inside the FPGA, but I'll try that at a later stage. For now I just need to get this thing going. Thanx again! Regards, Tyrone http://forum.niosforum.com/work2/style_emoticons/<#EMO_DIR#>/biggrin.gif
Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page