AVR128DA UART to USB conversion

Go To Last Post
11 posts / 0 new
Author
Message
#1
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

I am looking into options to convert UART to USB. Will this module work with the  AVR128DA48T-E/PT

UM232H-B breakout module.

 

Thanks,

Priya

 

 

  UM232H-B Breakout Mod

 

This topic has a solution.
Last Edited: Thu. Nov 12, 2020 - 10:25 PM
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

That appears to be a cheap replacement for a "USB-serial" cable. It plugs into a USB-A connector such as you find on a laptop or desktop computer. So, it is the host end.

 

I would use one of the FT232R breakouts, or similar, at the client end with a standard USB cable.

 

Jim

 

Until Black Lives Matter, we do not have "All Lives Matter"!

 

 

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Jim,

Thank you for your reply.

Mouser has this board:

FT232RL-BO

 

I can connect this to a laptop with a mini USB cable. If I jumper 

uart signals from the  AVR128DA48 Curiosity Nano Evaluation Kit

will I see the USB input on my laptop? Through teraterm maybe?

 

Priya

 

 

 

Last Edited: Thu. Nov 12, 2020 - 08:18 PM
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0


 

fwe wrote:
UM232H-B breakout module

You mean this:

https://www.ftdichip.com/Support...

 

fwe wrote:
FT232RL-BO

This:

https://www.gravitech.us/ftusbto...

 

 

Always helps if you give a link so that we can find exactly what you're talking about.

 

The key thing you need to look at is the voltage levels - they must match the levels that your AVR is using.

 

fwe wrote:
AVR128DA48 Curiosity Nano

You do realise that this already has a built-in USB-to-UART connection - so there's no need to add an external one ?

 

https://www.microchip.com/Develo...

 

 

EDIT

 

decent picture of UM232H-B

Top Tips:

  1. How to properly post source code - see: https://www.avrfreaks.net/comment... - also how to properly include images/pictures
  2. "Garbage" characters on a serial terminal are (almost?) invariably due to wrong baud rate - see: https://learn.sparkfun.com/tutorials/serial-communication
  3. Wrong baud rate is usually due to not running at the speed you thought; check by blinking a LED to see if you get the speed you expected
  4. Difference between a crystal, and a crystal oscillatorhttps://www.avrfreaks.net/comment...
  5. When your question is resolved, mark the solution: https://www.avrfreaks.net/comment...
  6. Beginner's "Getting Started" tips: https://www.avrfreaks.net/comment...
Last Edited: Thu. Nov 12, 2020 - 08:53 PM
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

To answer your question, the FTD232R will be recognized as a COM port in Windows. On a Mac, it  will be a named serial  port. Don't remember how it appears in Linux but it should be like  any other serial port device.

 

As awneil points out, however, you really don't need one.

 

Jim

 

Until Black Lives Matter, we do not have "All Lives Matter"!

 

 

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

I am asking about the latter (Gravitech, link below). Looks like the AVR EK uses 5V.

 

FT232-RL breakout board

 

My original question was about this board:

 

UM232H-B breakout module.

https://www.ftdichip.com/Support...

 

Will the item from the first link work?

 

Thanks,

Priya

 

 

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

The schematic for the Curiosity Nano is here: http://ww1.microchip.com/downloa...

 

As you can see, the onboard ATSAMD21 chip provides a debug and serial interface via USB.

 

All of the AVR128DA48's IO pins are broken out, so you could attach an external USB/serial adapter, but there is no need to.

 

Why do you think you need an external USB/serial interface module ?

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Sorry about my confusion. The 

AVR128DA48 Curiosity Nano Evaluation Kit

 

has an USB port. I assumed this is to power the eval board.

I can use a 5V DC power adapter.

 

My laptop uses windows 10.

 

Is the USB port on the EK for the debugger? I need another UART to USB for data transfer

bits from the UART as processed by the firmware. This is to mimic adding an USB 

peripheral to the MCU.

 

Thanks,

Priya

 

 

 

Last Edited: Thu. Nov 12, 2020 - 09:23 PM
This reply has been marked as the solution. 
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

 

fwe wrote:
I assumed

better to study the User Manual - linked above

 

this is to power the eval board.

It does that - but not only that.

 

Is the USB port on the EK for the debugger?

Yes - and that includes the USB-to-UART

 

I need another UART to USB for data transfer

No - by the wonder of USB, it's all done down one cable

 

 

EDIT

 

 

Top Tips:

  1. How to properly post source code - see: https://www.avrfreaks.net/comment... - also how to properly include images/pictures
  2. "Garbage" characters on a serial terminal are (almost?) invariably due to wrong baud rate - see: https://learn.sparkfun.com/tutorials/serial-communication
  3. Wrong baud rate is usually due to not running at the speed you thought; check by blinking a LED to see if you get the speed you expected
  4. Difference between a crystal, and a crystal oscillatorhttps://www.avrfreaks.net/comment...
  5. When your question is resolved, mark the solution: https://www.avrfreaks.net/comment...
  6. Beginner's "Getting Started" tips: https://www.avrfreaks.net/comment...
Last Edited: Thu. Nov 12, 2020 - 09:52 PM
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

fwe wrote:

This is to mimic adding an USB peripheral to the MCU.

The AVR can not be a USB host to another USB device! 

 

 

 

(Possum Lodge oath) Quando omni flunkus, moritati.

"I thought growing old would take longer"

 

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

In the application PCB, (in the future), the FTDI chip is needed to transfer data to 

an external processor (PC). Its great the eval kit does not need such an adapter.

 

Thanks!

Priya

 

 

Attachment(s):