thanks But i have already programmed the Chip with Arduino IDE or Atmel studioHow to Program Arduino with AVR ISP Programmer
How to Program Arduino boards with abn external AVR ISP Programmer or program your own AVR boardwww.kanda.com
Kanda - Guide to AVR ISP Circuit Schematics
Guide to correct and wrong AVR ISP circuit schematics including reset ICs, for all Kanda, Atmel and other AVR ISP programmers AVR ISP, AVR TPI and AVR UPDIwww.kanda.com
or USBasp +
Also google "USBasp atmega32"
- AVRDUDE supports USBasp since version 5.2.
- BASCOM-AVR supports USBasp since version 1.11.9.6.
- Khazama AVR Programmer is a Windows XP/Vista GUI application for USBasp and avrdude.
- eXtreme Burner - AVR is a Windows GUI Software for USBasp based USB AVR programmers.
Regards, Dana.
Here is a link to an AVR fuse calculator:
https://eleccelerator.com/fusecalc/fusecalc.php?chip=atmega328p
The clock source is set by fuses.
The fuses can be checked and written with avrdude and an external programmer.
hiHere is a link to an AVR fuse calculator:
https://eleccelerator.com/fusecalc/fusecalc.php?chip=atmega328p
The clock source is set by fuses.
The fuses can be checked and written with avrdude and an external programmer.
i was checking the Datasheet but i couldnt find anything about HIGH Freq oscillatorhi
i have tried to set the fuses with Atmel Studio & yes the LOW.SUT_CKSEL = Int RC osc 1 Mhz
But how to select 16Mhz crystal ?
the only available selections is ext Crystal/Resonator HIGH Freq & the difference is the start-up time
its the same as the fuse calculator you have sent
i didnt understand how to select the right Crystal
thanks
Johnny
its very confusing method & all the documents i read about this issue was not clear & its from single source i guessHere is what I show for fuse bits -
AVR ATmega16/32 Fuse Bits
Summary Updating with the era of technology, the new microcontrollers are coming with lots of inbuilt peripherals and features. These inbuilt peripherals and features not only reduce the cost of additional circuits to be used with the controller but also provide an ease to interface additional...www.engineersgarage.com
CKOP settings ?
Regards, Dana.
i have choosen the last option of the list in Atmel Sudio 7 Clock sourceFor a 16 MHz crystal, select one of the "Ext. Crystal/Resonator High Freq" clock settings in the fuse calculator.
They don't specify the clock frequency, but have various start times to let the crystal resonator stabilize at start-up. These are setting the CKSEL and SUT fuse bits. Check the data sheet for more info on these. Any of the "Ext.Crystal/Resonator High Freq" settings will probably work OK.
If you look in the boards.txt file of your MightyCore software, you should see fuse values listed.
You can plug these into the fuse calculator and see what values they are setting. the boards.txt
also shows an f_cpu that they are using.
no im using external crystal not external oscillator & now when i touch the crystal pins the led blinks slowly i dont know how my hand generates some oscillationYou are perhaps confusing the meaning of the External Oscillator with the External Crystal setting. With the external oscillator - which is likely your case - you need an external active circuit, not just connecting a crystal there. In addition, depending on the ATMega microcontroller ( I don't know yours, ATMEGA32 ) not all programmers will remove this fuse configuration with the ISP bus.
im using external crystal not external oscillator & now when i touch the crystal pins the led blinks slowly
ok after reading in all sections in Datasheet it was not clear how to set the 16Mhz crystalYour finger is just injecting ambient noise into the microcontroller's clock input pins, nothing else.
By the way, have a look at the technical sheet and you will see that once the fuse bit for external oscillator has been programmed, it will be necessary to carry out an annoying procedure to recover it, or better, just replace the stuck microcontroller by another one, and from now on review carefully the firmware downloading procedure.
i have laerned that from the previous post about ATMEGA LockingHi,
With AVRs you need to program the firmware and the fuses separately.
Be sure this is done properly.
Klaus
watch the video i uploaded pleaseIs touching pins with finger adding enough C to make xtal oscillator run ?
what you mean ?The layout "tight" because of the circulating currents and stray L considerations ?
in my Arduino IDE the list includes ATMEGA32 16MhzFor a 16 MHz crystal, select one of the "Ext. Crystal/Resonator High Freq" clock settings in the fuse calculator.
They don't specify the clock frequency, but have various start times to let the crystal resonator stabilize at start-up. These are setting the CKSEL and SUT fuse bits. Check the data sheet for more info on these.
If you look in the boards.txt file of your MightyCore software, you should see fuse values listed.
You can plug these into the fuse calculator and see what values they are setting. the boards.txt
also shows an f_cpu that they are using.
This is the listing they show in boards.txt for the atmega32 settings for running at 16 Mhz:
# Clock frequencies - This is the second part of the low fuse bit concatenation
32.menu.clock.16MHz_external=External 16 MHz
32.menu.clock.16MHz_external.upload.speed=115200
32.menu.clock.16MHz_external.bootloader.sut_cksel_bits=111111
32.menu.clock.16MHz_external.bootloader.ckopt_bit=0
32.menu.clock.16MHz_external.build.f_cpu=16000000L
thanks brianThat construction is absolutely horrible. It looks like you are connecting various crystals using long wires and a plug/socket. It will not work properly and it is a hardware problem, not exclusively software.
The rules around the oscillator crystal are that the tracks (= wires in your case) must be a short as possible. This doesn't only mean the connection to the crystal but the loading capacitors and the connection between their ground and the MCU VSS pin. You also need decouling capacitors across the supply pins to the MCU, they are not a nicety to make it more resilient against interference, they actually carry switching current, including the current through the oscillator circuit. Without them the oscillator either will not start or will be unstable.
Brian.
The programmer software will dictate the speed, there are in general options available to set up at your choice.What possible clock speeds i need to test with ISP programming?
I agree with brian.but this is a develpment board i use for more than 5 years & its just for test
I don't agree. There always is a reason....i think always there is something unreasonable about electronics which cant be explained
We use cookies and similar technologies for the following purposes:
Do you accept cookies and these technologies?
We use cookies and similar technologies for the following purposes:
Do you accept cookies and these technologies?