I've tried to create a RTC of 1ms, I set up a timer into at 1Mhz to count up 1000, this should have resulted in an interupt every 1ms. However I get something around 0.6ms.
Next, I'm using SPI (UCB0) and UART (A1) and when ever I try to run a code with SPI, UART and the RTC. Everything breaks up. note that I've also tried using the B time, but I was unable to being interupted by the timer (I could really apprititate if someone could drop a small example of the usage of the second time in the UPTO mode, there are abosololy nothing online but the user guide, which is not that friendly)
P.S I'm using the TrxEB board
void main(){ WDTCTL = WDTPW + WDTHOLD; //(this had no affect on the frequency of calling) TA0CCR0 = 1000; // using MCSLK 1MHZ, UP TO CCR0, CLEAR, Enable interupt TA0CTL = TASSEL_2 + MC_1 + TACLR + TAIE; __enable_interupt(); while(1); } // should be called when reaching CCR0 #pragma vector=TIMER0_A0_VECTOR __interupt void TIMER0_A0_ISR(void){ // this was called at around 16khz }