program microcontrollers for Zabava-m1
How to program microcontrollers for Zabava-m1
r
Zabava-m1
Zabava-m1
Zabava-m1
I program microcontrollers Zabava-m1 using the Algorithm Builder program and a programmer, the circuit diagram of which is present in the help system of this program.
I take power for the microcontroller from the “crown” through the 78L05 stabilizer, be sure to put 0.1 μF capacitors at the input and output of the 78L05. Put a switch between the battery and the stabilizer. The minus of the battery, stabilizer, programmer must be connected to the computer case. A “quartz” and a couple of capacitors must be connected to the microcontroller, as in the ” Zabava ” diagram. The programmer must be connected (disconnected) to the computer when the computer is de-energized.
Algorithm Builder program.
Install the program “Algorithm Builder” (download link at the bottom of the page), run it. In the menu “File” select the item “New”, instead of the inscription “NOP” that appears, enter:
Load: filename.hex
Instead of “file name” we enter the name of the firmware that we will load into the microcontroller. Open the “Options” menu, select “Project Options”. A window will open in which you need to select the crystal type, select “ATtiny2313”, below set the clock frequency in Hz: 20000000. Click the “Apply” button.
Open the Project Options window again, select the Fuse bits tab and set the configuration bits. For the Zabava metal detector, it looks like this:
Click the apply button.
In the File menu, click Save As and save the project in an empty folder. In order for the project to be saved, you need to name it something, for example, “load.” You need to place the firmware file in the same folder.
Turn on the programmer power, in the Algorithm Builder program press the Run with crystal button.
In the Crystal Programming window, check the boxes as shown in the figure below.
Press the “Start” button. If everything is OK, the program will be written to the microcontroller memory. If a window appears saying “Crystal not available”, try changing the COM port. To do this, select “Environment Options” in the “Options” menu, then select the “Port” tab.
It didn’t help, look for the problem in the programmer, microcontroller or in the microcontroller power supply.
http://algrom.net/ – link to download “Algorithm Builder”.
The link is not relevant, unfortunately the site has changed owners.