Hi everybody, I'm writing here because I need help with an Arduino clock. I've seen on internet that ATMEGA 328 allows to use a 32.768KHz crystal to get better timing, but I can't find how to wire it to my board. I've already setted lfuse to 0xe2, (and I don't know why I cant set them again, it says me: stk500_program_enable(): protocol error, expect=0x14, resp=0x50 avrdude: initialization failed, rc=-1
Double check connections and try again, or use -F to override
this check. ) but I don't know how to use the external crystal. Can anyone show me a program, that can be uploaded on ATMEGA 328 at 8MHz that uses external crystal and blink a led every second? I not able to write a program with interrupt and things like theese. I would really appreciate any help, thanks to everybody.