2020-2021 Sunseeker Telemetry and Lighting System
rtc_ex1_countmode.c File Reference
#include "driverlib.h"
#include "Board.h"

Go to the source code of this file.

Macros

#define INTERVAL_TIME   32768
 

Functions

void main (void)
 
void RTC_ISR (void)
 

Macro Definition Documentation

◆ INTERVAL_TIME

#define INTERVAL_TIME   32768

RTC in Counter Mode toggles LED1 every 1s

This program demonstrates RTC in counter mode configured to source from SMCLK to toggle LED1 every 1s. SMCLK = REFO = ~32kHz

     MSP430FR2xx_4xx Board
       -----------------
  /|\ |                 |
   |  |                 |
   ---|RST              |
      |                 |
      |                 |-->LED1

This example uses the following peripherals and I/O signals. You must review these and change as needed for your own board:

  • RTC peripheral
  • GPIO Port peripheral

This example uses the following interrupt handlers. To use this example in your own application you must add these interrupt handlers to your vector table.

  • RTC_VECTOR

Definition at line 68 of file rtc_ex1_countmode.c.

Function Documentation

◆ main()

void main ( void  )

Definition at line 70 of file rtc_ex1_countmode.c.

References __no_operation(), and INTERVAL_TIME.

◆ RTC_ISR()

void RTC_ISR ( void  )

Definition at line 126 of file rtc_ex1_countmode.c.