\hypertarget{rtc__ex1__countmode_8c}{}\doxysection{Resources/\+Software/msp430\+\_\+driverlib\+\_\+2\+\_\+91\+\_\+13\+\_\+01/examples/\+MSP430\+FR2xx\+\_\+4xx/rtc/rtc\+\_\+ex1\+\_\+countmode.c File Reference}
\label{rtc__ex1__countmode_8c}\index{Resources/Software/msp430\_driverlib\_2\_91\_13\_01/examples/MSP430FR2xx\_4xx/rtc/rtc\_ex1\_countmode.c@{Resources/Software/msp430\_driverlib\_2\_91\_13\_01/examples/MSP430FR2xx\_4xx/rtc/rtc\_ex1\_countmode.c}}
{\ttfamily \#include \char`\"{}driverlib.\+h\char`\"{}}\newline
{\ttfamily \#include \char`\"{}Board.\+h\char`\"{}}\newline
\doxysubsection*{Macros}
\begin{DoxyCompactItemize}
\item 
\#define \mbox{\hyperlink{rtc__ex1__countmode_8c_a5cf885ab33e020a11eb58d9e7142436b}{INTERVAL\+\_\+\+TIME}}~32768
\end{DoxyCompactItemize}
\doxysubsection*{Functions}
\begin{DoxyCompactItemize}
\item 
void \mbox{\hyperlink{rtc__ex1__countmode_8c_a6288eba0f8e8ad3ab1544ad731eb7667}{main}} (void)
\item 
void \mbox{\hyperlink{rtc__ex1__countmode_8c_aab67b5b38d41e40c3d03447137ba8ef5}{RTC\+\_\+\+ISR}} (void)
\end{DoxyCompactItemize}


\doxysubsection{Macro Definition Documentation}
\mbox{\Hypertarget{rtc__ex1__countmode_8c_a5cf885ab33e020a11eb58d9e7142436b}\label{rtc__ex1__countmode_8c_a5cf885ab33e020a11eb58d9e7142436b}} 
\index{rtc\_ex1\_countmode.c@{rtc\_ex1\_countmode.c}!INTERVAL\_TIME@{INTERVAL\_TIME}}
\index{INTERVAL\_TIME@{INTERVAL\_TIME}!rtc\_ex1\_countmode.c@{rtc\_ex1\_countmode.c}}
\doxysubsubsection{\texorpdfstring{INTERVAL\_TIME}{INTERVAL\_TIME}}
{\footnotesize\ttfamily \#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 = $\sim$32k\+Hz \begin{DoxyVerb}     MSP430FR2xx_4xx Board
       -----------------
  /|\ |                 |
   |  |                 |
   ---|RST              |
      |                 |
      |                 |-->LED1
\end{DoxyVerb}


This example uses the following peripherals and I/O signals. You must review these and change as needed for your own board\+:
\begin{DoxyItemize}
\item RTC peripheral
\item GPIO Port peripheral
\end{DoxyItemize}

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.
\begin{DoxyItemize}
\item RTC\+\_\+\+VECTOR 
\end{DoxyItemize}

Definition at line 68 of file rtc\+\_\+ex1\+\_\+countmode.\+c.



\doxysubsection{Function Documentation}
\mbox{\Hypertarget{rtc__ex1__countmode_8c_a6288eba0f8e8ad3ab1544ad731eb7667}\label{rtc__ex1__countmode_8c_a6288eba0f8e8ad3ab1544ad731eb7667}} 
\index{rtc\_ex1\_countmode.c@{rtc\_ex1\_countmode.c}!main@{main}}
\index{main@{main}!rtc\_ex1\_countmode.c@{rtc\_ex1\_countmode.c}}
\doxysubsubsection{\texorpdfstring{main()}{main()}}
{\footnotesize\ttfamily void main (\begin{DoxyParamCaption}\item[{void}]{ }\end{DoxyParamCaption})}



Definition at line 70 of file rtc\+\_\+ex1\+\_\+countmode.\+c.



References \+\_\+\+\_\+no\+\_\+operation(), and INTERVAL\+\_\+\+TIME.

\mbox{\Hypertarget{rtc__ex1__countmode_8c_aab67b5b38d41e40c3d03447137ba8ef5}\label{rtc__ex1__countmode_8c_aab67b5b38d41e40c3d03447137ba8ef5}} 
\index{rtc\_ex1\_countmode.c@{rtc\_ex1\_countmode.c}!RTC\_ISR@{RTC\_ISR}}
\index{RTC\_ISR@{RTC\_ISR}!rtc\_ex1\_countmode.c@{rtc\_ex1\_countmode.c}}
\doxysubsubsection{\texorpdfstring{RTC\_ISR()}{RTC\_ISR()}}
{\footnotesize\ttfamily void RTC\+\_\+\+ISR (\begin{DoxyParamCaption}\item[{void}]{ }\end{DoxyParamCaption})}



Definition at line 126 of file rtc\+\_\+ex1\+\_\+countmode.\+c.

