You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have tested your code and it is working fine if clock freq is 16Mhz.
If I set 1Mhz clock the code is not working
I changed value from 16000 to 1000 at TA1CCR0 = 1000u; but what to set at one more condition as shown below.
if (TA1CCR0 > 750)
{
...
...
}
Please guide.
The text was updated successfully, but these errors were encountered:
This was all based on SMCLK ticking at 16 MHz. You could divide everything by 16 if SMCLK is running at 1 MHz, and it should just work. So in that captured edge value comparison (TACCR0>750) you could try 47 and everything else should follow.
Are you setting up DCO at 1 MHz and sourcing both MCLK and SMCLK from it? Other than that, just make sure you're setting up USCI_A0 correctly for the 1 MHz clock and your desired baud rate.
I have tested your code and it is working fine if clock freq is 16Mhz.
If I set 1Mhz clock the code is not working
I changed value from 16000 to 1000 at TA1CCR0 = 1000u; but what to set at one more condition as shown below.
if (TA1CCR0 > 750)
{
...
...
}
Please guide.
The text was updated successfully, but these errors were encountered: