Other Parts Discussed in Thread: MSP430FR5989
Tool/software:
Hello,
I am using msp430fr5989 MCU and we would like to create a timer signal by using Timer_B. I have external oscillator which is 32678 Hz and I would like to create a clock signal with same frequency. Unfortunately, I got approximately 8192 Hz and we did not find the reason of it. I am sharing the code snippet of configuration of it.
CSCTL0_H = CSKEY_H; CSCTL1 = DCOFSEL_0; CSCTL2 = SELA_LFXTCLK | SELS_DCOCLK | SELM__DCOCLK; CSCTL3 = DIVA__1 | DIVS__1 | DIVM__1; CSCTL4 &= ~LFXTOFF; CSCTL0_H = 0; TB0CCR0 = 1; TB0CCTL0 = CCIE; TB0CTL = TBSSEL__ACLK | MC__UP ;
Any help will be appreciated.
Regards.