View Single Post
Old 10-05-2009, 11:19 PM   #2380 (permalink)
MPaulHolmes
PaulH
 
MPaulHolmes's Avatar
 
Join Date: Feb 2008
Location: Seattle, WA
Posts: 2,553

Michael's Electric Beetle - '71 Superbeetle 500000
Thanks: 371
Thanked 297 Times in 188 Posts
Quote:
Originally Posted by bones007 View Post
I have a question about how the bootloader works. When you use the bootloader to re-program the microcontroller does your new code have to include the bootloader itself each time?

Or is the bootloader protected somehow such that you can upload a program with flaws, fix the program and upload again without screwing up the bootloader.
The bootloader is protected somehow! hehe. You just have to program the chip with the bootloader one time, using something like an STK500 or a homemade programmer, and then after that, you never again need to worry about it.

Ben:
I think you should make sure that R15 is 220 Ohms, and R16 is either 4.7 kOhms or 6.8 kOhms. When I first did a couple control boards, I was using 330 Ohm and 3kOhm, which can be fine, but it depends on the optocoupler that is used. There's a lot of variation from optocoupler to optocoupler, even with the same part number. Using 220 and 6.8 K garantees that it will turn on and off really fast. Alternatively, I would use metal end caps with rubber grommits.
__________________
When I die, I would like to go peacefully, in my sleep, like my grandfather did. Not screaming and yelling like the passenger in his car.
  Reply With Quote