Hi Guys,
I just writing code using Energia format on CCS 8. I want to set the timer Interrupt on 1 Mhz frequency.
But as I check using Osiloscope, it just shown 53.8 Khz. Please kindly advise to fix my code as below.
I appreciate your help.
Regards,
Lukman
#include <msp430.h>
const int ledPin2 = 39;
void setup()
{
// put your setup code here, to run once:
pinMode(ledPin2,OUTPUT);
setupTimer(1); // set timer period to 1000 micro seconds
}
void loop()
{
}
void OnTimer()
{
static int msCount=0;