Hello!
After importing my arduino sketch to atmel studio 7, and flashing it to a Atmega328P with a 16mhz external resonator connected. I am finding that the program is running at 1/2 speed.
I have verified that F_CPU is set to 16,000,000. My fuses are set to what I can best determine works for the for the 16mhz resonator (Using same ones from arduino nano. Literally hot aired the resonator off of a nano and soldered it on to my PCB). Fuses are as follows.
Ex: FD
High: DA
Low : FF
CKSEL is set to "Ext. Crystal Osc. 8.0- MHz; Start-up time PWRDWN/RESET: 16K CK/14 CK + 65ms"
OScope reads 16MHz off of the resonator
Any help would be greatly appreciated!!