Continue to Site

Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

  • Congratulations GregLocock on being selected by the Eng-Tips community for having the most helpful posts in the forums last week. Way to Go!

In-Circuit Programming Via USB

Status
Not open for further replies.

sdelima

Electrical
Jun 7, 2002
7
Hey everyone,

How is it going? Has anybody ever written a program to program a Microcontroller (that has a built in USB port) via its USB port.

If anyone has any ideas please let me know

Thanks a ton

Shane
 
Replies continue below

Recommended for you

Which micro has a built-in USB port ?

The easiest way is to use a bootloader. Either with hardware support like some of the Atmel MegaAVR chips, or do it yourself. The reset vector code checks an input mechanism (serial port, USB, SPI, whatever) for a special condition. If it sees it ('$' char on serial) it then goes into receive mode to download the new code, and writes it into place.

Search on bootloader and your micro name. Or check for Atmel AVR info.

If USB isn't really "built-in" to the chip, you can use something like FTDI's usb chips, then you have a couple of options. The 232 pretends to be a serial port, so your normal serial code can talk to it. The 245 uses a parallel interface - 8 bits.

Would need a few details more ...

Dean.
 
sdelima:

It is a big project for an MCU that does not have a dedicated USB communication. I have started a similiar project with a MC68HC908JK3/JL3; However, I am aiming at getting the USB port to enumerate the MCU. I am utilizing a MAX3340E USB translator to communicate between the USB and SIE, serial interface engine. The SIE may end up being an fpga chip before data is ready to be read by the MCU. It is a big project, but interesting. My best information has come from the USB.org website. If I can give you any more specifics let me know. drollinger@montana.net

Cy Drollinger
 
Hey Guys thanks for the replies

The microcontroller I am using is the MC68HC908JB8. it has
a a USB module which is designed to serve as a LS USB device. The MCU does not have a SCI (so I might have to implement a bit banging technique). If any one has any ideas as to where i can find some boot loader examples i would greatly appreciate it.

Thanks for your help

sdelima
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor