×
INTELLIGENT WORK FORUMS
FOR ENGINEERING PROFESSIONALS

Log In

Come Join Us!

Are you an
Engineering professional?
Join Eng-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!
  • Students Click Here

*Eng-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Jobs

In-Circuit Programming Via USB

In-Circuit Programming Via USB

In-Circuit Programming Via USB

(OP)
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

RE: In-Circuit Programming Via USB

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 http://www.avrfreaks.net 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.

RE: In-Circuit Programming Via USB

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

RE: In-Circuit Programming Via USB

(OP)
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

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Eng-Tips Forums free from inappropriate posts.
The Eng-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Eng-Tips forums is a member-only feature.

Click Here to join Eng-Tips and talk with other members!


Resources