Atmega128A was locked by me, but it was revived

Publisher:advancement3Latest update time:2019-10-25 Source: 51heiKeywords:Atmega128A Reading articles on mobile phones Scan QR code
Read articles on your mobile phone anytime, anywhere

A simple solution to the problem of accidentally selecting an external RC when programming the fuse bit of the AVR microcontroller, which causes the microcontroller to be locked.

Today,  
I was tinkering with Atmega128A and remembered the fuse bit, so I wrote it in. As
 

a result, this development board can no longer be recognized by the PORGISP software.
 

When it is loaded into flash and the [Auto] button is clicked, an error will be displayed.
 

I am losing money. What should I do if it is locked?
I searched the Internet for answers. There was a brother in a forum who had the same problem as me. His solution was
"The AVR microcontroller with a locked clock can be unlocked by externally inputting a clock of tens of K to 1M to the XTAL1 pin."
"The input clock level needs to be 5V. It does not need to be a square wave. There is a waveform adjustment circuit inside the chip."
"After burning the fuse, you do not need to re-burn the fuse every time you burn the program. You can remove the check mark in the ISP software."
"Just find a clock input to the XTAL1 of the AVR microcontroller."
"Use STM8S105 to program a 100KHz, 5V square wave, then go to ISP to try to modify the AVR fuse, and it's done."


Inspired by his idea, I was considering using the 51 learning board to program a certain pin to generate a square wave, and when it was connected to the XTAL1 of the atmega128A board and shared the same ground with the atmega128A board, I suddenly thought of the 51 development board, and there was a crystal oscillator on the crystal oscillator pin when it was powered on. Why should I program to make an oscillation wave? So I powered on the 51 learning board, shared the same ground with the atmega128A board, and then used a lead to connect a crystal oscillator pin on the 51 board to the crystal oscillator soldering contact point of the atmega128A. The small light on the atmega128A board began to flash, and there was hope. I quickly selected the external crystal oscillator fuse bit in PORGISP and clicked Write. Haha, the atmega128A was reborn.

Keywords:Atmega128A Reference address:Atmega128A was locked by me, but it was revived

Previous article:Electronic clock based on AVR microcontroller
Next article:AVR328 PWM to PPM source program

Latest Microcontroller Articles
  • Download from the Internet--ARM Getting Started Notes
    A brief introduction: From today on, the ARM notebook of the rookie is open, and it can be regarded as a place to store these notes. Why publish it? Maybe you are interested in it. In fact, the reason for these notes is ...
  • Learn ARM development(22)
    Turning off and on interrupts Interrupts are an efficient dialogue mechanism, but sometimes you don't want to interrupt the program while it is running. For example, when you are printing something, the program suddenly interrupts and another ...
  • Learn ARM development(21)
    First, declare the task pointer, because it will be used later. Task pointer volatile TASK_TCB* volatile g_pCurrentTask = NULL;volatile TASK_TCB* vol ...
  • Learn ARM development(20)
    With the previous Tick interrupt, the basic task switching conditions are ready. However, this "easterly" is also difficult to understand. Only through continuous practice can we understand it. ...
  • Learn ARM development(19)
    After many days of hard work, I finally got the interrupt working. But in order to allow RTOS to use timer interrupts, what kind of interrupts can be implemented in S3C44B0? There are two methods in S3C44B0. ...
  • Learn ARM development(14)
  • Learn ARM development(15)
  • Learn ARM development(16)
  • Learn ARM development(17)
Change More Related Popular Components

EEWorld
subscription
account

EEWorld
service
account

Automotive
development
circle

About Us Customer Service Contact Information Datasheet Sitemap LatestNews


Room 1530, 15th Floor, Building B, No.18 Zhongguancun Street, Haidian District, Beijing, Postal Code: 100190 China Telephone: 008610 8235 0740

Copyright © 2005-2024 EEWORLD.com.cn, Inc. All rights reserved 京ICP证060456号 京ICP备10001474号-1 电信业务审批[2006]字第258号函 京公网安备 11010802033920号