ENCYCLOPEDIA OF RADIO ELECTRONICS AND ELECTRICAL ENGINEERING AVR fuzz fix. Encyclopedia of radio electronics and electrical engineering Encyclopedia of radio electronics and electrical engineering / Microcontrollers The salvation of the controllers is the work of the controllers themselves. This circuit to fix incorrectly wired ATTINY2313 fuses (although other AVRs can probably be reprogrammed, they have similar commands) uses the parallel programming mode. The MK restores the factory settings, and most importantly the SPIEN bit, the internal generator turns on, and you can use the serial programmer again, I use USB on atmega8. Its speed must be reduced, i.e. close pin 14 ( PB0 ) through a 300 ohm resistor to the case. The increased speed is apparently intended for programming MKs inserted into the sockets located on the programmer board. I had an ATTINY2313 on a breadboard connected by wires (about 20 cm) with a programmer, and at increased speed there were read and FLASH errors and signatures and fuzzes. The erased FLASH was read - partly FFFF, partly 0000, partly some random values. It was also such that after the first programming MK generally ceased to be determined. As soon as the programmer switched to LOW mode, all errors disappeared, of course, the write and read time increased. The program was used - ChipBlasterAVR ver 1.12. The circuit below corrects the fuzz. The frequency of the quartz does not really matter, maybe 1 MHz and 10 MHz, or an internal oscillator with or without frequency division. If only one AVR needs to be fixed, then it is soldered on top of D1, only some of the pins are bent and connected to resistors with thin wires. If there are several AVRs, then a socket for a 20-pin package is soldered on top (although the sockets are not very reliable). First, you may have to select the number of diodes to obtain a voltage of 12V on the collector of the current source KT361 (11,5 ...... 12,5), the collector current is approximately 10mA (you can select a resistor connected to the base). When using another MK instead of D2, you need to compare the datasheets (fuses of other AVRs are completely different and the SPIEN bit may be in a different category, then you will have to change some lines of the firmware), although there are errors in the reference data on ATTINY2313, the PAGE and BS2 input numbers are not correctly indicated . The program is also given (may be useful to someone), time delays are organized on program cycles. First, when two supply voltages are applied simultaneously (from one power supply unit), the chip is erased, then the higher fuses are recorded further than the lower ones, the LED should blink three times (ti = 1ms at 8 MHz quartz, i.e., the RDY / BSY response signal comes three times ). The power must turn on at the same time (you need a PSU that gives out both + 5V and + 15V), then the MK makes a long delay, then 0 is set to pin. R, then +12V...etc. If, after restoring the fuses, the generator is reprogrammed from internal to external quartz (using ChipBlasterAVR), then avr ceases to be detected (the signature will not be read) until the external quartz is soldered. There are similar schematics in Greek serasidis.gr and German dl5neg.de on AVR AT90S1200, but there is no feedback from the RDY/BSY ( R/B ) output. Download HEX firmware and program source Author: jem9kip; Publication: cxem.net See other articles Section Microcontrollers. Read and write useful comments on this article. Latest news of science and technology, new electronics: Machine for thinning flowers in gardens
02.05.2024 Advanced Infrared Microscope
02.05.2024 Air trap for insects
01.05.2024
Other interesting news: ▪ Stem cells have been trained to produce insulin ▪ 3,5mm battery for wearable electronics ▪ Gravitational waves could help predict tsunamis News feed of science and technology, new electronics
Interesting materials of the Free Technical Library: ▪ site section Voltage converters, rectifiers, inverters. Article selection ▪ article Steering wheels on threads. Tips for a modeler ▪ article Painting work. Standard instruction on labor protection
Leave your comment on this article: All languages of this page Home page | Library | Articles | Website map | Site Reviews www.diagram.com.ua |