Hello,
I am new to avr's.. i want to program configuration and security bits for atmega8(external crystal 8 Mhz) and i want to reprogram its flash, so i don't want to lock it..
Here is image of settings which i used earlier to Program one of my atmega8, but now it is not working i cant read or write or even erase it :
So please help me to set correct settings as i don't want to waste my other atmega8. I am using pony prog programmer.
When you program the lock bits then you are not able to program or read the mcu until you erase it, this is intended to protect the content of the mcu, as soon ad you do a full erase you can rewrite the flash memory.
Your setting in the picture is for external RC and it is wrong for external crystal, you have to use an external RC to make it work again,
for external crystal you need to uncheck all cksel bits (which sets them to 1=unprogrammed).
Your setting in the picture is for external RC and it is wrong for external crystal, you have to use an external RC to make it work again,
for external crystal you need to uncheck all cksel bits (which sets them to 1=unprogrammed).
Thanks,
You are right(I was so careful while programming this, But did the same mistake mostly all beginners do :-D)..Can you provide me the circuit(external RC OSC for 8mhz) ?
Thank you
tpetar i already downloaded that, but i think problem is i am using crystal osc instead of rc osc..
i will get back to you guyz.
thanks a ton.
---------- Post added at 19:39 ---------- Previous post was at 18:53 ----------
It is working now, i made a RC oscillator using c = 33pf and R = 1000ohm(as said by alexan_e)
What should be the configuration and security bits, if i want to use 8MHz external crystal??