How to read the External Oscillator Frequency in ATMEGA128A?

Status
Not open for further replies.

kunal5959

Junior Member level 3
Joined
Jul 26, 2011
Messages
31
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,286
Activity points
1,644
For my purpose I need to report to Hyperterminal what is the value of the frequency generated by the external Oscillator attached to my microcontroller.The main reason being reporting proper health of the oscillator and to calculate the frequency in runtime in the software..I initially thought reading the fuse bits and calculting thr frequency range would be a solution..but there is not much guidance found on internet to read the fuse bits..Would be glad if any one can guide me with their ideas..

I am using C language and AVR studio for coding..The PCB has a serial interface external osc of 2 MHZ and Power of 5V as supply.


Thanks in aDvance!
 

Status
Not open for further replies.
Cookies are required to use this site. You must accept them to continue using the site. Learn more…