Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

See the data sheet for the part.[1] Basically, you want to feed power into the inductor briefly, then turn off power and somehow connect the inductor to the LED. The trick is to find some way to get the microcontroller to connect two of its own pins together, so you can use it as a switch on the output. This is probably done by abusing one of the alternate uses of the six "B" pins. See table 10-3. I'm thinking that port B, bit 5, DW mode might be abusable in this way.

[1] http://www.atmel.com/images/atmel-2586-avr-8-bit-microcontro...



This exact solution is described at the end of the post except that they call it RESET pin rather than DW pin. And of course they short it directly to GND by driving low, you can't just short two GPIOs together.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: