This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

COMMUNICATION WITH PC

Other Parts Discussed in Thread: MAX232

Hi all!

My project is connect MCU with PC, very easy when I use FT232, but my teacher show that don't need use FT232. So, I search in the Internet, I find MCU connect PC by USB( ATEMEGA90USB162). I don't known about it, I have only datasheet. Can you help me?please! Some code example or shematic eg...

Thanks

Thuan

  • The $4.30 LaunchPad Kit include a USB interface to the PC which can be used both during development and user code run time. It is not as good as FT232, but is already on the PCB and ready to be used. It has only RXD and TXD, no DTR, DSR, RTS, CTS, RI, CD. Format is limited to 8,n,1 and at either 2400, 4800, or 9600 b/s.

  • Thanks, I known about LaunchPad Kit, I used to it, but it very big, my project require design in SMD component.

  • Can you connect to the PC using RS-232 instead of USB?

  • Interacting with pc requires he logic level to be converted fromm ttl to rs232. For this U can use a level converters like max232. If ur pc has only Usb ports and no rs232 ports There are readily available rs232 to Usb converter cables. So connection will b as below, Mcu <-> max232 <-> rs232 to Usb converter <-> pc.

  • RS232 to USB converters are typical in development boards but I would never use it if I don't need also RS232. These converters are expensive if you don't order a lot of them from Chinese manufacturers.

    AT90USB162 has USB controller so you don't need to use converters. It is TI devices forum and I think it's better to ask on any ATMEL forum for code for this MCU. ATMEL should offer any example codes.

    If you can use TI MCUs I can recommend MSP430x5xxx/ MSP430x6xxx family with built USB controller (great documentation and some examples).

    I have also seen USB communication projects on standard AVRs (ATMEGA16 etc.). I just googled: http://www.workinprogress.ca/v-usb-tutorial-software-only-usb-for-mega-tiny/

    Best regards,

    Mikolaj

**Attention** This is a public forum