Sinaprog fuse bit setting guide ablab solutions

1,083 views
916 views

Published on

Published in: Technology, Business
0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total views
1,083
On SlideShare
0
From Embeds
0
Number of Embeds
4
Actions
Shares
0
Downloads
0
Comments
0
Likes
0
Embeds 0
No embeds

No notes for slide

Sinaprog fuse bit setting guide ablab solutions

  1. 1. ABLab Solutions SinaProg Fuse Bit Setting Guide 1
  2. 2. ABLab Solutions Sneha Palace, Plot No.60,Laxmi Vihar, Near Appolo Hospital, Bhubaneswar-751005 Website: www.ablab.in | E-mail: info@ablab.in | Ph: 91-674-6573832 Table of Contents Fuse Bit Setting Guide................................................................................................ 3 Frequency Setting...................................................................................................... 4 Setting Other Fuse Bits.............................................................................................. 6 Reading Fuse Bit...................................................................................................... 11 Chip Erase ............................................................................................................... 13 Update Yourself....................................................................................................... 15 2
  3. 3. ABLab Solutions Sneha Palace, Plot No.60,Laxmi Vihar, Near Appolo Hospital, Bhubaneswar-751005 Website: www.ablab.in | E-mail: info@ablab.in | Ph: 91-674-6573832 Fuse Bit Setting Guide Fuse Bit setting (writing) is the most critical and important feature in AVR microcontrollers. Fuse Bit is used to configure the AVR microcontrollers like frequency setting, JTAG enable/disable and others. If knowingly or unknowingly wrong Fuse Bit is set, then the microcontroller may get damaged or locked permanently. So, it is my advice to all not to play with Fuse Bits in AVR microcontroller unless and until you know what you are doing. Now, Connect the AVR USB Programmer to the PC or Laptop directly or with the help of USB AM-FM Cable provided with the AVR USB Programmer package. Then, Connect the AVR Trainer Board-100 or any other board or microcontroller that you have, with the AVR USB Programmer through the 10 to 10 FRC Female connector provided with the AVR USB Programmer package. Open the SinaProg Software. The SinaProg window looks as below picture: 3
  4. 4. ABLab Solutions Sneha Palace, Plot No.60,Laxmi Vihar, Near Appolo Hospital, Bhubaneswar-751005 Website: www.ablab.in | E-mail: info@ablab.in | Ph: 91-674-6573832 For setting Fuse Bit, we do not need any file. We just need to select the setting or need to write the Fuse Bit values in their respective field. There is no standard for Fuse Bit values, it varies from microcontroller to microcontroller depending on the features provided in the microcontroller. For detail, please refer to the datasheet of respective microcontroller. Here, everything will be with respect to ATmega16. Frequency Setting To set the frequency of the microcontroller, Select the frequency value from the drop-down list in the Fuses section and, “USBasp” as programmer & “USB” as port from the drop-down lists in the Programmer section. Example:- 1MHz. The below picture shown is with all the above settings: Click “Program” button in the Fuses section to set the frequency of the target microcontroller. The below picture shows the status of the Fuse Bit writing: 4
  5. 5. ABLab Solutions Sneha Palace, Plot No.60,Laxmi Vihar, Near Appolo Hospital, Bhubaneswar-751005 Website: www.ablab.in | E-mail: info@ablab.in | Ph: 91-674-6573832 When the Fuse Bit writing succeeds, ”Programming Fuses…OK” is displayed in the Status section and if fails, then “Programming failed” is displayed in the Status section. The below pictures shows the Status section, when the Fuse Bit writing succeeds and fails: 5
  6. 6. ABLab Solutions Sneha Palace, Plot No.60,Laxmi Vihar, Near Appolo Hospital, Bhubaneswar-751005 Website: www.ablab.in | E-mail: info@ablab.in | Ph: 91-674-6573832 Writing succeeds. Writing fails. Setting Other Fuse Bits To set other Fuse Bits, Click the “Advanced” button in the Fuses section. This opens another window, called Advanced window. The below picture shows the Advanced window along with SinaProg window: 6
  7. 7. ABLab Solutions Sneha Palace, Plot No.60,Laxmi Vihar, Near Appolo Hospital, Bhubaneswar-751005 Website: www.ablab.in | E-mail: info@ablab.in | Ph: 91-674-6573832 When the Advanced window opens, it reads all the Fuse Bit values of the microcontroller connected and display it in their respective field as shown in the above the picture. Out of all these values some are Read Only and some are Read/Write. Also, all Fuse Bits are supported by AVR families of microcontroller and not by all microcontroller. Example: ATmega16 does not support Extended Fuse. 7
  8. 8. ABLab Solutions Sneha Palace, Plot No.60,Laxmi Vihar, Near Appolo Hospital, Bhubaneswar-751005 Website: www.ablab.in | E-mail: info@ablab.in | Ph: 91-674-6573832 The following Fuse Bits are Read Only: The following Fuse Bits are Read/Write: 1. Device Signature 1. Lock Bit 2. Calibration 2. High Fuse 3. Low Fuse 4. Extended Fuse To write any of the above Read/Write Fuse Bits, Write the Fuse Bit value or values in their respective field and Click “Write” button to write the Fuse Bits to the microcontroller. Alternatively, the Fuse Bits writing can be done by Clicking the “C” buttons of corresponding Fuses. This opens their respective Fuse Bit Calculator window. Example – Click the C button of High Fuse, it will open the High Fuse Calculator window. Select your Fuse bit setting in the Fuse Bit Calaculator window from the drop-down lists and check boxes in Fuse Bit Calculator window and Click “OK” to save your Fuse Bit setting. The above picture shows the SinaProg, Advanced and High Fuse Calculator windows. 8
  9. 9. ABLab Solutions Sneha Palace, Plot No.60,Laxmi Vihar, Near Appolo Hospital, Bhubaneswar-751005 Website: www.ablab.in | E-mail: info@ablab.in | Ph: 91-674-6573832 Now, Click “Write” in the Advanced window to write the Fuse Bit values. This will write all the fuse values whether you have changed any value or not. Example – we changed the high fuse value only and we clicked write button then, it will write the high fuse, low fuse and lock bit in ATmega16. So, change the Fuse Bit that you want to and don’t play with other Fuse Bits. The below picture shows the progress of Fuse Bit writing. 9
  10. 10. ABLab Solutions Sneha Palace, Plot No.60,Laxmi Vihar, Near Appolo Hospital, Bhubaneswar-751005 Website: www.ablab.in | E-mail: info@ablab.in | Ph: 91-674-6573832 If the Fuse Bit writing succeeds then, “Writing Fuses…OK” is displayed and if fails then “Programming Failed” is displayed in the Status section of Advanced window. The below pictures shows the Status section, when the Fuse Bit writing succeed: 10
  11. 11. ABLab Solutions Sneha Palace, Plot No.60,Laxmi Vihar, Near Appolo Hospital, Bhubaneswar-751005 Website: www.ablab.in | E-mail: info@ablab.in | Ph: 91-674-6573832 Reading Fuse Bit To Read all the Fuse Bit values of the connected microcontroller, Click the “Read” button in the Advanced window. The below picture shows the progress of Fuse Bit reading: If reading Fuse Bits succeeds then, “Reading Fuses….OK” is displayed and if fails “Programming failed” is displayed in the Status section of Advanced window. If the Fuse Bit reading succeeds, all the Fuse Bit fields in the Advanced window will be filled withthe values read from the connected microcontroller. 11
  12. 12. ABLab Solutions Sneha Palace, Plot No.60,Laxmi Vihar, Near Appolo Hospital, Bhubaneswar-751005 Website: www.ablab.in | E-mail: info@ablab.in | Ph: 91-674-6573832 The above pictures shows that the Fuse Bit reading succeeded. 12
  13. 13. ABLab Solutions Sneha Palace, Plot No.60,Laxmi Vihar, Near Appolo Hospital, Bhubaneswar-751005 Website: www.ablab.in | E-mail: info@ablab.in | Ph: 91-674-6573832 Chip Erase Erasing chip will erase all the memory (Flash, SRAM, EEPROM and Fuse memory) of the microcontroller to the manufacturing value. To, erase the microcontroller Click the “Erase” button in the Advanced window. The below picture shows the status of the chip erase: 13
  14. 14. ABLab Solutions Sneha Palace, Plot No.60,Laxmi Vihar, Near Appolo Hospital, Bhubaneswar-751005 Website: www.ablab.in | E-mail: info@ablab.in | Ph: 91-674-6573832 If the chip erase succeeds then, “Erasing Chip…OK” is displayed and if fails “Programming failed” is displayed in the Status section of Advanced window. The below picture shows Status section when chip erase succeeds: This is all about Fuse Bit setting in SinaProg for AVR families of microcontrollers. Once again, I will advice you to be careful when writing Fuse Bits in AVR microcontrollers. 14
  15. 15. ABLab Solutions Sneha Palace, Plot No.60,Laxmi Vihar, Near Appolo Hospital, Bhubaneswar-751005 Website: www.ablab.in | E-mail: info@ablab.in | Ph: 91-674-6573832 Update Yourself For more Softwares, Tutorials, Sample Codes, Installation Guides, User Guides, User Manuals, Videos, Products & Components and Updates, Please Visit us at: www.ablab.in Mail us at: Info@ablab.in View us at: www.youtube.com/ablabsolutions Like us at: www.facebook.com/ablab.in Join us at: www.facebook.com/groups/ablabsolutions 15

×