Hi all, it my first time when I post in this forum, and also a newbie in the embedded programming.
:? I have a some questions about how to set-up a microcontroller atmega328p-mu and determine the quartz speed.
So I have a board femtoduino, that had a 16mhz oscillator, when I change it with a 8Mhz one, I think I accidentally messed them up, and now I don’t know what oscillator is on the microcontroller. I can’t see the value on them because I accidentally pus some solder on them, the writing was small and I couldn’t see the value with a magnifying glass.
The tension regulator was changed with a 3.3v one.
So here is what I’m asking.
-
Why I can’t read the device id in avr studio if I supply a 3.3v only if I supply 5v, the microcontroller works after if I switch to 3.3v. The programmer is a Pololu USB AVR Programmer.
-
How to set the fuses right? Starting from the assumption that the oscillator is the right one (8MHz). What should I select for starting time?
-
How can I determine after setting the fuses right if the oscillator is 8MHz or 16MHz. I don’t have a oscilloscope, I was thinking if I could determine using delay_ms, but before I get to learning process I want to make sure I have the proper hardware for my needs, so a sample code will be highly appreciated (for testing the value of oscillator).
So thanks I guess, if you need more details, please ask.
Have a nice day,
Vlad