How to connect a board to pc

Thread Starter

Hmnkh

Joined Dec 4, 2024
1
Hi,
I’m working with a custom PCB that uses an ATXMEGA128A1U microcontroller. I don't have access to the designer. From examining the board, I noticed the following connections:

1. Port E of the microcontroller, which has USART capability, is connected to the right-side pins (see image)

2. PDA of the microcontroller is connected to a 74HC245D IC and then to the left-side pins.

This board is supposed to send signals to a PC, and I want to enable this functionality.
Can I directly use the USART from Port E to send data to the PC?
If yes, what kind of connection (UART, USB, or other) do I need, and is additional hardware (e.g., USB-to-UART adapter) required?

Is it possible to access or read the program inside the microcontroller? If so, how?
Any guidance on setting this up or accessing the microcontroller program would be greatly appreciated!
 

Attachments

geekoftheweek

Joined Oct 6, 2013
1,429
I don't know if the program can be read (I am not familiar with Atmel), but even if you can it's going to be in assembly and you'll have to figure out what exactly it is doing. There is a chance it can connect through the USART, but you need to know exactly how it is programmed to communicate to make it work.
Long story short without input from the original designer you have a lot of work ahead of you.
 

sagor

Joined Mar 10, 2019
1,049
The USART would be TTL levels most likely. You would need to convert that to RS-232 levels if it was designed to talk to a PC via a serial port.
There are TTL to RS-232 adapters out there. Converting TTL to RS-232 also inverts the signal.
There are also TTL to USB adapters, which look like a COM port to a PC. That allows PC based communication programs to "talk" to the TTL level device.
So it all depends on what PC you have (most are USB only now)

https://forum.arduino.cc/t/what-usb-to-ttl-adapter-is-the-best/1082015

Do NOT get a Prolific/PL2302 device, drivers can cause issues
 
Last edited:
Top