ok im about to start working on this now. I just found my junebug.... my pickit 2 is dead right now so... anyway... Ill be using a 18F2525 a 2x16 LCD and a nice 3 way switch .... SparkFun Electronics - Surface Mount Navigation Switch
I made my own breakout board for it.... ANyway ill have pictures of my clock generator and source later today or tomorrow...
im doing it in C first and also i will have 4 speeds... 32khz, 1mhz, 4 mhz and 8 mhz output... im using the 18f2525 because its small and has lots of power... with a 10mhz external crystal and PLL thats 40mhz aka 10mips
well this is a failed process heh... I am going to buy a few AVRs and see if i can work with new ones.... I now have 3 AVRs down... 1 ATMEGA88 and 2 ATTINY2313 This sux!!! i bought this programmer to avoid things like this lol and look ! Anyway thank goodness these things are cheap..
?! What the heck are you doing Atom? You've used pics for a while now and they're not much different from them, I started on AVR's brand spanking new and I've never lost a single chip, I fried a single I/O pin on one but that's it. I wouldn't touch any other chips until you figure out EXACTLY what is going on with the ones you have cause you're just gonna brick more until you do. If you're getting flustered abotu the whole ordeal stop what you're doing and walk away from it for a couple days till you can come back to it with a clear mind and start the debugging process over again. I had to do this several times while I was first learning microcontrollers.
heh... i want to order a new AVR mainly to ensure its not a faulty Dragon. If i can get a new AVR working then i know its my ICs ... i did something to em not sure... Ill give it a day or so...
Something as complex as the Dragon is going to either work, or not; they don't generally have complex failure modes.
I thought I 'bricked' two ATAVRISP programmers, and bought an STK500 dev kit, which does suit my needs better. But I've since after careful attention to all the written words about them resurrected both AVRISP programmers, actually they both were shipped free to users here. The error was I wasn't properly timing the reset sequence to get the ATAVRISP into it's internal programming update mode. I was so upset at the time that I wasn't waiting the single additional second required to put it in the proper mode for internal chip updating. 99.9% of the time it's user error. Finding out that error is first and foremost.
Im going to wait until i clean my whole area before working with AVRs... i might even setup a laptop i have here for AVR only work. This way i can have a clean start with software and hardware and a clean environment.
BTW, because of these posts I did a little reading up yesterday, if you're not affraid of surface mount, look at the Xmega line... 16 bit core, 12bit ADC _AND_ DAC. I just don't need em yet, but they look nice.
OMG i think i fixed it!!! simplest thing ever..... i read up on AVR some more and noticed it has a internal 36pf cap on xtal pins... so i tied a 1k resistor to XTAL1 pin and VCC and poof! i can read/erase/write
yeah i can confirm it works now. I can now program and change fuses ... I made a simple blink code in C and works like a charm.... DEBUGGING works and Actual Programming!! Yes! so happy....
Hey guys this is REV1 of my AVR Dragon Adapter.... WITH NEW LOGO... plz dont copy it heh... I know have a second part to this adapter but it isnt done yet heh...
The only way you could reprogram the fuses in circuit would be to have a second MCU bring the one you want to change into programming mode. The programming protocol is fully described, thought I'm not sure why you'd want to do this.
Atom, while I'm glad you can reprogram your chips now, I'm not exactly sure how that actually worked. What does there being an internal capacitance on the Xtal pin and tieing it via a resistor to VCC allow it to be reprogrammed? Also, what fuses did you have set that weren't allowing it to run? If it were the external oscilator fuse as you described earlier feeding it a clock on the xtal line should have worked.
Once you set a FUSE as noted before you have to have that clock running to reprogram it... I think i had EXT CLOCK.... so i tried to make a external clock but didnt work so i made a External RC Clock using just 1 resistor since it has a internal cap.