Jump to content
Sign in to follow this  
cde

SMCLK on Calibrated DCO, Watchdog Timer on VLO/ACLK?

Recommended Posts

I always use the calibrated 1 MHz DCO as the main code clock. This sets the SMCLK to the DCO.

BSCTL1 = CALBC1_1MHZ;
DCOCTL = CALDCO_1MHZ;

I currently use the Watchdog in timer mode, set to SMCLK divided by 32. This gives me 32 interrupts per second (1 Mhz / 32 = 31.25 kHz).

WDTCTL = WDT_MDLY_32;

Problem is that this when I am using the Watchdog on the SMCLK, I can't go lower than LPM0 (SMCLK + DCO), which is a power hog compared to LPM3 (ACLK on).

 

I also don't want to use the external crystal.

 

So, how can I use the Watchdog timer on the VLO/ACLK, while keeping the main on the calibrated MCLK/SMCLK/DCO?

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Sign in to follow this  

×
×
  • Create New...