View topic - Create Serial Communication between 2 devices using UART

Create Serial Communication between 2 devices using UART

For discussion of realtime and/or embedded programming.

Re: Create Serial Communication between 2 devices using UART

Postby maschoen » Fri Sep 27, 2019 6:45 pm

nico04 wrote:My understanding is different.

My board has two gpio pins configured as UART2

GPIO_PX_0 UART TX Address : 0xe500
GPIO_PX_0 UART RX Address : 0xe508

What I understand :
- The chip has UART2
- Pin mux registers for GPIO/UART are at addresses 0xe500 and 0xe508
- bosssaurav wants to use UART2 with QNX


Well that is quite different. If that is correct, either find an existing QNX driver or write one.
maschoen
QNX Master
 
Posts: 2715
Joined: Wed Jun 25, 2003 5:18 pm

Re: Create Serial Communication between 2 devices using UART

Postby nico04 » Tue Oct 01, 2019 9:07 am

maschoen wrote:
nico04 wrote:My understanding is different.

My board has two gpio pins configured as UART2

GPIO_PX_0 UART TX Address : 0xe500
GPIO_PX_0 UART RX Address : 0xe508

What I understand :
- The chip has UART2
- Pin mux registers for GPIO/UART are at addresses 0xe500 and 0xe508
- bosssaurav wants to use UART2 with QNX


Well that is quite different. If that is correct, either find an existing QNX driver or write one.

Sure.
nico04
Senior Member
 
Posts: 159
Joined: Wed Sep 29, 2010 9:59 am
Location: France

Re: Create Serial Communication between 2 devices using UART

Postby ger » Thu Oct 03, 2019 8:56 am

nico04 wrote:
maschoen wrote:
nico04 wrote:My understanding is different.

What I understand :
- The chip has UART2
- Pin mux registers for GPIO/UART are at addresses 0xe500 and 0xe508
- bosssaurav wants to use UART2 with QNX


Well that is quite different. If that is correct, either find an existing QNX driver or write one.

Sure.


I have written the odd QNX6 and QNX4 serial driver. In fact am putting the finishing touches on to a QNX7 driver (for x86_32 and x86_64).

I have had the luxury however of dealing with hardware UART's that furthermore had the appropriate driver and receiver hardware required to get RS232, RS422, and RS485 signal levels.

This talk of using two GPIO pins that are presumably TTL (3.3V or 5V?) and to be used as TxD and RxD got me thinking about what I suppose could be referred to as a virtual UART. I know nothing about the hardware named above but if a suitable timing source (clock) was available, my initial thoughts are that it might be possible. A UART is essentially a glorified parallel -> serial shift register.

For serial I/O (even asynchronous) the timing requirements are pretty tight so it might not be possible in a traditional computing environment. But I think I might give this idea some further thought - for want of something different to do.

In a decent FPGA environment it would be relatively simpleto implement a "virtual" UART but am I correct in assuming that there is no FPGA in the system detailed earlier on in this thread?

Geoff.
ger
Active Member
 
Posts: 29
Joined: Tue Jul 15, 2014 9:24 am

Re: Create Serial Communication between 2 devices using UART

Postby bosssaurav » Mon Oct 07, 2019 6:43 am

Yes you got me right.. :)
bosssaurav
New Member
 
Posts: 7
Joined: Tue Sep 10, 2019 6:34 pm

Previous

Return to Realtime and Embedded

Who is online

Users browsing this forum: No registered users and 1 guest

cron