UART (scb) pin/drive type

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
DaEr_349131
Level 5
Level 5
25 likes received 50 sign-ins 5 comments on KBA

Hi,

When using UART (scb mode), the most use case is that one would use the built-in pull-up on the TX-line (not adding an external pull-resistor).

Questions:

- What is the pin/drive type for the UART TX pin?

- Can this be changed?

- Use case is to connect two UART's in parallel (software knows when it's ok to send).

  Would it be safe to just tie them together or should I wire the TX coming from "CPU 2" to an input of "CPU 1" to achieve a buffer, and also the option of adding a simple logic block that checks if uart_tx on "CPU 1" is driving, thus disabling incoming TX, not passing it through.

0 Likes
1 Solution
Bob_Marlowe
Level 10
Level 10
First like given 50 questions asked 10 questions asked

You may set the UART to show its terminals and connect IO pins to them. With Pin_SetDriveMode() you can set the pins to digital High-Z when needed and back to strong mode to transmit data.

Happy coding

Bob

View solution in original post

0 Likes
4 Replies
Bob_Marlowe
Level 10
Level 10
First like given 50 questions asked 10 questions asked

You may set the UART to show its terminals and connect IO pins to them. With Pin_SetDriveMode() you can set the pins to digital High-Z when needed and back to strong mode to transmit data.

Happy coding

Bob

0 Likes

true, thanks!

in other words, default uart is strong drive high & low (not open drain) right!?

0 Likes

It is your choice. Strong drive will work without any extern components and is the usual choice.

Bob

I have two cpu's on the same uart, even though the protocol takes care of the two not talking at the same time, it's a risk if one drives low and the other high...

Let's say I reconfigure both as open-drain + external ~10k pull-up.

What would be a reasonable max speed ?

0 Likes