Added documentation for boost

This commit is contained in:
Stephen
2021-04-06 20:46:33 -04:00
parent 66dd4f80ea
commit 8a613ad2a9
2594 changed files with 248861 additions and 1726 deletions

View File

@@ -0,0 +1,2 @@
\hypertarget{_9_resources_8markdown}{}\doxysection{Resources/!\+Resources.markdown File Reference}
\label{_9_resources_8markdown}\index{Resources/"!Resources.markdown@{Resources/"!Resources.markdown}}

View File

@@ -0,0 +1,2 @@
\hypertarget{_board_8h}{}\doxysection{Resources/\+Software/msp430\+\_\+driverlib\+\_\+2\+\_\+91\+\_\+13\+\_\+01/examples/\+MSP430\+FR2xx\+\_\+4xx/\+Board.h File Reference}
\label{_board_8h}\index{Resources/Software/msp430\_driverlib\_2\_91\_13\_01/examples/MSP430FR2xx\_4xx/Board.h@{Resources/Software/msp430\_driverlib\_2\_91\_13\_01/examples/MSP430FR2xx\_4xx/Board.h}}

View File

@@ -0,0 +1,52 @@
\hypertarget{_m_s_p430_f5xx__6xx_2crc_2crc__ex1__build_signature_8c}{}\doxysection{Resources/\+Software/msp430\+\_\+driverlib\+\_\+2\+\_\+91\+\_\+13\+\_\+01/examples/\+MSP430\+F5xx\+\_\+6xx/crc/crc\+\_\+ex1\+\_\+build\+Signature.c File Reference}
\label{_m_s_p430_f5xx__6xx_2crc_2crc__ex1__build_signature_8c}\index{Resources/Software/msp430\_driverlib\_2\_91\_13\_01/examples/MSP430F5xx\_6xx/crc/crc\_ex1\_buildSignature.c@{Resources/Software/msp430\_driverlib\_2\_91\_13\_01/examples/MSP430F5xx\_6xx/crc/crc\_ex1\_buildSignature.c}}
{\ttfamily \#include \char`\"{}driverlib.\+h\char`\"{}}\newline
\doxysubsection*{Functions}
\begin{DoxyCompactItemize}
\item
void \mbox{\hyperlink{_m_s_p430_f5xx__6xx_2crc_2crc__ex1__build_signature_8c_a6288eba0f8e8ad3ab1544ad731eb7667}{main}} (void)
\end{DoxyCompactItemize}
\doxysubsection{Function Documentation}
\mbox{\Hypertarget{_m_s_p430_f5xx__6xx_2crc_2crc__ex1__build_signature_8c_a6288eba0f8e8ad3ab1544ad731eb7667}\label{_m_s_p430_f5xx__6xx_2crc_2crc__ex1__build_signature_8c_a6288eba0f8e8ad3ab1544ad731eb7667}}
\index{crc\_ex1\_buildSignature.c@{crc\_ex1\_buildSignature.c}!main@{main}}
\index{main@{main}!crc\_ex1\_buildSignature.c@{crc\_ex1\_buildSignature.c}}
\doxysubsubsection{\texorpdfstring{main()}{main()}}
{\footnotesize\ttfamily void main (\begin{DoxyParamCaption}\item[{void}]{ }\end{DoxyParamCaption})}
CRC -\/ Build Signature and Rebuild to test.
The CRC is first used to build a signature using a seed and multiple data values. This signature is considered as the checksum and can be sent by a UART connection along with the data to verify the correct data has been sent. The second half of this program is used to test the CRC checksum of the data that has been created, by recreating the same checksum and comparing it to the first checksum. If the two checksum are equal, then P1.\+0 is set and the LED is turned on. Breakpoints can be set before the CRC\+\_\+set\+Data() function to observe the CRC register values and see the subsequent signatures before/after each data set.\hypertarget{_m_s_p430_f5xx__6xx_2crc_2crc__ex1__build_signature_8c_autotoc_md37}{}\doxysubsubsection{Tested On\+: MSP430\+F5529,\+MSP430\+FR5739}\label{_m_s_p430_f5xx__6xx_2crc_2crc__ex1__build_signature_8c_autotoc_md37}
\tabulinesep=1mm
\begin{longtabu}spread 0pt [c]{*{2}{|X[-1]}|}
\hline
\PBS\centering \cellcolor{\tableheadbgcolor}\textbf{ / }&\PBS\centering \cellcolor{\tableheadbgcolor}\textbf{ $|$ }\\\cline{1-2}
\endfirsthead
\hline
\endfoot
\hline
\PBS\centering \cellcolor{\tableheadbgcolor}\textbf{ / }&\PBS\centering \cellcolor{\tableheadbgcolor}\textbf{ $|$ }\\\cline{1-2}
\endhead
-- &RST \\\cline{1-2}
P1.\+0 &-\/-\/$>$ LED \\\cline{1-2}
\end{longtabu}
$\vert$ $\vert$
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 CRC 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 NONE
\end{DoxyItemize}
Definition at line 69 of file crc\+\_\+ex1\+\_\+build\+Signature.\+c.
References \+\_\+\+\_\+no\+\_\+operation(), GPIO\+\_\+set\+Output\+High\+On\+Pin(), and i.

View File

@@ -0,0 +1,39 @@
\hypertarget{_m_s_p430_f5xx__6xx_2dma_2dma__ex1__repeated_block_8c}{}\doxysection{Resources/\+Software/msp430\+\_\+driverlib\+\_\+2\+\_\+91\+\_\+13\+\_\+01/examples/\+MSP430\+F5xx\+\_\+6xx/dma/dma\+\_\+ex1\+\_\+repeated\+Block.c File Reference}
\label{_m_s_p430_f5xx__6xx_2dma_2dma__ex1__repeated_block_8c}\index{Resources/Software/msp430\_driverlib\_2\_91\_13\_01/examples/MSP430F5xx\_6xx/dma/dma\_ex1\_repeatedBlock.c@{Resources/Software/msp430\_driverlib\_2\_91\_13\_01/examples/MSP430F5xx\_6xx/dma/dma\_ex1\_repeatedBlock.c}}
{\ttfamily \#include \char`\"{}driverlib.\+h\char`\"{}}\newline
\doxysubsection*{Functions}
\begin{DoxyCompactItemize}
\item
void \mbox{\hyperlink{_m_s_p430_f5xx__6xx_2dma_2dma__ex1__repeated_block_8c_a6288eba0f8e8ad3ab1544ad731eb7667}{main}} (void)
\end{DoxyCompactItemize}
\doxysubsection{Function Documentation}
\mbox{\Hypertarget{_m_s_p430_f5xx__6xx_2dma_2dma__ex1__repeated_block_8c_a6288eba0f8e8ad3ab1544ad731eb7667}\label{_m_s_p430_f5xx__6xx_2dma_2dma__ex1__repeated_block_8c_a6288eba0f8e8ad3ab1544ad731eb7667}}
\index{dma\_ex1\_repeatedBlock.c@{dma\_ex1\_repeatedBlock.c}!main@{main}}
\index{main@{main}!dma\_ex1\_repeatedBlock.c@{dma\_ex1\_repeatedBlock.c}}
\doxysubsubsection{\texorpdfstring{main()}{main()}}
{\footnotesize\ttfamily void main (\begin{DoxyParamCaption}\item[{void}]{ }\end{DoxyParamCaption})}
DMA -\/ Repeated Block Transfer to-\/and-\/from RAM, Software Trigger.
A 16 word block from 1C00-\/1\+C1\+Fh is transfered to 1C20h-\/1\+C3fh using DMA0 in a burst block using software DMAREQ trigger. After each transfer, source, destination and DMA size are reset to initial software setting because DMA transfer mode 5 is used. P1.\+0 is toggled during DMA transfer only for demonstration purposes. $\ast$$\ast$ RAM location 0x1\+C00 -\/ 0x1\+C3F used -\/ make sure no compiler conflict $\ast$$\ast$ ACLK = REFO = 32k\+Hz, MCLK = SMCLK = default DCO 1048576Hz\hypertarget{_m_s_p430_f5xx__6xx_2dma_2dma__ex1__repeated_block_8c_autotoc_md38}{}\doxysubsubsection{Tested on MSP430\+F5529, MSP430\+FR5739}\label{_m_s_p430_f5xx__6xx_2dma_2dma__ex1__repeated_block_8c_autotoc_md38}
/$\vert$$|$ XIN$\vert$-\/ $\vert$ $\vert$ $\vert$ 32k\+Hz --$\vert$\+RST XOUT$\vert$-\/ $\vert$ $\vert$ $\vert$ P1.\+0$\vert$-\/$>$ LED $\vert$ $\vert$
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 DMA 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 None.
\end{DoxyItemize}
Definition at line 68 of file dma\+\_\+ex1\+\_\+repeated\+Block.\+c.
References GPIO\+\_\+set\+Output\+High\+On\+Pin(), GPIO\+\_\+set\+Output\+Low\+On\+Pin(), and param.

View File

@@ -0,0 +1,97 @@
\hypertarget{_m_s_p430_f5xx__6xx_2eusci__a__spi_2eusci__a__spi__ex1__master_8c}{}\doxysection{Resources/\+Software/msp430\+\_\+driverlib\+\_\+2\+\_\+91\+\_\+13\+\_\+01/examples/\+MSP430\+F5xx\+\_\+6xx/eusci\+\_\+a\+\_\+spi/eusci\+\_\+a\+\_\+spi\+\_\+ex1\+\_\+master.c File Reference}
\label{_m_s_p430_f5xx__6xx_2eusci__a__spi_2eusci__a__spi__ex1__master_8c}\index{Resources/Software/msp430\_driverlib\_2\_91\_13\_01/examples/MSP430F5xx\_6xx/eusci\_a\_spi/eusci\_a\_spi\_ex1\_master.c@{Resources/Software/msp430\_driverlib\_2\_91\_13\_01/examples/MSP430F5xx\_6xx/eusci\_a\_spi/eusci\_a\_spi\_ex1\_master.c}}
{\ttfamily \#include \char`\"{}driverlib.\+h\char`\"{}}\newline
\doxysubsection*{Functions}
\begin{DoxyCompactItemize}
\item
void \mbox{\hyperlink{_m_s_p430_f5xx__6xx_2eusci__a__spi_2eusci__a__spi__ex1__master_8c_a6288eba0f8e8ad3ab1544ad731eb7667}{main}} (void)
\item
void \mbox{\hyperlink{_m_s_p430_f5xx__6xx_2eusci__a__spi_2eusci__a__spi__ex1__master_8c_a7d5728ccc412d2d610500fa338c2d003}{USCI\+\_\+\+A0\+\_\+\+ISR}} (void)
\end{DoxyCompactItemize}
\doxysubsection*{Variables}
\begin{DoxyCompactItemize}
\item
uint8\+\_\+t \mbox{\hyperlink{_m_s_p430_f5xx__6xx_2eusci__a__spi_2eusci__a__spi__ex1__master_8c_a597ef8ed788642728c57f66b3a21544f}{RXData}} = 0
\item
uint8\+\_\+t \mbox{\hyperlink{_m_s_p430_f5xx__6xx_2eusci__a__spi_2eusci__a__spi__ex1__master_8c_ae369b896b0180297d61764643f99ba25}{TXData}} = 0
\end{DoxyCompactItemize}
\doxysubsection{Function Documentation}
\mbox{\Hypertarget{_m_s_p430_f5xx__6xx_2eusci__a__spi_2eusci__a__spi__ex1__master_8c_a6288eba0f8e8ad3ab1544ad731eb7667}\label{_m_s_p430_f5xx__6xx_2eusci__a__spi_2eusci__a__spi__ex1__master_8c_a6288eba0f8e8ad3ab1544ad731eb7667}}
\index{eusci\_a\_spi\_ex1\_master.c@{eusci\_a\_spi\_ex1\_master.c}!main@{main}}
\index{main@{main}!eusci\_a\_spi\_ex1\_master.c@{eusci\_a\_spi\_ex1\_master.c}}
\doxysubsubsection{\texorpdfstring{main()}{main()}}
{\footnotesize\ttfamily void main (\begin{DoxyParamCaption}\item[{void}]{ }\end{DoxyParamCaption})}
Definition at line 81 of file eusci\+\_\+a\+\_\+spi\+\_\+ex1\+\_\+master.\+c.
References \+\_\+\+\_\+delay\+\_\+cycles(), \+\_\+\+\_\+no\+\_\+operation(), i, param, and TXData.
\mbox{\Hypertarget{_m_s_p430_f5xx__6xx_2eusci__a__spi_2eusci__a__spi__ex1__master_8c_a7d5728ccc412d2d610500fa338c2d003}\label{_m_s_p430_f5xx__6xx_2eusci__a__spi_2eusci__a__spi__ex1__master_8c_a7d5728ccc412d2d610500fa338c2d003}}
\index{eusci\_a\_spi\_ex1\_master.c@{eusci\_a\_spi\_ex1\_master.c}!USCI\_A0\_ISR@{USCI\_A0\_ISR}}
\index{USCI\_A0\_ISR@{USCI\_A0\_ISR}!eusci\_a\_spi\_ex1\_master.c@{eusci\_a\_spi\_ex1\_master.c}}
\doxysubsubsection{\texorpdfstring{USCI\_A0\_ISR()}{USCI\_A0\_ISR()}}
{\footnotesize\ttfamily void USCI\+\_\+\+A0\+\_\+\+ISR (\begin{DoxyParamCaption}\item[{void}]{ }\end{DoxyParamCaption})}
Definition at line 140 of file eusci\+\_\+a\+\_\+spi\+\_\+ex1\+\_\+master.\+c.
References \+\_\+\+\_\+delay\+\_\+cycles(), RXData, and TXData.
\doxysubsection{Variable Documentation}
\mbox{\Hypertarget{_m_s_p430_f5xx__6xx_2eusci__a__spi_2eusci__a__spi__ex1__master_8c_a597ef8ed788642728c57f66b3a21544f}\label{_m_s_p430_f5xx__6xx_2eusci__a__spi_2eusci__a__spi__ex1__master_8c_a597ef8ed788642728c57f66b3a21544f}}
\index{eusci\_a\_spi\_ex1\_master.c@{eusci\_a\_spi\_ex1\_master.c}!RXData@{RXData}}
\index{RXData@{RXData}!eusci\_a\_spi\_ex1\_master.c@{eusci\_a\_spi\_ex1\_master.c}}
\doxysubsubsection{\texorpdfstring{RXData}{RXData}}
{\footnotesize\ttfamily uint8\+\_\+t RXData = 0}
USCI\+\_\+\+A0, SPI 3-\/Wire Master Incremented Data This example shows how SPI master talks to SPI slave using 3-\/wire mode. Incrementing data is sent by the master starting at 0x01. Received data is expected to be same as the previous transmission. e\+USCI RX ISR is used to handle communication with the CPU, normally in LPM0. If high, P1.\+0 indicates valid data reception. Because all execution after LPM0 is in ISRs, initialization waits for DCO to stabilize against ACLK. ACLK = $\sim$32.768k\+Hz, MCLK = SMCLK = DCO $\sim$ 1048k\+Hz. BRCLK = SMCLK/2
Use with eusci\+\_\+spi\+\_\+ex1\+\_\+slave code example. If slave is in debug mode, P1.\+1 slave reset signal conflicts with slave\textquotesingle{}s JTAG; to work around, use IAR\textquotesingle{}s \char`\"{}\+Release JTAG on Go\char`\"{} on slave device. If breakpoints are set in slave RX ISR, master must stopped also to avoid overrunning slave RXBUF. \DoxyHorRuler{0}
/$\vert$\textbackslash{} $\vert$ $\vert$ $\vert$ $\vert$ $\vert$ Master---+-\/$>$$\vert$\+RST $\vert$ $\vert$ $\vert$ $\vert$ P3.\+1$\vert$-\/$>$ Data Out (UCA0\+SIMO) $\vert$ $\vert$ $\vert$ P3.\+0$\vert$$<$-\/ Data In (UCA0\+SOMI) $\vert$ $\vert$ $\vert$ P3.\+2$\vert$-\/$>$ Serial Clock Out (UCA0\+CLK)
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 SPI peripheral
\item GPIO Port peripheral (for SPI pins)
\item UCS peripheral
\item UCA0\+SIMO
\item UCA0\+SOMI
\item UCA0\+CLK
\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 USCI\+\_\+\+A0\+\_\+\+VECTOR
\end{DoxyItemize}
Definition at line 78 of file eusci\+\_\+a\+\_\+spi\+\_\+ex1\+\_\+master.\+c.
Referenced by USCI\+\_\+\+A0\+\_\+\+ISR().
\mbox{\Hypertarget{_m_s_p430_f5xx__6xx_2eusci__a__spi_2eusci__a__spi__ex1__master_8c_ae369b896b0180297d61764643f99ba25}\label{_m_s_p430_f5xx__6xx_2eusci__a__spi_2eusci__a__spi__ex1__master_8c_ae369b896b0180297d61764643f99ba25}}
\index{eusci\_a\_spi\_ex1\_master.c@{eusci\_a\_spi\_ex1\_master.c}!TXData@{TXData}}
\index{TXData@{TXData}!eusci\_a\_spi\_ex1\_master.c@{eusci\_a\_spi\_ex1\_master.c}}
\doxysubsubsection{\texorpdfstring{TXData}{TXData}}
{\footnotesize\ttfamily uint8\+\_\+t TXData = 0}
Definition at line 79 of file eusci\+\_\+a\+\_\+spi\+\_\+ex1\+\_\+master.\+c.
Referenced by main(), and USCI\+\_\+\+A0\+\_\+\+ISR().

View File

@@ -0,0 +1,97 @@
\hypertarget{_m_s_p430_f5xx__6xx_2eusci__a__spi_2eusci__a__spi__ex1__slave_8c}{}\doxysection{Resources/\+Software/msp430\+\_\+driverlib\+\_\+2\+\_\+91\+\_\+13\+\_\+01/examples/\+MSP430\+F5xx\+\_\+6xx/eusci\+\_\+a\+\_\+spi/eusci\+\_\+a\+\_\+spi\+\_\+ex1\+\_\+slave.c File Reference}
\label{_m_s_p430_f5xx__6xx_2eusci__a__spi_2eusci__a__spi__ex1__slave_8c}\index{Resources/Software/msp430\_driverlib\_2\_91\_13\_01/examples/MSP430F5xx\_6xx/eusci\_a\_spi/eusci\_a\_spi\_ex1\_slave.c@{Resources/Software/msp430\_driverlib\_2\_91\_13\_01/examples/MSP430F5xx\_6xx/eusci\_a\_spi/eusci\_a\_spi\_ex1\_slave.c}}
{\ttfamily \#include \char`\"{}driverlib.\+h\char`\"{}}\newline
\doxysubsection*{Functions}
\begin{DoxyCompactItemize}
\item
void \mbox{\hyperlink{_m_s_p430_f5xx__6xx_2eusci__a__spi_2eusci__a__spi__ex1__slave_8c_a6288eba0f8e8ad3ab1544ad731eb7667}{main}} (void)
\item
void \mbox{\hyperlink{_m_s_p430_f5xx__6xx_2eusci__a__spi_2eusci__a__spi__ex1__slave_8c_a7d5728ccc412d2d610500fa338c2d003}{USCI\+\_\+\+A0\+\_\+\+ISR}} (void)
\end{DoxyCompactItemize}
\doxysubsection*{Variables}
\begin{DoxyCompactItemize}
\item
uint8\+\_\+t \mbox{\hyperlink{_m_s_p430_f5xx__6xx_2eusci__a__spi_2eusci__a__spi__ex1__slave_8c_ac23b8f721ac5b7a4315ba2c3409b9e0a}{transmit\+Data}} = 0x01
\item
uint8\+\_\+t \mbox{\hyperlink{_m_s_p430_f5xx__6xx_2eusci__a__spi_2eusci__a__spi__ex1__slave_8c_a216001f02f93a2c0b512c1b8724bdc60}{receive\+Data}} = 0x00
\end{DoxyCompactItemize}
\doxysubsection{Function Documentation}
\mbox{\Hypertarget{_m_s_p430_f5xx__6xx_2eusci__a__spi_2eusci__a__spi__ex1__slave_8c_a6288eba0f8e8ad3ab1544ad731eb7667}\label{_m_s_p430_f5xx__6xx_2eusci__a__spi_2eusci__a__spi__ex1__slave_8c_a6288eba0f8e8ad3ab1544ad731eb7667}}
\index{eusci\_a\_spi\_ex1\_slave.c@{eusci\_a\_spi\_ex1\_slave.c}!main@{main}}
\index{main@{main}!eusci\_a\_spi\_ex1\_slave.c@{eusci\_a\_spi\_ex1\_slave.c}}
\doxysubsubsection{\texorpdfstring{main()}{main()}}
{\footnotesize\ttfamily void main (\begin{DoxyParamCaption}\item[{void}]{ }\end{DoxyParamCaption})}
Definition at line 77 of file eusci\+\_\+a\+\_\+spi\+\_\+ex1\+\_\+slave.\+c.
References param.
\mbox{\Hypertarget{_m_s_p430_f5xx__6xx_2eusci__a__spi_2eusci__a__spi__ex1__slave_8c_a7d5728ccc412d2d610500fa338c2d003}\label{_m_s_p430_f5xx__6xx_2eusci__a__spi_2eusci__a__spi__ex1__slave_8c_a7d5728ccc412d2d610500fa338c2d003}}
\index{eusci\_a\_spi\_ex1\_slave.c@{eusci\_a\_spi\_ex1\_slave.c}!USCI\_A0\_ISR@{USCI\_A0\_ISR}}
\index{USCI\_A0\_ISR@{USCI\_A0\_ISR}!eusci\_a\_spi\_ex1\_slave.c@{eusci\_a\_spi\_ex1\_slave.c}}
\doxysubsubsection{\texorpdfstring{USCI\_A0\_ISR()}{USCI\_A0\_ISR()}}
{\footnotesize\ttfamily void USCI\+\_\+\+A0\+\_\+\+ISR (\begin{DoxyParamCaption}\item[{void}]{ }\end{DoxyParamCaption})}
Definition at line 122 of file eusci\+\_\+a\+\_\+spi\+\_\+ex1\+\_\+slave.\+c.
References receive\+Data, and transmit\+Data.
\doxysubsection{Variable Documentation}
\mbox{\Hypertarget{_m_s_p430_f5xx__6xx_2eusci__a__spi_2eusci__a__spi__ex1__slave_8c_a216001f02f93a2c0b512c1b8724bdc60}\label{_m_s_p430_f5xx__6xx_2eusci__a__spi_2eusci__a__spi__ex1__slave_8c_a216001f02f93a2c0b512c1b8724bdc60}}
\index{eusci\_a\_spi\_ex1\_slave.c@{eusci\_a\_spi\_ex1\_slave.c}!receiveData@{receiveData}}
\index{receiveData@{receiveData}!eusci\_a\_spi\_ex1\_slave.c@{eusci\_a\_spi\_ex1\_slave.c}}
\doxysubsubsection{\texorpdfstring{receiveData}{receiveData}}
{\footnotesize\ttfamily uint8\+\_\+t receive\+Data = 0x00}
Definition at line 75 of file eusci\+\_\+a\+\_\+spi\+\_\+ex1\+\_\+slave.\+c.
Referenced by USCI\+\_\+\+A0\+\_\+\+ISR().
\mbox{\Hypertarget{_m_s_p430_f5xx__6xx_2eusci__a__spi_2eusci__a__spi__ex1__slave_8c_ac23b8f721ac5b7a4315ba2c3409b9e0a}\label{_m_s_p430_f5xx__6xx_2eusci__a__spi_2eusci__a__spi__ex1__slave_8c_ac23b8f721ac5b7a4315ba2c3409b9e0a}}
\index{eusci\_a\_spi\_ex1\_slave.c@{eusci\_a\_spi\_ex1\_slave.c}!transmitData@{transmitData}}
\index{transmitData@{transmitData}!eusci\_a\_spi\_ex1\_slave.c@{eusci\_a\_spi\_ex1\_slave.c}}
\doxysubsubsection{\texorpdfstring{transmitData}{transmitData}}
{\footnotesize\ttfamily uint8\+\_\+t transmit\+Data = 0x01}
SPI slave talks to SPI master using 3-\/wire mode. Data is received from master and data from slave is then transmitted back to master. USCI RX ISR is used to handle communication, CPU normally in LPM4. Prior to initial data exchange, master pulses slaves RST for complete reset.
Use with eusci\+\_\+spi\+\_\+ex1\+\_\+master code example. If the slave is in debug mode, the reset signal from the master will conflict with slave\textquotesingle{}s JTAG; to work around, use IAR\textquotesingle{}s \char`\"{}\+Release JTAG on Go\char`\"{} on slave device. If breakpoints are set in slave RX ISR, master must stopped also to avoid overrunning slave RXBUF.\hypertarget{_m_s_p430_f5xx__6xx_2eusci__a__spi_2eusci__a__spi__ex1__slave_8c_autotoc_md39}{}\doxysubsubsection{Tesed on MSP430\+F67791A}\label{_m_s_p430_f5xx__6xx_2eusci__a__spi_2eusci__a__spi__ex1__slave_8c_autotoc_md39}
/$\vert$\textbackslash{} $\vert$ $\vert$ $\vert$ $\vert$ $\vert$ Master---+-\/$>$$\vert$\+RST $\vert$ $\vert$ $\vert$ $\vert$ P3.\+1$\vert$-\/$>$ Data Out (UCA0\+SIMO) $\vert$ $\vert$ $\vert$ P3.\+0$\vert$$<$-\/ Data In (UCA0\+SOMI) $\vert$ $\vert$ $\vert$ P3.\+2$\vert$$<$-\/ Serial Clock Out (UCA0\+CLK)
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 SPI peripheral
\item GPIO Port peripheral (for SPI pins)
\item UCS peripheral
\item UCA0\+SIMO
\item UCA0\+SOMI
\item UCA0\+CLK
\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 USCI\+\_\+\+A0\+\_\+\+VECTOR
\end{DoxyItemize}
Definition at line 75 of file eusci\+\_\+a\+\_\+spi\+\_\+ex1\+\_\+slave.\+c.
Referenced by USCI\+\_\+\+A0\+\_\+\+ISR().

View File

@@ -0,0 +1,132 @@
\hypertarget{_m_s_p430_f5xx__6xx_2eusci__a__uart_2eusci__a__uart__ex1__loopback_advanced_8c}{}\doxysection{Resources/\+Software/msp430\+\_\+driverlib\+\_\+2\+\_\+91\+\_\+13\+\_\+01/examples/\+MSP430\+F5xx\+\_\+6xx/eusci\+\_\+a\+\_\+uart/eusci\+\_\+a\+\_\+uart\+\_\+ex1\+\_\+loopback\+Advanced.c File Reference}
\label{_m_s_p430_f5xx__6xx_2eusci__a__uart_2eusci__a__uart__ex1__loopback_advanced_8c}\index{Resources/Software/msp430\_driverlib\_2\_91\_13\_01/examples/MSP430F5xx\_6xx/eusci\_a\_uart/eusci\_a\_uart\_ex1\_loopbackAdvanced.c@{Resources/Software/msp430\_driverlib\_2\_91\_13\_01/examples/MSP430F5xx\_6xx/eusci\_a\_uart/eusci\_a\_uart\_ex1\_loopbackAdvanced.c}}
{\ttfamily \#include \char`\"{}driverlib.\+h\char`\"{}}\newline
\doxysubsection*{Functions}
\begin{DoxyCompactItemize}
\item
void \mbox{\hyperlink{_m_s_p430_f5xx__6xx_2eusci__a__uart_2eusci__a__uart__ex1__loopback_advanced_8c_a6288eba0f8e8ad3ab1544ad731eb7667}{main}} (void)
\item
void \mbox{\hyperlink{_m_s_p430_f5xx__6xx_2eusci__a__uart_2eusci__a__uart__ex1__loopback_advanced_8c_a06404fa75e5db173d0570112cbb0d39a}{EUSCI\+\_\+\+A0\+\_\+\+ISR}} (void)
\end{DoxyCompactItemize}
\doxysubsection*{Variables}
\begin{DoxyCompactItemize}
\item
uint16\+\_\+t \mbox{\hyperlink{_m_s_p430_f5xx__6xx_2eusci__a__uart_2eusci__a__uart__ex1__loopback_advanced_8c_a78f7a37dba921e0b0347b960fb40bc51}{i}}
\item
uint8\+\_\+t \mbox{\hyperlink{_m_s_p430_f5xx__6xx_2eusci__a__uart_2eusci__a__uart__ex1__loopback_advanced_8c_a597ef8ed788642728c57f66b3a21544f}{RXData}} = 0
\item
uint8\+\_\+t \mbox{\hyperlink{_m_s_p430_f5xx__6xx_2eusci__a__uart_2eusci__a__uart__ex1__loopback_advanced_8c_ae369b896b0180297d61764643f99ba25}{TXData}} = 0
\item
uint8\+\_\+t \mbox{\hyperlink{_m_s_p430_f5xx__6xx_2eusci__a__uart_2eusci__a__uart__ex1__loopback_advanced_8c_ad47d5b159b4c95a163edac9d1b659751}{check}} = 0
\end{DoxyCompactItemize}
\doxysubsection{Function Documentation}
\mbox{\Hypertarget{_m_s_p430_f5xx__6xx_2eusci__a__uart_2eusci__a__uart__ex1__loopback_advanced_8c_a06404fa75e5db173d0570112cbb0d39a}\label{_m_s_p430_f5xx__6xx_2eusci__a__uart_2eusci__a__uart__ex1__loopback_advanced_8c_a06404fa75e5db173d0570112cbb0d39a}}
\index{eusci\_a\_uart\_ex1\_loopbackAdvanced.c@{eusci\_a\_uart\_ex1\_loopbackAdvanced.c}!EUSCI\_A0\_ISR@{EUSCI\_A0\_ISR}}
\index{EUSCI\_A0\_ISR@{EUSCI\_A0\_ISR}!eusci\_a\_uart\_ex1\_loopbackAdvanced.c@{eusci\_a\_uart\_ex1\_loopbackAdvanced.c}}
\doxysubsubsection{\texorpdfstring{EUSCI\_A0\_ISR()}{EUSCI\_A0\_ISR()}}
{\footnotesize\ttfamily void EUSCI\+\_\+\+A0\+\_\+\+ISR (\begin{DoxyParamCaption}\item[{void}]{ }\end{DoxyParamCaption})}
Definition at line 134 of file eusci\+\_\+a\+\_\+uart\+\_\+ex1\+\_\+loopback\+Advanced.\+c.
References check, RXData, and TXData.
\mbox{\Hypertarget{_m_s_p430_f5xx__6xx_2eusci__a__uart_2eusci__a__uart__ex1__loopback_advanced_8c_a6288eba0f8e8ad3ab1544ad731eb7667}\label{_m_s_p430_f5xx__6xx_2eusci__a__uart_2eusci__a__uart__ex1__loopback_advanced_8c_a6288eba0f8e8ad3ab1544ad731eb7667}}
\index{eusci\_a\_uart\_ex1\_loopbackAdvanced.c@{eusci\_a\_uart\_ex1\_loopbackAdvanced.c}!main@{main}}
\index{main@{main}!eusci\_a\_uart\_ex1\_loopbackAdvanced.c@{eusci\_a\_uart\_ex1\_loopbackAdvanced.c}}
\doxysubsubsection{\texorpdfstring{main()}{main()}}
{\footnotesize\ttfamily void main (\begin{DoxyParamCaption}\item[{void}]{ }\end{DoxyParamCaption})}
Definition at line 68 of file eusci\+\_\+a\+\_\+uart\+\_\+ex1\+\_\+loopback\+Advanced.\+c.
References check, param, STATUS\+\_\+\+FAIL, and TXData.
\doxysubsection{Variable Documentation}
\mbox{\Hypertarget{_m_s_p430_f5xx__6xx_2eusci__a__uart_2eusci__a__uart__ex1__loopback_advanced_8c_ad47d5b159b4c95a163edac9d1b659751}\label{_m_s_p430_f5xx__6xx_2eusci__a__uart_2eusci__a__uart__ex1__loopback_advanced_8c_ad47d5b159b4c95a163edac9d1b659751}}
\index{eusci\_a\_uart\_ex1\_loopbackAdvanced.c@{eusci\_a\_uart\_ex1\_loopbackAdvanced.c}!check@{check}}
\index{check@{check}!eusci\_a\_uart\_ex1\_loopbackAdvanced.c@{eusci\_a\_uart\_ex1\_loopbackAdvanced.c}}
\doxysubsubsection{\texorpdfstring{check}{check}}
{\footnotesize\ttfamily uint8\+\_\+t check = 0}
Definition at line 66 of file eusci\+\_\+a\+\_\+uart\+\_\+ex1\+\_\+loopback\+Advanced.\+c.
Referenced by EUSCI\+\_\+\+A0\+\_\+\+ISR(), main(), and USCI\+\_\+\+A0\+\_\+\+ISR().
\mbox{\Hypertarget{_m_s_p430_f5xx__6xx_2eusci__a__uart_2eusci__a__uart__ex1__loopback_advanced_8c_a78f7a37dba921e0b0347b960fb40bc51}\label{_m_s_p430_f5xx__6xx_2eusci__a__uart_2eusci__a__uart__ex1__loopback_advanced_8c_a78f7a37dba921e0b0347b960fb40bc51}}
\index{eusci\_a\_uart\_ex1\_loopbackAdvanced.c@{eusci\_a\_uart\_ex1\_loopbackAdvanced.c}!i@{i}}
\index{i@{i}!eusci\_a\_uart\_ex1\_loopbackAdvanced.c@{eusci\_a\_uart\_ex1\_loopbackAdvanced.c}}
\doxysubsubsection{\texorpdfstring{i}{i}}
{\footnotesize\ttfamily uint16\+\_\+t i}
EUSCI\+\_\+\+A0 External Loopback test using EUSCI\+\_\+\+A\+\_\+\+UART\+\_\+init API
Description\+: This demo connects TX to RX of the MSP430 UART The example code shows proper initialization of registers and interrupts to receive and transmit data.
ACLK = BRCLK = 32.\+768k\+Hz, MCLK = SMCLK = DCO/8 = $\sim$1\+MHz
\begin{DoxyVerb} Tested on MSP430F67791A
-----------------
RST -| P3.0/UCA0RXD|----|
| | |
| | |
| P3.1/UCA0TXD|----|
| |
\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 UART peripheral
\item GPIO Port peripheral (for UART pins)
\item UCA0\+TXD
\item UCA0\+RXD
\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 USCI\+\_\+\+A0\+\_\+\+VECTOR.
\end{DoxyItemize}
Definition at line 64 of file eusci\+\_\+a\+\_\+uart\+\_\+ex1\+\_\+loopback\+Advanced.\+c.
\mbox{\Hypertarget{_m_s_p430_f5xx__6xx_2eusci__a__uart_2eusci__a__uart__ex1__loopback_advanced_8c_a597ef8ed788642728c57f66b3a21544f}\label{_m_s_p430_f5xx__6xx_2eusci__a__uart_2eusci__a__uart__ex1__loopback_advanced_8c_a597ef8ed788642728c57f66b3a21544f}}
\index{eusci\_a\_uart\_ex1\_loopbackAdvanced.c@{eusci\_a\_uart\_ex1\_loopbackAdvanced.c}!RXData@{RXData}}
\index{RXData@{RXData}!eusci\_a\_uart\_ex1\_loopbackAdvanced.c@{eusci\_a\_uart\_ex1\_loopbackAdvanced.c}}
\doxysubsubsection{\texorpdfstring{RXData}{RXData}}
{\footnotesize\ttfamily uint8\+\_\+t RXData = 0}
Definition at line 65 of file eusci\+\_\+a\+\_\+uart\+\_\+ex1\+\_\+loopback\+Advanced.\+c.
Referenced by EUSCI\+\_\+\+A0\+\_\+\+ISR(), and USCI\+\_\+\+A0\+\_\+\+ISR().
\mbox{\Hypertarget{_m_s_p430_f5xx__6xx_2eusci__a__uart_2eusci__a__uart__ex1__loopback_advanced_8c_ae369b896b0180297d61764643f99ba25}\label{_m_s_p430_f5xx__6xx_2eusci__a__uart_2eusci__a__uart__ex1__loopback_advanced_8c_ae369b896b0180297d61764643f99ba25}}
\index{eusci\_a\_uart\_ex1\_loopbackAdvanced.c@{eusci\_a\_uart\_ex1\_loopbackAdvanced.c}!TXData@{TXData}}
\index{TXData@{TXData}!eusci\_a\_uart\_ex1\_loopbackAdvanced.c@{eusci\_a\_uart\_ex1\_loopbackAdvanced.c}}
\doxysubsubsection{\texorpdfstring{TXData}{TXData}}
{\footnotesize\ttfamily uint8\+\_\+t TXData = 0}
Definition at line 65 of file eusci\+\_\+a\+\_\+uart\+\_\+ex1\+\_\+loopback\+Advanced.\+c.
Referenced by EUSCI\+\_\+\+A0\+\_\+\+ISR(), main(), and USCI\+\_\+\+A0\+\_\+\+ISR().

View File

@@ -0,0 +1,93 @@
\hypertarget{_m_s_p430_f5xx__6xx_2eusci__b__i2c_2eusci__b__i2c__ex1__master_rx_multiple_8c}{}\doxysection{Resources/\+Software/msp430\+\_\+driverlib\+\_\+2\+\_\+91\+\_\+13\+\_\+01/examples/\+MSP430\+F5xx\+\_\+6xx/eusci\+\_\+b\+\_\+i2c/eusci\+\_\+b\+\_\+i2c\+\_\+ex1\+\_\+master\+Rx\+Multiple.c File Reference}
\label{_m_s_p430_f5xx__6xx_2eusci__b__i2c_2eusci__b__i2c__ex1__master_rx_multiple_8c}\index{Resources/Software/msp430\_driverlib\_2\_91\_13\_01/examples/MSP430F5xx\_6xx/eusci\_b\_i2c/eusci\_b\_i2c\_ex1\_masterRxMultiple.c@{Resources/Software/msp430\_driverlib\_2\_91\_13\_01/examples/MSP430F5xx\_6xx/eusci\_b\_i2c/eusci\_b\_i2c\_ex1\_masterRxMultiple.c}}
{\ttfamily \#include \char`\"{}driverlib.\+h\char`\"{}}\newline
\doxysubsection*{Macros}
\begin{DoxyCompactItemize}
\item
\#define \mbox{\hyperlink{_m_s_p430_f5xx__6xx_2eusci__b__i2c_2eusci__b__i2c__ex1__master_rx_multiple_8c_ae2f0ff6faf548539a21b93a034e278e8}{SLAVE\+\_\+\+ADDRESS}}~0x48
\item
\#define \mbox{\hyperlink{_m_s_p430_f5xx__6xx_2eusci__b__i2c_2eusci__b__i2c__ex1__master_rx_multiple_8c_a70033793a4008a84a5022c8e8467c71b}{RXCOUNT}}~0x05
\end{DoxyCompactItemize}
\doxysubsection*{Functions}
\begin{DoxyCompactItemize}
\item
void \mbox{\hyperlink{_m_s_p430_f5xx__6xx_2eusci__b__i2c_2eusci__b__i2c__ex1__master_rx_multiple_8c_a6288eba0f8e8ad3ab1544ad731eb7667}{main}} (void)
\item
void \mbox{\hyperlink{_m_s_p430_f5xx__6xx_2eusci__b__i2c_2eusci__b__i2c__ex1__master_rx_multiple_8c_a600430c0372d4ed0b67dfd6cb63d4560}{USCIB0\+\_\+\+ISR}} (void)
\end{DoxyCompactItemize}
\doxysubsection*{Variables}
\begin{DoxyCompactItemize}
\item
uint8\+\_\+t \mbox{\hyperlink{_m_s_p430_f5xx__6xx_2eusci__b__i2c_2eusci__b__i2c__ex1__master_rx_multiple_8c_a597ef8ed788642728c57f66b3a21544f}{RXData}}
\end{DoxyCompactItemize}
\doxysubsection{Macro Definition Documentation}
\mbox{\Hypertarget{_m_s_p430_f5xx__6xx_2eusci__b__i2c_2eusci__b__i2c__ex1__master_rx_multiple_8c_a70033793a4008a84a5022c8e8467c71b}\label{_m_s_p430_f5xx__6xx_2eusci__b__i2c_2eusci__b__i2c__ex1__master_rx_multiple_8c_a70033793a4008a84a5022c8e8467c71b}}
\index{eusci\_b\_i2c\_ex1\_masterRxMultiple.c@{eusci\_b\_i2c\_ex1\_masterRxMultiple.c}!RXCOUNT@{RXCOUNT}}
\index{RXCOUNT@{RXCOUNT}!eusci\_b\_i2c\_ex1\_masterRxMultiple.c@{eusci\_b\_i2c\_ex1\_masterRxMultiple.c}}
\doxysubsubsection{\texorpdfstring{RXCOUNT}{RXCOUNT}}
{\footnotesize\ttfamily \#define RXCOUNT~0x05}
Definition at line 52 of file eusci\+\_\+b\+\_\+i2c\+\_\+ex1\+\_\+master\+Rx\+Multiple.\+c.
\mbox{\Hypertarget{_m_s_p430_f5xx__6xx_2eusci__b__i2c_2eusci__b__i2c__ex1__master_rx_multiple_8c_ae2f0ff6faf548539a21b93a034e278e8}\label{_m_s_p430_f5xx__6xx_2eusci__b__i2c_2eusci__b__i2c__ex1__master_rx_multiple_8c_ae2f0ff6faf548539a21b93a034e278e8}}
\index{eusci\_b\_i2c\_ex1\_masterRxMultiple.c@{eusci\_b\_i2c\_ex1\_masterRxMultiple.c}!SLAVE\_ADDRESS@{SLAVE\_ADDRESS}}
\index{SLAVE\_ADDRESS@{SLAVE\_ADDRESS}!eusci\_b\_i2c\_ex1\_masterRxMultiple.c@{eusci\_b\_i2c\_ex1\_masterRxMultiple.c}}
\doxysubsubsection{\texorpdfstring{SLAVE\_ADDRESS}{SLAVE\_ADDRESS}}
{\footnotesize\ttfamily \#define SLAVE\+\_\+\+ADDRESS~0x48}
Definition at line 45 of file eusci\+\_\+b\+\_\+i2c\+\_\+ex1\+\_\+master\+Rx\+Multiple.\+c.
\doxysubsection{Function Documentation}
\mbox{\Hypertarget{_m_s_p430_f5xx__6xx_2eusci__b__i2c_2eusci__b__i2c__ex1__master_rx_multiple_8c_a6288eba0f8e8ad3ab1544ad731eb7667}\label{_m_s_p430_f5xx__6xx_2eusci__b__i2c_2eusci__b__i2c__ex1__master_rx_multiple_8c_a6288eba0f8e8ad3ab1544ad731eb7667}}
\index{eusci\_b\_i2c\_ex1\_masterRxMultiple.c@{eusci\_b\_i2c\_ex1\_masterRxMultiple.c}!main@{main}}
\index{main@{main}!eusci\_b\_i2c\_ex1\_masterRxMultiple.c@{eusci\_b\_i2c\_ex1\_masterRxMultiple.c}}
\doxysubsubsection{\texorpdfstring{main()}{main()}}
{\footnotesize\ttfamily void main (\begin{DoxyParamCaption}\item[{void}]{ }\end{DoxyParamCaption})}
Definition at line 75 of file eusci\+\_\+b\+\_\+i2c\+\_\+ex1\+\_\+master\+Rx\+Multiple.\+c.
References \+\_\+\+\_\+delay\+\_\+cycles(), param, RXCOUNT, and SLAVE\+\_\+\+ADDRESS.
\mbox{\Hypertarget{_m_s_p430_f5xx__6xx_2eusci__b__i2c_2eusci__b__i2c__ex1__master_rx_multiple_8c_a600430c0372d4ed0b67dfd6cb63d4560}\label{_m_s_p430_f5xx__6xx_2eusci__b__i2c_2eusci__b__i2c__ex1__master_rx_multiple_8c_a600430c0372d4ed0b67dfd6cb63d4560}}
\index{eusci\_b\_i2c\_ex1\_masterRxMultiple.c@{eusci\_b\_i2c\_ex1\_masterRxMultiple.c}!USCIB0\_ISR@{USCIB0\_ISR}}
\index{USCIB0\_ISR@{USCIB0\_ISR}!eusci\_b\_i2c\_ex1\_masterRxMultiple.c@{eusci\_b\_i2c\_ex1\_masterRxMultiple.c}}
\doxysubsubsection{\texorpdfstring{USCIB0\_ISR()}{USCIB0\_ISR()}}
{\footnotesize\ttfamily void USCIB0\+\_\+\+ISR (\begin{DoxyParamCaption}\item[{void}]{ }\end{DoxyParamCaption})}
Definition at line 150 of file eusci\+\_\+b\+\_\+i2c\+\_\+ex1\+\_\+master\+Rx\+Multiple.\+c.
References \+\_\+\+\_\+bic\+\_\+\+SR\+\_\+register\+\_\+on\+\_\+exit(), RXCOUNT, and RXData.
\doxysubsection{Variable Documentation}
\mbox{\Hypertarget{_m_s_p430_f5xx__6xx_2eusci__b__i2c_2eusci__b__i2c__ex1__master_rx_multiple_8c_a597ef8ed788642728c57f66b3a21544f}\label{_m_s_p430_f5xx__6xx_2eusci__b__i2c_2eusci__b__i2c__ex1__master_rx_multiple_8c_a597ef8ed788642728c57f66b3a21544f}}
\index{eusci\_b\_i2c\_ex1\_masterRxMultiple.c@{eusci\_b\_i2c\_ex1\_masterRxMultiple.c}!RXData@{RXData}}
\index{RXData@{RXData}!eusci\_b\_i2c\_ex1\_masterRxMultiple.c@{eusci\_b\_i2c\_ex1\_masterRxMultiple.c}}
\doxysubsubsection{\texorpdfstring{RXData}{RXData}}
{\footnotesize\ttfamily uint8\+\_\+t RXData}
Definition at line 74 of file eusci\+\_\+b\+\_\+i2c\+\_\+ex1\+\_\+master\+Rx\+Multiple.\+c.
Referenced by USCIB0\+\_\+\+ISR().

View File

@@ -0,0 +1,99 @@
\hypertarget{_m_s_p430_f5xx__6xx_2eusci__b__i2c_2eusci__b__i2c__ex1__slave_tx_multiple_8c}{}\doxysection{Resources/\+Software/msp430\+\_\+driverlib\+\_\+2\+\_\+91\+\_\+13\+\_\+01/examples/\+MSP430\+F5xx\+\_\+6xx/eusci\+\_\+b\+\_\+i2c/eusci\+\_\+b\+\_\+i2c\+\_\+ex1\+\_\+slave\+Tx\+Multiple.c File Reference}
\label{_m_s_p430_f5xx__6xx_2eusci__b__i2c_2eusci__b__i2c__ex1__slave_tx_multiple_8c}\index{Resources/Software/msp430\_driverlib\_2\_91\_13\_01/examples/MSP430F5xx\_6xx/eusci\_b\_i2c/eusci\_b\_i2c\_ex1\_slaveTxMultiple.c@{Resources/Software/msp430\_driverlib\_2\_91\_13\_01/examples/MSP430F5xx\_6xx/eusci\_b\_i2c/eusci\_b\_i2c\_ex1\_slaveTxMultiple.c}}
{\ttfamily \#include \char`\"{}driverlib.\+h\char`\"{}}\newline
\doxysubsection*{Macros}
\begin{DoxyCompactItemize}
\item
\#define \mbox{\hyperlink{_m_s_p430_f5xx__6xx_2eusci__b__i2c_2eusci__b__i2c__ex1__slave_tx_multiple_8c_ae2f0ff6faf548539a21b93a034e278e8}{SLAVE\+\_\+\+ADDRESS}}~0x48
\end{DoxyCompactItemize}
\doxysubsection*{Functions}
\begin{DoxyCompactItemize}
\item
void \mbox{\hyperlink{_m_s_p430_f5xx__6xx_2eusci__b__i2c_2eusci__b__i2c__ex1__slave_tx_multiple_8c_a6288eba0f8e8ad3ab1544ad731eb7667}{main}} (void)
\item
void \mbox{\hyperlink{_m_s_p430_f5xx__6xx_2eusci__b__i2c_2eusci__b__i2c__ex1__slave_tx_multiple_8c_a600430c0372d4ed0b67dfd6cb63d4560}{USCIB0\+\_\+\+ISR}} (void)
\end{DoxyCompactItemize}
\doxysubsection*{Variables}
\begin{DoxyCompactItemize}
\item
uint8\+\_\+t \mbox{\hyperlink{_m_s_p430_f5xx__6xx_2eusci__b__i2c_2eusci__b__i2c__ex1__slave_tx_multiple_8c_ae369b896b0180297d61764643f99ba25}{TXData}} = 0
\end{DoxyCompactItemize}
\doxysubsection{Macro Definition Documentation}
\mbox{\Hypertarget{_m_s_p430_f5xx__6xx_2eusci__b__i2c_2eusci__b__i2c__ex1__slave_tx_multiple_8c_ae2f0ff6faf548539a21b93a034e278e8}\label{_m_s_p430_f5xx__6xx_2eusci__b__i2c_2eusci__b__i2c__ex1__slave_tx_multiple_8c_ae2f0ff6faf548539a21b93a034e278e8}}
\index{eusci\_b\_i2c\_ex1\_slaveTxMultiple.c@{eusci\_b\_i2c\_ex1\_slaveTxMultiple.c}!SLAVE\_ADDRESS@{SLAVE\_ADDRESS}}
\index{SLAVE\_ADDRESS@{SLAVE\_ADDRESS}!eusci\_b\_i2c\_ex1\_slaveTxMultiple.c@{eusci\_b\_i2c\_ex1\_slaveTxMultiple.c}}
\doxysubsubsection{\texorpdfstring{SLAVE\_ADDRESS}{SLAVE\_ADDRESS}}
{\footnotesize\ttfamily \#define SLAVE\+\_\+\+ADDRESS~0x48}
EUSCI\+\_\+\+B0 I2C Slave TX multiple bytes to MSP430 Master
Description\+: This demo connects two MSP430\textquotesingle{}s via the I2C bus. The master reads from the slave. This is the SLAVE code. The TX data begins at 0 and is incremented each time it is sent. A stop condition is used as a trigger to initialize the outgoing data. The USCI\+\_\+\+B0 TX interrupt is used to know when to TX. Tested on MSP430\+F67791A \begin{DoxyVerb} /|\ /|\
10k 10k
\end{DoxyVerb}
slave $\vert$ $\vert$ master -\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/--- $\vert$ $\vert$ -\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/--- -\/$\vert$\+XIN P2.\+6/\+UCB0\+SDA$\vert$$<$-\/$\vert$-\/---+-\/$>$$\vert$\+P2.6/\+UCB0\+SDA XIN$\vert$-\/ $\vert$ $\vert$ $\vert$ $\vert$ $\vert$ -\/$\vert$\+XOUT $\vert$ $\vert$ $\vert$ XOUT$\vert$-\/ $\vert$ P2.\+5/\+UCB0\+SCL$\vert$$<$-\/+-\/-\/-\/---$>$$\vert$\+P2.5/\+UCB0\+SCL $\vert$ $\vert$ $\vert$ $\vert$ $\vert$
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 I2C peripheral
\item GPIO Port peripheral (for I2C pins)
\item SCL2
\item SDA
\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 USCI\+\_\+\+B0\+\_\+\+VECTOR.
\end{DoxyItemize}
Definition at line 81 of file eusci\+\_\+b\+\_\+i2c\+\_\+ex1\+\_\+slave\+Tx\+Multiple.\+c.
\doxysubsection{Function Documentation}
\mbox{\Hypertarget{_m_s_p430_f5xx__6xx_2eusci__b__i2c_2eusci__b__i2c__ex1__slave_tx_multiple_8c_a6288eba0f8e8ad3ab1544ad731eb7667}\label{_m_s_p430_f5xx__6xx_2eusci__b__i2c_2eusci__b__i2c__ex1__slave_tx_multiple_8c_a6288eba0f8e8ad3ab1544ad731eb7667}}
\index{eusci\_b\_i2c\_ex1\_slaveTxMultiple.c@{eusci\_b\_i2c\_ex1\_slaveTxMultiple.c}!main@{main}}
\index{main@{main}!eusci\_b\_i2c\_ex1\_slaveTxMultiple.c@{eusci\_b\_i2c\_ex1\_slaveTxMultiple.c}}
\doxysubsubsection{\texorpdfstring{main()}{main()}}
{\footnotesize\ttfamily void main (\begin{DoxyParamCaption}\item[{void}]{ }\end{DoxyParamCaption})}
Definition at line 85 of file eusci\+\_\+b\+\_\+i2c\+\_\+ex1\+\_\+slave\+Tx\+Multiple.\+c.
References \+\_\+\+\_\+no\+\_\+operation(), and param.
\mbox{\Hypertarget{_m_s_p430_f5xx__6xx_2eusci__b__i2c_2eusci__b__i2c__ex1__slave_tx_multiple_8c_a600430c0372d4ed0b67dfd6cb63d4560}\label{_m_s_p430_f5xx__6xx_2eusci__b__i2c_2eusci__b__i2c__ex1__slave_tx_multiple_8c_a600430c0372d4ed0b67dfd6cb63d4560}}
\index{eusci\_b\_i2c\_ex1\_slaveTxMultiple.c@{eusci\_b\_i2c\_ex1\_slaveTxMultiple.c}!USCIB0\_ISR@{USCIB0\_ISR}}
\index{USCIB0\_ISR@{USCIB0\_ISR}!eusci\_b\_i2c\_ex1\_slaveTxMultiple.c@{eusci\_b\_i2c\_ex1\_slaveTxMultiple.c}}
\doxysubsubsection{\texorpdfstring{USCIB0\_ISR()}{USCIB0\_ISR()}}
{\footnotesize\ttfamily void USCIB0\+\_\+\+ISR (\begin{DoxyParamCaption}\item[{void}]{ }\end{DoxyParamCaption})}
Definition at line 125 of file eusci\+\_\+b\+\_\+i2c\+\_\+ex1\+\_\+slave\+Tx\+Multiple.\+c.
References TXData.
\doxysubsection{Variable Documentation}
\mbox{\Hypertarget{_m_s_p430_f5xx__6xx_2eusci__b__i2c_2eusci__b__i2c__ex1__slave_tx_multiple_8c_ae369b896b0180297d61764643f99ba25}\label{_m_s_p430_f5xx__6xx_2eusci__b__i2c_2eusci__b__i2c__ex1__slave_tx_multiple_8c_ae369b896b0180297d61764643f99ba25}}
\index{eusci\_b\_i2c\_ex1\_slaveTxMultiple.c@{eusci\_b\_i2c\_ex1\_slaveTxMultiple.c}!TXData@{TXData}}
\index{TXData@{TXData}!eusci\_b\_i2c\_ex1\_slaveTxMultiple.c@{eusci\_b\_i2c\_ex1\_slaveTxMultiple.c}}
\doxysubsubsection{\texorpdfstring{TXData}{TXData}}
{\footnotesize\ttfamily uint8\+\_\+t TXData = 0}
Definition at line 83 of file eusci\+\_\+b\+\_\+i2c\+\_\+ex1\+\_\+slave\+Tx\+Multiple.\+c.
Referenced by USCIB0\+\_\+\+ISR().

View File

@@ -0,0 +1,88 @@
\hypertarget{_m_s_p430_f5xx__6xx_2eusci__b__i2c_2eusci__b__i2c__ex2__master_rx_single_8c}{}\doxysection{Resources/\+Software/msp430\+\_\+driverlib\+\_\+2\+\_\+91\+\_\+13\+\_\+01/examples/\+MSP430\+F5xx\+\_\+6xx/eusci\+\_\+b\+\_\+i2c/eusci\+\_\+b\+\_\+i2c\+\_\+ex2\+\_\+master\+Rx\+Single.c File Reference}
\label{_m_s_p430_f5xx__6xx_2eusci__b__i2c_2eusci__b__i2c__ex2__master_rx_single_8c}\index{Resources/Software/msp430\_driverlib\_2\_91\_13\_01/examples/MSP430F5xx\_6xx/eusci\_b\_i2c/eusci\_b\_i2c\_ex2\_masterRxSingle.c@{Resources/Software/msp430\_driverlib\_2\_91\_13\_01/examples/MSP430F5xx\_6xx/eusci\_b\_i2c/eusci\_b\_i2c\_ex2\_masterRxSingle.c}}
{\ttfamily \#include \char`\"{}driverlib.\+h\char`\"{}}\newline
\doxysubsection*{Macros}
\begin{DoxyCompactItemize}
\item
\#define \mbox{\hyperlink{_m_s_p430_f5xx__6xx_2eusci__b__i2c_2eusci__b__i2c__ex2__master_rx_single_8c_ae2f0ff6faf548539a21b93a034e278e8}{SLAVE\+\_\+\+ADDRESS}}~0x48
\end{DoxyCompactItemize}
\doxysubsection*{Functions}
\begin{DoxyCompactItemize}
\item
void \mbox{\hyperlink{_m_s_p430_f5xx__6xx_2eusci__b__i2c_2eusci__b__i2c__ex2__master_rx_single_8c_a6288eba0f8e8ad3ab1544ad731eb7667}{main}} (void)
\end{DoxyCompactItemize}
\doxysubsection*{Variables}
\begin{DoxyCompactItemize}
\item
uint8\+\_\+t \mbox{\hyperlink{_m_s_p430_f5xx__6xx_2eusci__b__i2c_2eusci__b__i2c__ex2__master_rx_single_8c_a597ef8ed788642728c57f66b3a21544f}{RXData}}
\end{DoxyCompactItemize}
\doxysubsection{Macro Definition Documentation}
\mbox{\Hypertarget{_m_s_p430_f5xx__6xx_2eusci__b__i2c_2eusci__b__i2c__ex2__master_rx_single_8c_ae2f0ff6faf548539a21b93a034e278e8}\label{_m_s_p430_f5xx__6xx_2eusci__b__i2c_2eusci__b__i2c__ex2__master_rx_single_8c_ae2f0ff6faf548539a21b93a034e278e8}}
\index{eusci\_b\_i2c\_ex2\_masterRxSingle.c@{eusci\_b\_i2c\_ex2\_masterRxSingle.c}!SLAVE\_ADDRESS@{SLAVE\_ADDRESS}}
\index{SLAVE\_ADDRESS@{SLAVE\_ADDRESS}!eusci\_b\_i2c\_ex2\_masterRxSingle.c@{eusci\_b\_i2c\_ex2\_masterRxSingle.c}}
\doxysubsubsection{\texorpdfstring{SLAVE\_ADDRESS}{SLAVE\_ADDRESS}}
{\footnotesize\ttfamily \#define SLAVE\+\_\+\+ADDRESS~0x48}
This example shows how to configure the I2C module as a master for single byte reception in interrupt driven mode. The address of the slave module that the master is communicating with also set in this example.
Description\+: This demo connects two MSP430\textquotesingle{}s via the I2C bus. The master reads from the slave. This is the MASTER CODE. The data from the slave transmitter begins at 0 and increments with each transfer. The USCI\+\_\+\+B0 RX interrupt is used to know when new data has been received. ACLK = n/a, MCLK = SMCLK = BRCLK = DCO = 1MHz \begin{DoxyVerb} /|\ /|\
MSP430F67791A 10k 10k MSP430F67791A
slave | | master
----------------- | | -----------------
-|XIN P2.6/UCB0SDA|<-|----+->|P2.6/UCB0SDA XIN|-
| | | | | 32kHz
-|XOUT | | | XOUT|-
| P2.5/UCB0SCL|<-+------>|P2.5/UCB0SCL |
| | | P1.0|--> LED
\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 I2C peripheral
\item GPIO Port peripheral (for I2C pins)
\item SCL2
\item SDA
\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 USCI\+\_\+\+B0\+\_\+\+VECTOR.
\end{DoxyItemize}
Definition at line 82 of file eusci\+\_\+b\+\_\+i2c\+\_\+ex2\+\_\+master\+Rx\+Single.\+c.
\doxysubsection{Function Documentation}
\mbox{\Hypertarget{_m_s_p430_f5xx__6xx_2eusci__b__i2c_2eusci__b__i2c__ex2__master_rx_single_8c_a6288eba0f8e8ad3ab1544ad731eb7667}\label{_m_s_p430_f5xx__6xx_2eusci__b__i2c_2eusci__b__i2c__ex2__master_rx_single_8c_a6288eba0f8e8ad3ab1544ad731eb7667}}
\index{eusci\_b\_i2c\_ex2\_masterRxSingle.c@{eusci\_b\_i2c\_ex2\_masterRxSingle.c}!main@{main}}
\index{main@{main}!eusci\_b\_i2c\_ex2\_masterRxSingle.c@{eusci\_b\_i2c\_ex2\_masterRxSingle.c}}
\doxysubsubsection{\texorpdfstring{main()}{main()}}
{\footnotesize\ttfamily void main (\begin{DoxyParamCaption}\item[{void}]{ }\end{DoxyParamCaption})}
Definition at line 85 of file eusci\+\_\+b\+\_\+i2c\+\_\+ex2\+\_\+master\+Rx\+Single.\+c.
References \+\_\+\+\_\+delay\+\_\+cycles(), param, RXData, and SLAVE\+\_\+\+ADDRESS.
\doxysubsection{Variable Documentation}
\mbox{\Hypertarget{_m_s_p430_f5xx__6xx_2eusci__b__i2c_2eusci__b__i2c__ex2__master_rx_single_8c_a597ef8ed788642728c57f66b3a21544f}\label{_m_s_p430_f5xx__6xx_2eusci__b__i2c_2eusci__b__i2c__ex2__master_rx_single_8c_a597ef8ed788642728c57f66b3a21544f}}
\index{eusci\_b\_i2c\_ex2\_masterRxSingle.c@{eusci\_b\_i2c\_ex2\_masterRxSingle.c}!RXData@{RXData}}
\index{RXData@{RXData}!eusci\_b\_i2c\_ex2\_masterRxSingle.c@{eusci\_b\_i2c\_ex2\_masterRxSingle.c}}
\doxysubsubsection{\texorpdfstring{RXData}{RXData}}
{\footnotesize\ttfamily uint8\+\_\+t RXData}
Definition at line 84 of file eusci\+\_\+b\+\_\+i2c\+\_\+ex2\+\_\+master\+Rx\+Single.\+c.
Referenced by main().

View File

@@ -0,0 +1,97 @@
\hypertarget{_m_s_p430_f5xx__6xx_2eusci__b__i2c_2eusci__b__i2c__ex2__slave_tx_single_8c}{}\doxysection{Resources/\+Software/msp430\+\_\+driverlib\+\_\+2\+\_\+91\+\_\+13\+\_\+01/examples/\+MSP430\+F5xx\+\_\+6xx/eusci\+\_\+b\+\_\+i2c/eusci\+\_\+b\+\_\+i2c\+\_\+ex2\+\_\+slave\+Tx\+Single.c File Reference}
\label{_m_s_p430_f5xx__6xx_2eusci__b__i2c_2eusci__b__i2c__ex2__slave_tx_single_8c}\index{Resources/Software/msp430\_driverlib\_2\_91\_13\_01/examples/MSP430F5xx\_6xx/eusci\_b\_i2c/eusci\_b\_i2c\_ex2\_slaveTxSingle.c@{Resources/Software/msp430\_driverlib\_2\_91\_13\_01/examples/MSP430F5xx\_6xx/eusci\_b\_i2c/eusci\_b\_i2c\_ex2\_slaveTxSingle.c}}
{\ttfamily \#include \char`\"{}driverlib.\+h\char`\"{}}\newline
\doxysubsection*{Macros}
\begin{DoxyCompactItemize}
\item
\#define \mbox{\hyperlink{_m_s_p430_f5xx__6xx_2eusci__b__i2c_2eusci__b__i2c__ex2__slave_tx_single_8c_ae2f0ff6faf548539a21b93a034e278e8}{SLAVE\+\_\+\+ADDRESS}}~0x48
\end{DoxyCompactItemize}
\doxysubsection*{Functions}
\begin{DoxyCompactItemize}
\item
void \mbox{\hyperlink{_m_s_p430_f5xx__6xx_2eusci__b__i2c_2eusci__b__i2c__ex2__slave_tx_single_8c_a6288eba0f8e8ad3ab1544ad731eb7667}{main}} (void)
\item
void \mbox{\hyperlink{_m_s_p430_f5xx__6xx_2eusci__b__i2c_2eusci__b__i2c__ex2__slave_tx_single_8c_a600430c0372d4ed0b67dfd6cb63d4560}{USCIB0\+\_\+\+ISR}} (void)
\end{DoxyCompactItemize}
\doxysubsection*{Variables}
\begin{DoxyCompactItemize}
\item
uint8\+\_\+t \mbox{\hyperlink{_m_s_p430_f5xx__6xx_2eusci__b__i2c_2eusci__b__i2c__ex2__slave_tx_single_8c_ae369b896b0180297d61764643f99ba25}{TXData}} = 0x00
\end{DoxyCompactItemize}
\doxysubsection{Macro Definition Documentation}
\mbox{\Hypertarget{_m_s_p430_f5xx__6xx_2eusci__b__i2c_2eusci__b__i2c__ex2__slave_tx_single_8c_ae2f0ff6faf548539a21b93a034e278e8}\label{_m_s_p430_f5xx__6xx_2eusci__b__i2c_2eusci__b__i2c__ex2__slave_tx_single_8c_ae2f0ff6faf548539a21b93a034e278e8}}
\index{eusci\_b\_i2c\_ex2\_slaveTxSingle.c@{eusci\_b\_i2c\_ex2\_slaveTxSingle.c}!SLAVE\_ADDRESS@{SLAVE\_ADDRESS}}
\index{SLAVE\_ADDRESS@{SLAVE\_ADDRESS}!eusci\_b\_i2c\_ex2\_slaveTxSingle.c@{eusci\_b\_i2c\_ex2\_slaveTxSingle.c}}
\doxysubsubsection{\texorpdfstring{SLAVE\_ADDRESS}{SLAVE\_ADDRESS}}
{\footnotesize\ttfamily \#define SLAVE\+\_\+\+ADDRESS~0x48}
Description\+: This demo connects two MSP430\textquotesingle{}s via the I2C bus. The master reads from the slave. This is the SLAVE code. The TX data begins at 0 and is incremented each time it is sent. A stop condition is used as a trigger to increment the outgoing data. The USCI\+\_\+\+B0 TX interrupt is used to know when to TX. Tested on MSP430\+F67791A \begin{DoxyVerb} /|\ /|\
10k 10k
\end{DoxyVerb}
slave $\vert$ $\vert$ master -\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/--- $\vert$ $\vert$ -\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/--- -\/$\vert$\+XIN P2.\+6/\+UCB0\+SDA$\vert$$<$-\/$\vert$-\/---+-\/$>$$\vert$\+P2.6/\+UCB0\+SDA XIN$\vert$-\/ $\vert$ $\vert$ $\vert$ $\vert$ $\vert$ -\/$\vert$\+XOUT $\vert$ $\vert$ $\vert$ XOUT$\vert$-\/ $\vert$ P2.\+5/\+UCB0\+SCL$\vert$$<$-\/+-\/-\/-\/---$>$$\vert$\+P2.5/\+UCB0\+SCL $\vert$ $\vert$ $\vert$ $\vert$ $\vert$
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 I2C peripheral
\item GPIO Port peripheral (for I2C pins)
\item SCL2
\item SDA
\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 USCI\+\_\+\+B0\+\_\+\+VECTOR.
\end{DoxyItemize}
Definition at line 78 of file eusci\+\_\+b\+\_\+i2c\+\_\+ex2\+\_\+slave\+Tx\+Single.\+c.
\doxysubsection{Function Documentation}
\mbox{\Hypertarget{_m_s_p430_f5xx__6xx_2eusci__b__i2c_2eusci__b__i2c__ex2__slave_tx_single_8c_a6288eba0f8e8ad3ab1544ad731eb7667}\label{_m_s_p430_f5xx__6xx_2eusci__b__i2c_2eusci__b__i2c__ex2__slave_tx_single_8c_a6288eba0f8e8ad3ab1544ad731eb7667}}
\index{eusci\_b\_i2c\_ex2\_slaveTxSingle.c@{eusci\_b\_i2c\_ex2\_slaveTxSingle.c}!main@{main}}
\index{main@{main}!eusci\_b\_i2c\_ex2\_slaveTxSingle.c@{eusci\_b\_i2c\_ex2\_slaveTxSingle.c}}
\doxysubsubsection{\texorpdfstring{main()}{main()}}
{\footnotesize\ttfamily void main (\begin{DoxyParamCaption}\item[{void}]{ }\end{DoxyParamCaption})}
Definition at line 82 of file eusci\+\_\+b\+\_\+i2c\+\_\+ex2\+\_\+slave\+Tx\+Single.\+c.
References \+\_\+\+\_\+no\+\_\+operation(), param, and SLAVE\+\_\+\+ADDRESS.
\mbox{\Hypertarget{_m_s_p430_f5xx__6xx_2eusci__b__i2c_2eusci__b__i2c__ex2__slave_tx_single_8c_a600430c0372d4ed0b67dfd6cb63d4560}\label{_m_s_p430_f5xx__6xx_2eusci__b__i2c_2eusci__b__i2c__ex2__slave_tx_single_8c_a600430c0372d4ed0b67dfd6cb63d4560}}
\index{eusci\_b\_i2c\_ex2\_slaveTxSingle.c@{eusci\_b\_i2c\_ex2\_slaveTxSingle.c}!USCIB0\_ISR@{USCIB0\_ISR}}
\index{USCIB0\_ISR@{USCIB0\_ISR}!eusci\_b\_i2c\_ex2\_slaveTxSingle.c@{eusci\_b\_i2c\_ex2\_slaveTxSingle.c}}
\doxysubsubsection{\texorpdfstring{USCIB0\_ISR()}{USCIB0\_ISR()}}
{\footnotesize\ttfamily void USCIB0\+\_\+\+ISR (\begin{DoxyParamCaption}\item[{void}]{ }\end{DoxyParamCaption})}
Definition at line 128 of file eusci\+\_\+b\+\_\+i2c\+\_\+ex2\+\_\+slave\+Tx\+Single.\+c.
References TXData.
\doxysubsection{Variable Documentation}
\mbox{\Hypertarget{_m_s_p430_f5xx__6xx_2eusci__b__i2c_2eusci__b__i2c__ex2__slave_tx_single_8c_ae369b896b0180297d61764643f99ba25}\label{_m_s_p430_f5xx__6xx_2eusci__b__i2c_2eusci__b__i2c__ex2__slave_tx_single_8c_ae369b896b0180297d61764643f99ba25}}
\index{eusci\_b\_i2c\_ex2\_slaveTxSingle.c@{eusci\_b\_i2c\_ex2\_slaveTxSingle.c}!TXData@{TXData}}
\index{TXData@{TXData}!eusci\_b\_i2c\_ex2\_slaveTxSingle.c@{eusci\_b\_i2c\_ex2\_slaveTxSingle.c}}
\doxysubsubsection{\texorpdfstring{TXData}{TXData}}
{\footnotesize\ttfamily uint8\+\_\+t TXData = 0x00}
Definition at line 80 of file eusci\+\_\+b\+\_\+i2c\+\_\+ex2\+\_\+slave\+Tx\+Single.\+c.
Referenced by USCIB0\+\_\+\+ISR().

View File

@@ -0,0 +1,122 @@
\hypertarget{_m_s_p430_f5xx__6xx_2eusci__b__i2c_2eusci__b__i2c__ex3__master_tx_multiple_8c}{}\doxysection{Resources/\+Software/msp430\+\_\+driverlib\+\_\+2\+\_\+91\+\_\+13\+\_\+01/examples/\+MSP430\+F5xx\+\_\+6xx/eusci\+\_\+b\+\_\+i2c/eusci\+\_\+b\+\_\+i2c\+\_\+ex3\+\_\+master\+Tx\+Multiple.c File Reference}
\label{_m_s_p430_f5xx__6xx_2eusci__b__i2c_2eusci__b__i2c__ex3__master_tx_multiple_8c}\index{Resources/Software/msp430\_driverlib\_2\_91\_13\_01/examples/MSP430F5xx\_6xx/eusci\_b\_i2c/eusci\_b\_i2c\_ex3\_masterTxMultiple.c@{Resources/Software/msp430\_driverlib\_2\_91\_13\_01/examples/MSP430F5xx\_6xx/eusci\_b\_i2c/eusci\_b\_i2c\_ex3\_masterTxMultiple.c}}
{\ttfamily \#include \char`\"{}driverlib.\+h\char`\"{}}\newline
\doxysubsection*{Macros}
\begin{DoxyCompactItemize}
\item
\#define \mbox{\hyperlink{_m_s_p430_f5xx__6xx_2eusci__b__i2c_2eusci__b__i2c__ex3__master_tx_multiple_8c_ae2f0ff6faf548539a21b93a034e278e8}{SLAVE\+\_\+\+ADDRESS}}~0x48
\end{DoxyCompactItemize}
\doxysubsection*{Functions}
\begin{DoxyCompactItemize}
\item
void \mbox{\hyperlink{_m_s_p430_f5xx__6xx_2eusci__b__i2c_2eusci__b__i2c__ex3__master_tx_multiple_8c_a6288eba0f8e8ad3ab1544ad731eb7667}{main}} (void)
\item
void \mbox{\hyperlink{_m_s_p430_f5xx__6xx_2eusci__b__i2c_2eusci__b__i2c__ex3__master_tx_multiple_8c_a600430c0372d4ed0b67dfd6cb63d4560}{USCIB0\+\_\+\+ISR}} (void)
\end{DoxyCompactItemize}
\doxysubsection*{Variables}
\begin{DoxyCompactItemize}
\item
uint8\+\_\+t \mbox{\hyperlink{_m_s_p430_f5xx__6xx_2eusci__b__i2c_2eusci__b__i2c__ex3__master_tx_multiple_8c_ae369b896b0180297d61764643f99ba25}{TXData}} = 0
\item
uint8\+\_\+t \mbox{\hyperlink{_m_s_p430_f5xx__6xx_2eusci__b__i2c_2eusci__b__i2c__ex3__master_tx_multiple_8c_a442fc7a9731fc8e66469e62429b32219}{TXByte\+Ctr}}
\end{DoxyCompactItemize}
\doxysubsection{Macro Definition Documentation}
\mbox{\Hypertarget{_m_s_p430_f5xx__6xx_2eusci__b__i2c_2eusci__b__i2c__ex3__master_tx_multiple_8c_ae2f0ff6faf548539a21b93a034e278e8}\label{_m_s_p430_f5xx__6xx_2eusci__b__i2c_2eusci__b__i2c__ex3__master_tx_multiple_8c_ae2f0ff6faf548539a21b93a034e278e8}}
\index{eusci\_b\_i2c\_ex3\_masterTxMultiple.c@{eusci\_b\_i2c\_ex3\_masterTxMultiple.c}!SLAVE\_ADDRESS@{SLAVE\_ADDRESS}}
\index{SLAVE\_ADDRESS@{SLAVE\_ADDRESS}!eusci\_b\_i2c\_ex3\_masterTxMultiple.c@{eusci\_b\_i2c\_ex3\_masterTxMultiple.c}}
\doxysubsubsection{\texorpdfstring{SLAVE\_ADDRESS}{SLAVE\_ADDRESS}}
{\footnotesize\ttfamily \#define SLAVE\+\_\+\+ADDRESS~0x48}
This example shows how to configure the I2C module as a master for multi byte transmission in interrupt driven mode. The address of the slave module is set in this example.
MSP430\+F5xx\+\_\+6xx Demo -\/ USCI\+\_\+\+B0 I2C Master TX multiple bytes to MSP430 Slave
Description\+: This demo connects two MSP430\textquotesingle{}s via the I2C bus. The master transmits to the slave. This is the MASTER CODE. It cntinuously transmits an array of data and demonstrates how to implement an I2C master transmitter sending multiple bytes using the USCI\+\_\+\+B0 TX interrupt. ACLK = n/a, MCLK = SMCLK = BRCLK = default DCO = $\sim$1.045MHz \begin{DoxyVerb} /|\ /|\
MSP430F67791A 10k 10k MSP430F67791A
slave | | master
----------------- | | -----------------
-|XIN P2.6/UCB0SDA|<-|----+->|P2.6/UCB0SDA XIN|-
| | | | |
-|XOUT | | | XOUT|-
| P2.5/UCB0SCL|<-+------>|P2.5/UCB0SCL |
| | | |
\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 I2C peripheral
\item GPIO Port peripheral (for I2C pins)
\item SCL2
\item SDA
\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 USCI\+\_\+\+B0\+\_\+\+VECTOR.
\end{DoxyItemize}
Definition at line 82 of file eusci\+\_\+b\+\_\+i2c\+\_\+ex3\+\_\+master\+Tx\+Multiple.\+c.
\doxysubsection{Function Documentation}
\mbox{\Hypertarget{_m_s_p430_f5xx__6xx_2eusci__b__i2c_2eusci__b__i2c__ex3__master_tx_multiple_8c_a6288eba0f8e8ad3ab1544ad731eb7667}\label{_m_s_p430_f5xx__6xx_2eusci__b__i2c_2eusci__b__i2c__ex3__master_tx_multiple_8c_a6288eba0f8e8ad3ab1544ad731eb7667}}
\index{eusci\_b\_i2c\_ex3\_masterTxMultiple.c@{eusci\_b\_i2c\_ex3\_masterTxMultiple.c}!main@{main}}
\index{main@{main}!eusci\_b\_i2c\_ex3\_masterTxMultiple.c@{eusci\_b\_i2c\_ex3\_masterTxMultiple.c}}
\doxysubsubsection{\texorpdfstring{main()}{main()}}
{\footnotesize\ttfamily void main (\begin{DoxyParamCaption}\item[{void}]{ }\end{DoxyParamCaption})}
Definition at line 87 of file eusci\+\_\+b\+\_\+i2c\+\_\+ex3\+\_\+master\+Tx\+Multiple.\+c.
References \+\_\+\+\_\+delay\+\_\+cycles(), param, SLAVE\+\_\+\+ADDRESS, TXByte\+Ctr, and TXData.
\mbox{\Hypertarget{_m_s_p430_f5xx__6xx_2eusci__b__i2c_2eusci__b__i2c__ex3__master_tx_multiple_8c_a600430c0372d4ed0b67dfd6cb63d4560}\label{_m_s_p430_f5xx__6xx_2eusci__b__i2c_2eusci__b__i2c__ex3__master_tx_multiple_8c_a600430c0372d4ed0b67dfd6cb63d4560}}
\index{eusci\_b\_i2c\_ex3\_masterTxMultiple.c@{eusci\_b\_i2c\_ex3\_masterTxMultiple.c}!USCIB0\_ISR@{USCIB0\_ISR}}
\index{USCIB0\_ISR@{USCIB0\_ISR}!eusci\_b\_i2c\_ex3\_masterTxMultiple.c@{eusci\_b\_i2c\_ex3\_masterTxMultiple.c}}
\doxysubsubsection{\texorpdfstring{USCIB0\_ISR()}{USCIB0\_ISR()}}
{\footnotesize\ttfamily void USCIB0\+\_\+\+ISR (\begin{DoxyParamCaption}\item[{void}]{ }\end{DoxyParamCaption})}
Definition at line 162 of file eusci\+\_\+b\+\_\+i2c\+\_\+ex3\+\_\+master\+Tx\+Multiple.\+c.
References \+\_\+\+\_\+bic\+\_\+\+SR\+\_\+register\+\_\+on\+\_\+exit(), TXByte\+Ctr, and TXData.
\doxysubsection{Variable Documentation}
\mbox{\Hypertarget{_m_s_p430_f5xx__6xx_2eusci__b__i2c_2eusci__b__i2c__ex3__master_tx_multiple_8c_a442fc7a9731fc8e66469e62429b32219}\label{_m_s_p430_f5xx__6xx_2eusci__b__i2c_2eusci__b__i2c__ex3__master_tx_multiple_8c_a442fc7a9731fc8e66469e62429b32219}}
\index{eusci\_b\_i2c\_ex3\_masterTxMultiple.c@{eusci\_b\_i2c\_ex3\_masterTxMultiple.c}!TXByteCtr@{TXByteCtr}}
\index{TXByteCtr@{TXByteCtr}!eusci\_b\_i2c\_ex3\_masterTxMultiple.c@{eusci\_b\_i2c\_ex3\_masterTxMultiple.c}}
\doxysubsubsection{\texorpdfstring{TXByteCtr}{TXByteCtr}}
{\footnotesize\ttfamily uint8\+\_\+t TXByte\+Ctr}
Definition at line 85 of file eusci\+\_\+b\+\_\+i2c\+\_\+ex3\+\_\+master\+Tx\+Multiple.\+c.
Referenced by main(), and USCIB0\+\_\+\+ISR().
\mbox{\Hypertarget{_m_s_p430_f5xx__6xx_2eusci__b__i2c_2eusci__b__i2c__ex3__master_tx_multiple_8c_ae369b896b0180297d61764643f99ba25}\label{_m_s_p430_f5xx__6xx_2eusci__b__i2c_2eusci__b__i2c__ex3__master_tx_multiple_8c_ae369b896b0180297d61764643f99ba25}}
\index{eusci\_b\_i2c\_ex3\_masterTxMultiple.c@{eusci\_b\_i2c\_ex3\_masterTxMultiple.c}!TXData@{TXData}}
\index{TXData@{TXData}!eusci\_b\_i2c\_ex3\_masterTxMultiple.c@{eusci\_b\_i2c\_ex3\_masterTxMultiple.c}}
\doxysubsubsection{\texorpdfstring{TXData}{TXData}}
{\footnotesize\ttfamily uint8\+\_\+t TXData = 0}
Definition at line 84 of file eusci\+\_\+b\+\_\+i2c\+\_\+ex3\+\_\+master\+Tx\+Multiple.\+c.
Referenced by main(), and USCIB0\+\_\+\+ISR().

View File

@@ -0,0 +1,81 @@
\hypertarget{_m_s_p430_f5xx__6xx_2eusci__b__i2c_2eusci__b__i2c__ex3__slave_rx_multiple_8c}{}\doxysection{Resources/\+Software/msp430\+\_\+driverlib\+\_\+2\+\_\+91\+\_\+13\+\_\+01/examples/\+MSP430\+F5xx\+\_\+6xx/eusci\+\_\+b\+\_\+i2c/eusci\+\_\+b\+\_\+i2c\+\_\+ex3\+\_\+slave\+Rx\+Multiple.c File Reference}
\label{_m_s_p430_f5xx__6xx_2eusci__b__i2c_2eusci__b__i2c__ex3__slave_rx_multiple_8c}\index{Resources/Software/msp430\_driverlib\_2\_91\_13\_01/examples/MSP430F5xx\_6xx/eusci\_b\_i2c/eusci\_b\_i2c\_ex3\_slaveRxMultiple.c@{Resources/Software/msp430\_driverlib\_2\_91\_13\_01/examples/MSP430F5xx\_6xx/eusci\_b\_i2c/eusci\_b\_i2c\_ex3\_slaveRxMultiple.c}}
{\ttfamily \#include \char`\"{}driverlib.\+h\char`\"{}}\newline
\doxysubsection*{Macros}
\begin{DoxyCompactItemize}
\item
\#define \mbox{\hyperlink{_m_s_p430_f5xx__6xx_2eusci__b__i2c_2eusci__b__i2c__ex3__slave_rx_multiple_8c_ae2f0ff6faf548539a21b93a034e278e8}{SLAVE\+\_\+\+ADDRESS}}~0x48
\end{DoxyCompactItemize}
\doxysubsection*{Functions}
\begin{DoxyCompactItemize}
\item
void \mbox{\hyperlink{_m_s_p430_f5xx__6xx_2eusci__b__i2c_2eusci__b__i2c__ex3__slave_rx_multiple_8c_a6288eba0f8e8ad3ab1544ad731eb7667}{main}} (void)
\item
void \mbox{\hyperlink{_m_s_p430_f5xx__6xx_2eusci__b__i2c_2eusci__b__i2c__ex3__slave_rx_multiple_8c_a600430c0372d4ed0b67dfd6cb63d4560}{USCIB0\+\_\+\+ISR}} (void)
\end{DoxyCompactItemize}
\doxysubsection*{Variables}
\begin{DoxyCompactItemize}
\item
uint8\+\_\+t \mbox{\hyperlink{_m_s_p430_f5xx__6xx_2eusci__b__i2c_2eusci__b__i2c__ex3__slave_rx_multiple_8c_a597ef8ed788642728c57f66b3a21544f}{RXData}}
\end{DoxyCompactItemize}
\doxysubsection{Macro Definition Documentation}
\mbox{\Hypertarget{_m_s_p430_f5xx__6xx_2eusci__b__i2c_2eusci__b__i2c__ex3__slave_rx_multiple_8c_ae2f0ff6faf548539a21b93a034e278e8}\label{_m_s_p430_f5xx__6xx_2eusci__b__i2c_2eusci__b__i2c__ex3__slave_rx_multiple_8c_ae2f0ff6faf548539a21b93a034e278e8}}
\index{eusci\_b\_i2c\_ex3\_slaveRxMultiple.c@{eusci\_b\_i2c\_ex3\_slaveRxMultiple.c}!SLAVE\_ADDRESS@{SLAVE\_ADDRESS}}
\index{SLAVE\_ADDRESS@{SLAVE\_ADDRESS}!eusci\_b\_i2c\_ex3\_slaveRxMultiple.c@{eusci\_b\_i2c\_ex3\_slaveRxMultiple.c}}
\doxysubsubsection{\texorpdfstring{SLAVE\_ADDRESS}{SLAVE\_ADDRESS}}
{\footnotesize\ttfamily \#define SLAVE\+\_\+\+ADDRESS~0x48}
Definition at line 67 of file eusci\+\_\+b\+\_\+i2c\+\_\+ex3\+\_\+slave\+Rx\+Multiple.\+c.
\doxysubsection{Function Documentation}
\mbox{\Hypertarget{_m_s_p430_f5xx__6xx_2eusci__b__i2c_2eusci__b__i2c__ex3__slave_rx_multiple_8c_a6288eba0f8e8ad3ab1544ad731eb7667}\label{_m_s_p430_f5xx__6xx_2eusci__b__i2c_2eusci__b__i2c__ex3__slave_rx_multiple_8c_a6288eba0f8e8ad3ab1544ad731eb7667}}
\index{eusci\_b\_i2c\_ex3\_slaveRxMultiple.c@{eusci\_b\_i2c\_ex3\_slaveRxMultiple.c}!main@{main}}
\index{main@{main}!eusci\_b\_i2c\_ex3\_slaveRxMultiple.c@{eusci\_b\_i2c\_ex3\_slaveRxMultiple.c}}
\doxysubsubsection{\texorpdfstring{main()}{main()}}
{\footnotesize\ttfamily void main (\begin{DoxyParamCaption}\item[{void}]{ }\end{DoxyParamCaption})}
Definition at line 71 of file eusci\+\_\+b\+\_\+i2c\+\_\+ex3\+\_\+slave\+Rx\+Multiple.\+c.
References \+\_\+\+\_\+no\+\_\+operation(), param, and SLAVE\+\_\+\+ADDRESS.
\mbox{\Hypertarget{_m_s_p430_f5xx__6xx_2eusci__b__i2c_2eusci__b__i2c__ex3__slave_rx_multiple_8c_a600430c0372d4ed0b67dfd6cb63d4560}\label{_m_s_p430_f5xx__6xx_2eusci__b__i2c_2eusci__b__i2c__ex3__slave_rx_multiple_8c_a600430c0372d4ed0b67dfd6cb63d4560}}
\index{eusci\_b\_i2c\_ex3\_slaveRxMultiple.c@{eusci\_b\_i2c\_ex3\_slaveRxMultiple.c}!USCIB0\_ISR@{USCIB0\_ISR}}
\index{USCIB0\_ISR@{USCIB0\_ISR}!eusci\_b\_i2c\_ex3\_slaveRxMultiple.c@{eusci\_b\_i2c\_ex3\_slaveRxMultiple.c}}
\doxysubsubsection{\texorpdfstring{USCIB0\_ISR()}{USCIB0\_ISR()}}
{\footnotesize\ttfamily void USCIB0\+\_\+\+ISR (\begin{DoxyParamCaption}\item[{void}]{ }\end{DoxyParamCaption})}
Definition at line 118 of file eusci\+\_\+b\+\_\+i2c\+\_\+ex3\+\_\+slave\+Rx\+Multiple.\+c.
References RXData.
\doxysubsection{Variable Documentation}
\mbox{\Hypertarget{_m_s_p430_f5xx__6xx_2eusci__b__i2c_2eusci__b__i2c__ex3__slave_rx_multiple_8c_a597ef8ed788642728c57f66b3a21544f}\label{_m_s_p430_f5xx__6xx_2eusci__b__i2c_2eusci__b__i2c__ex3__slave_rx_multiple_8c_a597ef8ed788642728c57f66b3a21544f}}
\index{eusci\_b\_i2c\_ex3\_slaveRxMultiple.c@{eusci\_b\_i2c\_ex3\_slaveRxMultiple.c}!RXData@{RXData}}
\index{RXData@{RXData}!eusci\_b\_i2c\_ex3\_slaveRxMultiple.c@{eusci\_b\_i2c\_ex3\_slaveRxMultiple.c}}
\doxysubsubsection{\texorpdfstring{RXData}{RXData}}
{\footnotesize\ttfamily uint8\+\_\+t RXData}
Definition at line 69 of file eusci\+\_\+b\+\_\+i2c\+\_\+ex3\+\_\+slave\+Rx\+Multiple.\+c.
Referenced by USCIB0\+\_\+\+ISR().

View File

@@ -0,0 +1,90 @@
\hypertarget{_m_s_p430_f5xx__6xx_2eusci__b__i2c_2eusci__b__i2c__ex4__master_tx_single_8c}{}\doxysection{Resources/\+Software/msp430\+\_\+driverlib\+\_\+2\+\_\+91\+\_\+13\+\_\+01/examples/\+MSP430\+F5xx\+\_\+6xx/eusci\+\_\+b\+\_\+i2c/eusci\+\_\+b\+\_\+i2c\+\_\+ex4\+\_\+master\+Tx\+Single.c File Reference}
\label{_m_s_p430_f5xx__6xx_2eusci__b__i2c_2eusci__b__i2c__ex4__master_tx_single_8c}\index{Resources/Software/msp430\_driverlib\_2\_91\_13\_01/examples/MSP430F5xx\_6xx/eusci\_b\_i2c/eusci\_b\_i2c\_ex4\_masterTxSingle.c@{Resources/Software/msp430\_driverlib\_2\_91\_13\_01/examples/MSP430F5xx\_6xx/eusci\_b\_i2c/eusci\_b\_i2c\_ex4\_masterTxSingle.c}}
{\ttfamily \#include \char`\"{}driverlib.\+h\char`\"{}}\newline
\doxysubsection*{Macros}
\begin{DoxyCompactItemize}
\item
\#define \mbox{\hyperlink{_m_s_p430_f5xx__6xx_2eusci__b__i2c_2eusci__b__i2c__ex4__master_tx_single_8c_ae2f0ff6faf548539a21b93a034e278e8}{SLAVE\+\_\+\+ADDRESS}}~0x48
\end{DoxyCompactItemize}
\doxysubsection*{Functions}
\begin{DoxyCompactItemize}
\item
void \mbox{\hyperlink{_m_s_p430_f5xx__6xx_2eusci__b__i2c_2eusci__b__i2c__ex4__master_tx_single_8c_a6288eba0f8e8ad3ab1544ad731eb7667}{main}} (void)
\end{DoxyCompactItemize}
\doxysubsection*{Variables}
\begin{DoxyCompactItemize}
\item
uint8\+\_\+t \mbox{\hyperlink{_m_s_p430_f5xx__6xx_2eusci__b__i2c_2eusci__b__i2c__ex4__master_tx_single_8c_ac23b8f721ac5b7a4315ba2c3409b9e0a}{transmit\+Data}}
\end{DoxyCompactItemize}
\doxysubsection{Macro Definition Documentation}
\mbox{\Hypertarget{_m_s_p430_f5xx__6xx_2eusci__b__i2c_2eusci__b__i2c__ex4__master_tx_single_8c_ae2f0ff6faf548539a21b93a034e278e8}\label{_m_s_p430_f5xx__6xx_2eusci__b__i2c_2eusci__b__i2c__ex4__master_tx_single_8c_ae2f0ff6faf548539a21b93a034e278e8}}
\index{eusci\_b\_i2c\_ex4\_masterTxSingle.c@{eusci\_b\_i2c\_ex4\_masterTxSingle.c}!SLAVE\_ADDRESS@{SLAVE\_ADDRESS}}
\index{SLAVE\_ADDRESS@{SLAVE\_ADDRESS}!eusci\_b\_i2c\_ex4\_masterTxSingle.c@{eusci\_b\_i2c\_ex4\_masterTxSingle.c}}
\doxysubsubsection{\texorpdfstring{SLAVE\_ADDRESS}{SLAVE\_ADDRESS}}
{\footnotesize\ttfamily \#define SLAVE\+\_\+\+ADDRESS~0x48}
This example shows how to configure the I2C module as a master for single byte transmission in interrupt mode. The address of the slave module that the master is communicating with also set in this example.
MSP430\+F5xx\+\_\+6xx Demo -\/ USCI\+\_\+\+B0 I2C Master TX single bytes to MSP430 Slave
Description\+: This demo connects two MSP430\textquotesingle{}s via the I2C bus. The master transmits to the slave. This is the master code. It continuously transmits 00h, 01h, ..., 0ffh and demonstrates how to implement an I2C master transmitter sending a single byte using the USCI\+\_\+\+B0 TX interrupt. ACLK = n/a, MCLK = SMCLK = BRCLK = default DCO = $\sim$1.045MHz \begin{DoxyVerb} /|\ /|\
MSP430F67791A 10k 10k MSP430F67791A
slave | | master
----------------- | | -----------------
-|XIN P2.6/UCB0SDA|<-|----+->|P2.6/UCB0SDA XIN|-
| | | | |
-|XOUT | | | XOUT|-
| P2.5/UCB0SCL|<-+------>|P2.5/UCB0SCL |
| | | |
\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 I2C peripheral
\item GPIO Port peripheral (for I2C pins)
\item SCL2
\item SDA
\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 USCI\+\_\+\+B0\+\_\+\+VECTOR.
\end{DoxyItemize}
Definition at line 82 of file eusci\+\_\+b\+\_\+i2c\+\_\+ex4\+\_\+master\+Tx\+Single.\+c.
\doxysubsection{Function Documentation}
\mbox{\Hypertarget{_m_s_p430_f5xx__6xx_2eusci__b__i2c_2eusci__b__i2c__ex4__master_tx_single_8c_a6288eba0f8e8ad3ab1544ad731eb7667}\label{_m_s_p430_f5xx__6xx_2eusci__b__i2c_2eusci__b__i2c__ex4__master_tx_single_8c_a6288eba0f8e8ad3ab1544ad731eb7667}}
\index{eusci\_b\_i2c\_ex4\_masterTxSingle.c@{eusci\_b\_i2c\_ex4\_masterTxSingle.c}!main@{main}}
\index{main@{main}!eusci\_b\_i2c\_ex4\_masterTxSingle.c@{eusci\_b\_i2c\_ex4\_masterTxSingle.c}}
\doxysubsubsection{\texorpdfstring{main()}{main()}}
{\footnotesize\ttfamily void main (\begin{DoxyParamCaption}\item[{void}]{ }\end{DoxyParamCaption})}
Definition at line 86 of file eusci\+\_\+b\+\_\+i2c\+\_\+ex4\+\_\+master\+Tx\+Single.\+c.
References \+\_\+\+\_\+delay\+\_\+cycles(), param, SLAVE\+\_\+\+ADDRESS, and transmit\+Data.
\doxysubsection{Variable Documentation}
\mbox{\Hypertarget{_m_s_p430_f5xx__6xx_2eusci__b__i2c_2eusci__b__i2c__ex4__master_tx_single_8c_ac23b8f721ac5b7a4315ba2c3409b9e0a}\label{_m_s_p430_f5xx__6xx_2eusci__b__i2c_2eusci__b__i2c__ex4__master_tx_single_8c_ac23b8f721ac5b7a4315ba2c3409b9e0a}}
\index{eusci\_b\_i2c\_ex4\_masterTxSingle.c@{eusci\_b\_i2c\_ex4\_masterTxSingle.c}!transmitData@{transmitData}}
\index{transmitData@{transmitData}!eusci\_b\_i2c\_ex4\_masterTxSingle.c@{eusci\_b\_i2c\_ex4\_masterTxSingle.c}}
\doxysubsubsection{\texorpdfstring{transmitData}{transmitData}}
{\footnotesize\ttfamily uint8\+\_\+t transmit\+Data}
Definition at line 84 of file eusci\+\_\+b\+\_\+i2c\+\_\+ex4\+\_\+master\+Tx\+Single.\+c.
Referenced by main().

View File

@@ -0,0 +1,109 @@
\hypertarget{_m_s_p430_f5xx__6xx_2eusci__b__i2c_2eusci__b__i2c__ex4__slave_rx_single_8c}{}\doxysection{Resources/\+Software/msp430\+\_\+driverlib\+\_\+2\+\_\+91\+\_\+13\+\_\+01/examples/\+MSP430\+F5xx\+\_\+6xx/eusci\+\_\+b\+\_\+i2c/eusci\+\_\+b\+\_\+i2c\+\_\+ex4\+\_\+slave\+Rx\+Single.c File Reference}
\label{_m_s_p430_f5xx__6xx_2eusci__b__i2c_2eusci__b__i2c__ex4__slave_rx_single_8c}\index{Resources/Software/msp430\_driverlib\_2\_91\_13\_01/examples/MSP430F5xx\_6xx/eusci\_b\_i2c/eusci\_b\_i2c\_ex4\_slaveRxSingle.c@{Resources/Software/msp430\_driverlib\_2\_91\_13\_01/examples/MSP430F5xx\_6xx/eusci\_b\_i2c/eusci\_b\_i2c\_ex4\_slaveRxSingle.c}}
{\ttfamily \#include \char`\"{}driverlib.\+h\char`\"{}}\newline
\doxysubsection*{Macros}
\begin{DoxyCompactItemize}
\item
\#define \mbox{\hyperlink{_m_s_p430_f5xx__6xx_2eusci__b__i2c_2eusci__b__i2c__ex4__slave_rx_single_8c_ae2f0ff6faf548539a21b93a034e278e8}{SLAVE\+\_\+\+ADDRESS}}~0x48
\end{DoxyCompactItemize}
\doxysubsection*{Functions}
\begin{DoxyCompactItemize}
\item
void \mbox{\hyperlink{_m_s_p430_f5xx__6xx_2eusci__b__i2c_2eusci__b__i2c__ex4__slave_rx_single_8c_a6288eba0f8e8ad3ab1544ad731eb7667}{main}} (void)
\item
void \mbox{\hyperlink{_m_s_p430_f5xx__6xx_2eusci__b__i2c_2eusci__b__i2c__ex4__slave_rx_single_8c_a600430c0372d4ed0b67dfd6cb63d4560}{USCIB0\+\_\+\+ISR}} (void)
\end{DoxyCompactItemize}
\doxysubsection*{Variables}
\begin{DoxyCompactItemize}
\item
uint8\+\_\+t \mbox{\hyperlink{_m_s_p430_f5xx__6xx_2eusci__b__i2c_2eusci__b__i2c__ex4__slave_rx_single_8c_a597ef8ed788642728c57f66b3a21544f}{RXData}}
\end{DoxyCompactItemize}
\doxysubsection{Macro Definition Documentation}
\mbox{\Hypertarget{_m_s_p430_f5xx__6xx_2eusci__b__i2c_2eusci__b__i2c__ex4__slave_rx_single_8c_ae2f0ff6faf548539a21b93a034e278e8}\label{_m_s_p430_f5xx__6xx_2eusci__b__i2c_2eusci__b__i2c__ex4__slave_rx_single_8c_ae2f0ff6faf548539a21b93a034e278e8}}
\index{eusci\_b\_i2c\_ex4\_slaveRxSingle.c@{eusci\_b\_i2c\_ex4\_slaveRxSingle.c}!SLAVE\_ADDRESS@{SLAVE\_ADDRESS}}
\index{SLAVE\_ADDRESS@{SLAVE\_ADDRESS}!eusci\_b\_i2c\_ex4\_slaveRxSingle.c@{eusci\_b\_i2c\_ex4\_slaveRxSingle.c}}
\doxysubsubsection{\texorpdfstring{SLAVE\_ADDRESS}{SLAVE\_ADDRESS}}
{\footnotesize\ttfamily \#define SLAVE\+\_\+\+ADDRESS~0x48}
This example shows how to configure the I2C module as a slave for single byte reception in interrupt driven mode. The address of the slave module is set in this example. EUSCI\+\_\+\+B0 I2C Slave RX single bytes from MSP430 Master
Description\+: This demo connects two MSP430\textquotesingle{}s via the I2C bus. The master transmits to the slave. This is the slave code. The interrupt driven data receiption is demonstrated using the USCI\+\_\+\+B0 RX interrupt.
Tested on MSP430\+F67791A \begin{DoxyVerb} /|\ /|\
10k 10k
slave | | master
----------------- | | -----------------
-|XIN P2.6/UCB0SDA|<-|----+->|P2.6/UCB0SDA XIN|-
| | | | |
-|XOUT | | | XOUT|-
| P2.5/UCB0SCL|<-+------>|P2.5/UCB0SCL |
| | | |
| | | |
\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 I2C peripheral
\item GPIO Port peripheral (for I2C pins)
\item SCL
\item SDA
\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 USCI\+\_\+\+B0\+\_\+\+VECTOR.
\end{DoxyItemize}
Definition at line 83 of file eusci\+\_\+b\+\_\+i2c\+\_\+ex4\+\_\+slave\+Rx\+Single.\+c.
\doxysubsection{Function Documentation}
\mbox{\Hypertarget{_m_s_p430_f5xx__6xx_2eusci__b__i2c_2eusci__b__i2c__ex4__slave_rx_single_8c_a6288eba0f8e8ad3ab1544ad731eb7667}\label{_m_s_p430_f5xx__6xx_2eusci__b__i2c_2eusci__b__i2c__ex4__slave_rx_single_8c_a6288eba0f8e8ad3ab1544ad731eb7667}}
\index{eusci\_b\_i2c\_ex4\_slaveRxSingle.c@{eusci\_b\_i2c\_ex4\_slaveRxSingle.c}!main@{main}}
\index{main@{main}!eusci\_b\_i2c\_ex4\_slaveRxSingle.c@{eusci\_b\_i2c\_ex4\_slaveRxSingle.c}}
\doxysubsubsection{\texorpdfstring{main()}{main()}}
{\footnotesize\ttfamily void main (\begin{DoxyParamCaption}\item[{void}]{ }\end{DoxyParamCaption})}
Definition at line 87 of file eusci\+\_\+b\+\_\+i2c\+\_\+ex4\+\_\+slave\+Rx\+Single.\+c.
References \+\_\+\+\_\+no\+\_\+operation(), and param.
\mbox{\Hypertarget{_m_s_p430_f5xx__6xx_2eusci__b__i2c_2eusci__b__i2c__ex4__slave_rx_single_8c_a600430c0372d4ed0b67dfd6cb63d4560}\label{_m_s_p430_f5xx__6xx_2eusci__b__i2c_2eusci__b__i2c__ex4__slave_rx_single_8c_a600430c0372d4ed0b67dfd6cb63d4560}}
\index{eusci\_b\_i2c\_ex4\_slaveRxSingle.c@{eusci\_b\_i2c\_ex4\_slaveRxSingle.c}!USCIB0\_ISR@{USCIB0\_ISR}}
\index{USCIB0\_ISR@{USCIB0\_ISR}!eusci\_b\_i2c\_ex4\_slaveRxSingle.c@{eusci\_b\_i2c\_ex4\_slaveRxSingle.c}}
\doxysubsubsection{\texorpdfstring{USCIB0\_ISR()}{USCIB0\_ISR()}}
{\footnotesize\ttfamily void USCIB0\+\_\+\+ISR (\begin{DoxyParamCaption}\item[{void}]{ }\end{DoxyParamCaption})}
Definition at line 125 of file eusci\+\_\+b\+\_\+i2c\+\_\+ex4\+\_\+slave\+Rx\+Single.\+c.
References RXData.
\doxysubsection{Variable Documentation}
\mbox{\Hypertarget{_m_s_p430_f5xx__6xx_2eusci__b__i2c_2eusci__b__i2c__ex4__slave_rx_single_8c_a597ef8ed788642728c57f66b3a21544f}\label{_m_s_p430_f5xx__6xx_2eusci__b__i2c_2eusci__b__i2c__ex4__slave_rx_single_8c_a597ef8ed788642728c57f66b3a21544f}}
\index{eusci\_b\_i2c\_ex4\_slaveRxSingle.c@{eusci\_b\_i2c\_ex4\_slaveRxSingle.c}!RXData@{RXData}}
\index{RXData@{RXData}!eusci\_b\_i2c\_ex4\_slaveRxSingle.c@{eusci\_b\_i2c\_ex4\_slaveRxSingle.c}}
\doxysubsubsection{\texorpdfstring{RXData}{RXData}}
{\footnotesize\ttfamily uint8\+\_\+t RXData}
Definition at line 85 of file eusci\+\_\+b\+\_\+i2c\+\_\+ex4\+\_\+slave\+Rx\+Single.\+c.
Referenced by USCIB0\+\_\+\+ISR().

View File

@@ -0,0 +1,111 @@
\hypertarget{_m_s_p430_f5xx__6xx_2eusci__b__i2c_2eusci__b__i2c__ex5__master_multiple_slave_8c}{}\doxysection{Resources/\+Software/msp430\+\_\+driverlib\+\_\+2\+\_\+91\+\_\+13\+\_\+01/examples/\+MSP430\+F5xx\+\_\+6xx/eusci\+\_\+b\+\_\+i2c/eusci\+\_\+b\+\_\+i2c\+\_\+ex5\+\_\+master\+Multiple\+Slave.c File Reference}
\label{_m_s_p430_f5xx__6xx_2eusci__b__i2c_2eusci__b__i2c__ex5__master_multiple_slave_8c}\index{Resources/Software/msp430\_driverlib\_2\_91\_13\_01/examples/MSP430F5xx\_6xx/eusci\_b\_i2c/eusci\_b\_i2c\_ex5\_masterMultipleSlave.c@{Resources/Software/msp430\_driverlib\_2\_91\_13\_01/examples/MSP430F5xx\_6xx/eusci\_b\_i2c/eusci\_b\_i2c\_ex5\_masterMultipleSlave.c}}
{\ttfamily \#include \char`\"{}driverlib.\+h\char`\"{}}\newline
\doxysubsection*{Functions}
\begin{DoxyCompactItemize}
\item
void \mbox{\hyperlink{_m_s_p430_f5xx__6xx_2eusci__b__i2c_2eusci__b__i2c__ex5__master_multiple_slave_8c_a6288eba0f8e8ad3ab1544ad731eb7667}{main}} (void)
\item
void \mbox{\hyperlink{_m_s_p430_f5xx__6xx_2eusci__b__i2c_2eusci__b__i2c__ex5__master_multiple_slave_8c_a600430c0372d4ed0b67dfd6cb63d4560}{USCIB0\+\_\+\+ISR}} (void)
\end{DoxyCompactItemize}
\doxysubsection*{Variables}
\begin{DoxyCompactItemize}
\item
uint8\+\_\+t \mbox{\hyperlink{_m_s_p430_f5xx__6xx_2eusci__b__i2c_2eusci__b__i2c__ex5__master_multiple_slave_8c_adb697e8622bce2ab592d2ee2395bd672}{TXData}} \mbox{[}$\,$\mbox{]} = \{0x\+A1,0x\+B1,0x\+C1,0x\+D1\}
\item
uint8\+\_\+t \mbox{\hyperlink{_m_s_p430_f5xx__6xx_2eusci__b__i2c_2eusci__b__i2c__ex5__master_multiple_slave_8c_acab914ed25efe33c5ff39bffa442b25f}{Slave\+Address}} \mbox{[}$\,$\mbox{]} = \{0x0A,0x0B,0x0C,0x0D\}
\item
uint8\+\_\+t \mbox{\hyperlink{_m_s_p430_f5xx__6xx_2eusci__b__i2c_2eusci__b__i2c__ex5__master_multiple_slave_8c_a442fc7a9731fc8e66469e62429b32219}{TXByte\+Ctr}}
\item
uint8\+\_\+t \mbox{\hyperlink{_m_s_p430_f5xx__6xx_2eusci__b__i2c_2eusci__b__i2c__ex5__master_multiple_slave_8c_a8400431f2b4b75fc33a2b9d755be8796}{Slave\+Flag}} = 0
\end{DoxyCompactItemize}
\doxysubsection{Function Documentation}
\mbox{\Hypertarget{_m_s_p430_f5xx__6xx_2eusci__b__i2c_2eusci__b__i2c__ex5__master_multiple_slave_8c_a6288eba0f8e8ad3ab1544ad731eb7667}\label{_m_s_p430_f5xx__6xx_2eusci__b__i2c_2eusci__b__i2c__ex5__master_multiple_slave_8c_a6288eba0f8e8ad3ab1544ad731eb7667}}
\index{eusci\_b\_i2c\_ex5\_masterMultipleSlave.c@{eusci\_b\_i2c\_ex5\_masterMultipleSlave.c}!main@{main}}
\index{main@{main}!eusci\_b\_i2c\_ex5\_masterMultipleSlave.c@{eusci\_b\_i2c\_ex5\_masterMultipleSlave.c}}
\doxysubsubsection{\texorpdfstring{main()}{main()}}
{\footnotesize\ttfamily void main (\begin{DoxyParamCaption}\item[{void}]{ }\end{DoxyParamCaption})}
Definition at line 63 of file eusci\+\_\+b\+\_\+i2c\+\_\+ex5\+\_\+master\+Multiple\+Slave.\+c.
References \+\_\+\+\_\+delay\+\_\+cycles(), param, Slave\+Address, Slave\+Flag, and TXByte\+Ctr.
\mbox{\Hypertarget{_m_s_p430_f5xx__6xx_2eusci__b__i2c_2eusci__b__i2c__ex5__master_multiple_slave_8c_a600430c0372d4ed0b67dfd6cb63d4560}\label{_m_s_p430_f5xx__6xx_2eusci__b__i2c_2eusci__b__i2c__ex5__master_multiple_slave_8c_a600430c0372d4ed0b67dfd6cb63d4560}}
\index{eusci\_b\_i2c\_ex5\_masterMultipleSlave.c@{eusci\_b\_i2c\_ex5\_masterMultipleSlave.c}!USCIB0\_ISR@{USCIB0\_ISR}}
\index{USCIB0\_ISR@{USCIB0\_ISR}!eusci\_b\_i2c\_ex5\_masterMultipleSlave.c@{eusci\_b\_i2c\_ex5\_masterMultipleSlave.c}}
\doxysubsubsection{\texorpdfstring{USCIB0\_ISR()}{USCIB0\_ISR()}}
{\footnotesize\ttfamily void USCIB0\+\_\+\+ISR (\begin{DoxyParamCaption}\item[{void}]{ }\end{DoxyParamCaption})}
Definition at line 140 of file eusci\+\_\+b\+\_\+i2c\+\_\+ex5\+\_\+master\+Multiple\+Slave.\+c.
References \+\_\+\+\_\+bic\+\_\+\+SR\+\_\+register\+\_\+on\+\_\+exit(), Slave\+Flag, TXByte\+Ctr, and TXData.
\doxysubsection{Variable Documentation}
\mbox{\Hypertarget{_m_s_p430_f5xx__6xx_2eusci__b__i2c_2eusci__b__i2c__ex5__master_multiple_slave_8c_acab914ed25efe33c5ff39bffa442b25f}\label{_m_s_p430_f5xx__6xx_2eusci__b__i2c_2eusci__b__i2c__ex5__master_multiple_slave_8c_acab914ed25efe33c5ff39bffa442b25f}}
\index{eusci\_b\_i2c\_ex5\_masterMultipleSlave.c@{eusci\_b\_i2c\_ex5\_masterMultipleSlave.c}!SlaveAddress@{SlaveAddress}}
\index{SlaveAddress@{SlaveAddress}!eusci\_b\_i2c\_ex5\_masterMultipleSlave.c@{eusci\_b\_i2c\_ex5\_masterMultipleSlave.c}}
\doxysubsubsection{\texorpdfstring{SlaveAddress}{SlaveAddress}}
{\footnotesize\ttfamily uint8\+\_\+t Slave\+Address\mbox{[}$\,$\mbox{]} = \{0x0A,0x0B,0x0C,0x0D\}}
Definition at line 59 of file eusci\+\_\+b\+\_\+i2c\+\_\+ex5\+\_\+master\+Multiple\+Slave.\+c.
Referenced by main().
\mbox{\Hypertarget{_m_s_p430_f5xx__6xx_2eusci__b__i2c_2eusci__b__i2c__ex5__master_multiple_slave_8c_a8400431f2b4b75fc33a2b9d755be8796}\label{_m_s_p430_f5xx__6xx_2eusci__b__i2c_2eusci__b__i2c__ex5__master_multiple_slave_8c_a8400431f2b4b75fc33a2b9d755be8796}}
\index{eusci\_b\_i2c\_ex5\_masterMultipleSlave.c@{eusci\_b\_i2c\_ex5\_masterMultipleSlave.c}!SlaveFlag@{SlaveFlag}}
\index{SlaveFlag@{SlaveFlag}!eusci\_b\_i2c\_ex5\_masterMultipleSlave.c@{eusci\_b\_i2c\_ex5\_masterMultipleSlave.c}}
\doxysubsubsection{\texorpdfstring{SlaveFlag}{SlaveFlag}}
{\footnotesize\ttfamily uint8\+\_\+t Slave\+Flag = 0}
Definition at line 61 of file eusci\+\_\+b\+\_\+i2c\+\_\+ex5\+\_\+master\+Multiple\+Slave.\+c.
Referenced by main(), and USCIB0\+\_\+\+ISR().
\mbox{\Hypertarget{_m_s_p430_f5xx__6xx_2eusci__b__i2c_2eusci__b__i2c__ex5__master_multiple_slave_8c_a442fc7a9731fc8e66469e62429b32219}\label{_m_s_p430_f5xx__6xx_2eusci__b__i2c_2eusci__b__i2c__ex5__master_multiple_slave_8c_a442fc7a9731fc8e66469e62429b32219}}
\index{eusci\_b\_i2c\_ex5\_masterMultipleSlave.c@{eusci\_b\_i2c\_ex5\_masterMultipleSlave.c}!TXByteCtr@{TXByteCtr}}
\index{TXByteCtr@{TXByteCtr}!eusci\_b\_i2c\_ex5\_masterMultipleSlave.c@{eusci\_b\_i2c\_ex5\_masterMultipleSlave.c}}
\doxysubsubsection{\texorpdfstring{TXByteCtr}{TXByteCtr}}
{\footnotesize\ttfamily uint8\+\_\+t TXByte\+Ctr}
Definition at line 60 of file eusci\+\_\+b\+\_\+i2c\+\_\+ex5\+\_\+master\+Multiple\+Slave.\+c.
Referenced by main(), and USCIB0\+\_\+\+ISR().
\mbox{\Hypertarget{_m_s_p430_f5xx__6xx_2eusci__b__i2c_2eusci__b__i2c__ex5__master_multiple_slave_8c_adb697e8622bce2ab592d2ee2395bd672}\label{_m_s_p430_f5xx__6xx_2eusci__b__i2c_2eusci__b__i2c__ex5__master_multiple_slave_8c_adb697e8622bce2ab592d2ee2395bd672}}
\index{eusci\_b\_i2c\_ex5\_masterMultipleSlave.c@{eusci\_b\_i2c\_ex5\_masterMultipleSlave.c}!TXData@{TXData}}
\index{TXData@{TXData}!eusci\_b\_i2c\_ex5\_masterMultipleSlave.c@{eusci\_b\_i2c\_ex5\_masterMultipleSlave.c}}
\doxysubsubsection{\texorpdfstring{TXData}{TXData}}
{\footnotesize\ttfamily uint8\+\_\+t TXData\mbox{[}$\,$\mbox{]} = \{0x\+A1,0x\+B1,0x\+C1,0x\+D1\}}
Definition at line 58 of file eusci\+\_\+b\+\_\+i2c\+\_\+ex5\+\_\+master\+Multiple\+Slave.\+c.
Referenced by USCIB0\+\_\+\+ISR().

View File

@@ -0,0 +1,111 @@
\hypertarget{_m_s_p430_f5xx__6xx_2eusci__b__i2c_2eusci__b__i2c__ex5__slave_multiple_slave_8c}{}\doxysection{Resources/\+Software/msp430\+\_\+driverlib\+\_\+2\+\_\+91\+\_\+13\+\_\+01/examples/\+MSP430\+F5xx\+\_\+6xx/eusci\+\_\+b\+\_\+i2c/eusci\+\_\+b\+\_\+i2c\+\_\+ex5\+\_\+slave\+Multiple\+Slave.c File Reference}
\label{_m_s_p430_f5xx__6xx_2eusci__b__i2c_2eusci__b__i2c__ex5__slave_multiple_slave_8c}\index{Resources/Software/msp430\_driverlib\_2\_91\_13\_01/examples/MSP430F5xx\_6xx/eusci\_b\_i2c/eusci\_b\_i2c\_ex5\_slaveMultipleSlave.c@{Resources/Software/msp430\_driverlib\_2\_91\_13\_01/examples/MSP430F5xx\_6xx/eusci\_b\_i2c/eusci\_b\_i2c\_ex5\_slaveMultipleSlave.c}}
{\ttfamily \#include \char`\"{}driverlib.\+h\char`\"{}}\newline
\doxysubsection*{Functions}
\begin{DoxyCompactItemize}
\item
void \mbox{\hyperlink{_m_s_p430_f5xx__6xx_2eusci__b__i2c_2eusci__b__i2c__ex5__slave_multiple_slave_8c_a6288eba0f8e8ad3ab1544ad731eb7667}{main}} (void)
\item
void \mbox{\hyperlink{_m_s_p430_f5xx__6xx_2eusci__b__i2c_2eusci__b__i2c__ex5__slave_multiple_slave_8c_a600430c0372d4ed0b67dfd6cb63d4560}{USCIB0\+\_\+\+ISR}} (void)
\end{DoxyCompactItemize}
\doxysubsection*{Variables}
\begin{DoxyCompactItemize}
\item
uint8\+\_\+t \mbox{\hyperlink{_m_s_p430_f5xx__6xx_2eusci__b__i2c_2eusci__b__i2c__ex5__slave_multiple_slave_8c_ad8363a0fe210b31eb7174491f478dd02}{RXData0}} = 0
\item
uint8\+\_\+t \mbox{\hyperlink{_m_s_p430_f5xx__6xx_2eusci__b__i2c_2eusci__b__i2c__ex5__slave_multiple_slave_8c_afd0f3a79374491b2736c8448c3b85e3a}{RXData1}} = 0
\item
uint8\+\_\+t \mbox{\hyperlink{_m_s_p430_f5xx__6xx_2eusci__b__i2c_2eusci__b__i2c__ex5__slave_multiple_slave_8c_ad490477b6b68af21a68dcde8035a0f61}{RXData2}} = 0
\item
uint8\+\_\+t \mbox{\hyperlink{_m_s_p430_f5xx__6xx_2eusci__b__i2c_2eusci__b__i2c__ex5__slave_multiple_slave_8c_af6a6cccb6c28ae3621d22627201ff981}{RXData3}} = 0
\end{DoxyCompactItemize}
\doxysubsection{Function Documentation}
\mbox{\Hypertarget{_m_s_p430_f5xx__6xx_2eusci__b__i2c_2eusci__b__i2c__ex5__slave_multiple_slave_8c_a6288eba0f8e8ad3ab1544ad731eb7667}\label{_m_s_p430_f5xx__6xx_2eusci__b__i2c_2eusci__b__i2c__ex5__slave_multiple_slave_8c_a6288eba0f8e8ad3ab1544ad731eb7667}}
\index{eusci\_b\_i2c\_ex5\_slaveMultipleSlave.c@{eusci\_b\_i2c\_ex5\_slaveMultipleSlave.c}!main@{main}}
\index{main@{main}!eusci\_b\_i2c\_ex5\_slaveMultipleSlave.c@{eusci\_b\_i2c\_ex5\_slaveMultipleSlave.c}}
\doxysubsubsection{\texorpdfstring{main()}{main()}}
{\footnotesize\ttfamily void main (\begin{DoxyParamCaption}\item[{void}]{ }\end{DoxyParamCaption})}
Definition at line 59 of file eusci\+\_\+b\+\_\+i2c\+\_\+ex5\+\_\+slave\+Multiple\+Slave.\+c.
References \+\_\+\+\_\+no\+\_\+operation().
\mbox{\Hypertarget{_m_s_p430_f5xx__6xx_2eusci__b__i2c_2eusci__b__i2c__ex5__slave_multiple_slave_8c_a600430c0372d4ed0b67dfd6cb63d4560}\label{_m_s_p430_f5xx__6xx_2eusci__b__i2c_2eusci__b__i2c__ex5__slave_multiple_slave_8c_a600430c0372d4ed0b67dfd6cb63d4560}}
\index{eusci\_b\_i2c\_ex5\_slaveMultipleSlave.c@{eusci\_b\_i2c\_ex5\_slaveMultipleSlave.c}!USCIB0\_ISR@{USCIB0\_ISR}}
\index{USCIB0\_ISR@{USCIB0\_ISR}!eusci\_b\_i2c\_ex5\_slaveMultipleSlave.c@{eusci\_b\_i2c\_ex5\_slaveMultipleSlave.c}}
\doxysubsubsection{\texorpdfstring{USCIB0\_ISR()}{USCIB0\_ISR()}}
{\footnotesize\ttfamily void USCIB0\+\_\+\+ISR (\begin{DoxyParamCaption}\item[{void}]{ }\end{DoxyParamCaption})}
Definition at line 126 of file eusci\+\_\+b\+\_\+i2c\+\_\+ex5\+\_\+slave\+Multiple\+Slave.\+c.
References RXData0, RXData1, RXData2, and RXData3.
\doxysubsection{Variable Documentation}
\mbox{\Hypertarget{_m_s_p430_f5xx__6xx_2eusci__b__i2c_2eusci__b__i2c__ex5__slave_multiple_slave_8c_ad8363a0fe210b31eb7174491f478dd02}\label{_m_s_p430_f5xx__6xx_2eusci__b__i2c_2eusci__b__i2c__ex5__slave_multiple_slave_8c_ad8363a0fe210b31eb7174491f478dd02}}
\index{eusci\_b\_i2c\_ex5\_slaveMultipleSlave.c@{eusci\_b\_i2c\_ex5\_slaveMultipleSlave.c}!RXData0@{RXData0}}
\index{RXData0@{RXData0}!eusci\_b\_i2c\_ex5\_slaveMultipleSlave.c@{eusci\_b\_i2c\_ex5\_slaveMultipleSlave.c}}
\doxysubsubsection{\texorpdfstring{RXData0}{RXData0}}
{\footnotesize\ttfamily uint8\+\_\+t RXData0 = 0}
Definition at line 54 of file eusci\+\_\+b\+\_\+i2c\+\_\+ex5\+\_\+slave\+Multiple\+Slave.\+c.
Referenced by USCIB0\+\_\+\+ISR().
\mbox{\Hypertarget{_m_s_p430_f5xx__6xx_2eusci__b__i2c_2eusci__b__i2c__ex5__slave_multiple_slave_8c_afd0f3a79374491b2736c8448c3b85e3a}\label{_m_s_p430_f5xx__6xx_2eusci__b__i2c_2eusci__b__i2c__ex5__slave_multiple_slave_8c_afd0f3a79374491b2736c8448c3b85e3a}}
\index{eusci\_b\_i2c\_ex5\_slaveMultipleSlave.c@{eusci\_b\_i2c\_ex5\_slaveMultipleSlave.c}!RXData1@{RXData1}}
\index{RXData1@{RXData1}!eusci\_b\_i2c\_ex5\_slaveMultipleSlave.c@{eusci\_b\_i2c\_ex5\_slaveMultipleSlave.c}}
\doxysubsubsection{\texorpdfstring{RXData1}{RXData1}}
{\footnotesize\ttfamily uint8\+\_\+t RXData1 = 0}
Definition at line 55 of file eusci\+\_\+b\+\_\+i2c\+\_\+ex5\+\_\+slave\+Multiple\+Slave.\+c.
Referenced by USCIB0\+\_\+\+ISR().
\mbox{\Hypertarget{_m_s_p430_f5xx__6xx_2eusci__b__i2c_2eusci__b__i2c__ex5__slave_multiple_slave_8c_ad490477b6b68af21a68dcde8035a0f61}\label{_m_s_p430_f5xx__6xx_2eusci__b__i2c_2eusci__b__i2c__ex5__slave_multiple_slave_8c_ad490477b6b68af21a68dcde8035a0f61}}
\index{eusci\_b\_i2c\_ex5\_slaveMultipleSlave.c@{eusci\_b\_i2c\_ex5\_slaveMultipleSlave.c}!RXData2@{RXData2}}
\index{RXData2@{RXData2}!eusci\_b\_i2c\_ex5\_slaveMultipleSlave.c@{eusci\_b\_i2c\_ex5\_slaveMultipleSlave.c}}
\doxysubsubsection{\texorpdfstring{RXData2}{RXData2}}
{\footnotesize\ttfamily uint8\+\_\+t RXData2 = 0}
Definition at line 56 of file eusci\+\_\+b\+\_\+i2c\+\_\+ex5\+\_\+slave\+Multiple\+Slave.\+c.
Referenced by USCIB0\+\_\+\+ISR().
\mbox{\Hypertarget{_m_s_p430_f5xx__6xx_2eusci__b__i2c_2eusci__b__i2c__ex5__slave_multiple_slave_8c_af6a6cccb6c28ae3621d22627201ff981}\label{_m_s_p430_f5xx__6xx_2eusci__b__i2c_2eusci__b__i2c__ex5__slave_multiple_slave_8c_af6a6cccb6c28ae3621d22627201ff981}}
\index{eusci\_b\_i2c\_ex5\_slaveMultipleSlave.c@{eusci\_b\_i2c\_ex5\_slaveMultipleSlave.c}!RXData3@{RXData3}}
\index{RXData3@{RXData3}!eusci\_b\_i2c\_ex5\_slaveMultipleSlave.c@{eusci\_b\_i2c\_ex5\_slaveMultipleSlave.c}}
\doxysubsubsection{\texorpdfstring{RXData3}{RXData3}}
{\footnotesize\ttfamily uint8\+\_\+t RXData3 = 0}
Definition at line 57 of file eusci\+\_\+b\+\_\+i2c\+\_\+ex5\+\_\+slave\+Multiple\+Slave.\+c.
Referenced by USCIB0\+\_\+\+ISR().

View File

@@ -0,0 +1,97 @@
\hypertarget{_m_s_p430_f5xx__6xx_2eusci__b__spi_2eusci__b__spi__ex1__master_8c}{}\doxysection{Resources/\+Software/msp430\+\_\+driverlib\+\_\+2\+\_\+91\+\_\+13\+\_\+01/examples/\+MSP430\+F5xx\+\_\+6xx/eusci\+\_\+b\+\_\+spi/eusci\+\_\+b\+\_\+spi\+\_\+ex1\+\_\+master.c File Reference}
\label{_m_s_p430_f5xx__6xx_2eusci__b__spi_2eusci__b__spi__ex1__master_8c}\index{Resources/Software/msp430\_driverlib\_2\_91\_13\_01/examples/MSP430F5xx\_6xx/eusci\_b\_spi/eusci\_b\_spi\_ex1\_master.c@{Resources/Software/msp430\_driverlib\_2\_91\_13\_01/examples/MSP430F5xx\_6xx/eusci\_b\_spi/eusci\_b\_spi\_ex1\_master.c}}
{\ttfamily \#include \char`\"{}driverlib.\+h\char`\"{}}\newline
\doxysubsection*{Functions}
\begin{DoxyCompactItemize}
\item
void \mbox{\hyperlink{_m_s_p430_f5xx__6xx_2eusci__b__spi_2eusci__b__spi__ex1__master_8c_a6288eba0f8e8ad3ab1544ad731eb7667}{main}} (void)
\item
void \mbox{\hyperlink{_m_s_p430_f5xx__6xx_2eusci__b__spi_2eusci__b__spi__ex1__master_8c_abb8ec2e0335e1b8389161437129cc39a}{USCI\+\_\+\+B0\+\_\+\+ISR}} (void)
\end{DoxyCompactItemize}
\doxysubsection*{Variables}
\begin{DoxyCompactItemize}
\item
uint8\+\_\+t \mbox{\hyperlink{_m_s_p430_f5xx__6xx_2eusci__b__spi_2eusci__b__spi__ex1__master_8c_a597ef8ed788642728c57f66b3a21544f}{RXData}} = 0
\item
uint8\+\_\+t \mbox{\hyperlink{_m_s_p430_f5xx__6xx_2eusci__b__spi_2eusci__b__spi__ex1__master_8c_ae369b896b0180297d61764643f99ba25}{TXData}} = 0
\end{DoxyCompactItemize}
\doxysubsection{Function Documentation}
\mbox{\Hypertarget{_m_s_p430_f5xx__6xx_2eusci__b__spi_2eusci__b__spi__ex1__master_8c_a6288eba0f8e8ad3ab1544ad731eb7667}\label{_m_s_p430_f5xx__6xx_2eusci__b__spi_2eusci__b__spi__ex1__master_8c_a6288eba0f8e8ad3ab1544ad731eb7667}}
\index{eusci\_b\_spi\_ex1\_master.c@{eusci\_b\_spi\_ex1\_master.c}!main@{main}}
\index{main@{main}!eusci\_b\_spi\_ex1\_master.c@{eusci\_b\_spi\_ex1\_master.c}}
\doxysubsubsection{\texorpdfstring{main()}{main()}}
{\footnotesize\ttfamily void main (\begin{DoxyParamCaption}\item[{void}]{ }\end{DoxyParamCaption})}
Definition at line 82 of file eusci\+\_\+b\+\_\+spi\+\_\+ex1\+\_\+master.\+c.
References \+\_\+\+\_\+delay\+\_\+cycles(), \+\_\+\+\_\+no\+\_\+operation(), i, param, and TXData.
\mbox{\Hypertarget{_m_s_p430_f5xx__6xx_2eusci__b__spi_2eusci__b__spi__ex1__master_8c_abb8ec2e0335e1b8389161437129cc39a}\label{_m_s_p430_f5xx__6xx_2eusci__b__spi_2eusci__b__spi__ex1__master_8c_abb8ec2e0335e1b8389161437129cc39a}}
\index{eusci\_b\_spi\_ex1\_master.c@{eusci\_b\_spi\_ex1\_master.c}!USCI\_B0\_ISR@{USCI\_B0\_ISR}}
\index{USCI\_B0\_ISR@{USCI\_B0\_ISR}!eusci\_b\_spi\_ex1\_master.c@{eusci\_b\_spi\_ex1\_master.c}}
\doxysubsubsection{\texorpdfstring{USCI\_B0\_ISR()}{USCI\_B0\_ISR()}}
{\footnotesize\ttfamily void USCI\+\_\+\+B0\+\_\+\+ISR (\begin{DoxyParamCaption}\item[{void}]{ }\end{DoxyParamCaption})}
Definition at line 141 of file eusci\+\_\+b\+\_\+spi\+\_\+ex1\+\_\+master.\+c.
References \+\_\+\+\_\+delay\+\_\+cycles(), RXData, and TXData.
\doxysubsection{Variable Documentation}
\mbox{\Hypertarget{_m_s_p430_f5xx__6xx_2eusci__b__spi_2eusci__b__spi__ex1__master_8c_a597ef8ed788642728c57f66b3a21544f}\label{_m_s_p430_f5xx__6xx_2eusci__b__spi_2eusci__b__spi__ex1__master_8c_a597ef8ed788642728c57f66b3a21544f}}
\index{eusci\_b\_spi\_ex1\_master.c@{eusci\_b\_spi\_ex1\_master.c}!RXData@{RXData}}
\index{RXData@{RXData}!eusci\_b\_spi\_ex1\_master.c@{eusci\_b\_spi\_ex1\_master.c}}
\doxysubsubsection{\texorpdfstring{RXData}{RXData}}
{\footnotesize\ttfamily uint8\+\_\+t RXData = 0}
USCI\+\_\+\+A0, SPI 3-\/Wire Master Incremented Data This example shows how SPI master talks to SPI slave using 3-\/wire mode. Incrementing data is sent by the master starting at 0x01. Received data is expected to be same as the previous transmission. e\+USCI RX ISR is used to handle communication with the CPU, normally in LPM0. If high, P1.\+0 indicates valid data reception. Because all execution after LPM0 is in ISRs, initialization waits for DCO to stabilize against ACLK. ACLK = $\sim$32.768k\+Hz, MCLK = SMCLK = DCO $\sim$ 1048k\+Hz. BRCLK = SMCLK/2
Use with eusci\+\_\+spi\+\_\+ex1\+\_\+slave code example. If slave is in debug mode, P1.\+1 slave reset signal conflicts with slave\textquotesingle{}s JTAG; to work around, use IAR\textquotesingle{}s \char`\"{}\+Release JTAG on Go\char`\"{} on slave device. If breakpoints are set in slave RX ISR, master must stopped also to avoid overrunning slave RXBUF. \DoxyHorRuler{0}
/$\vert$\textbackslash{} $\vert$ $\vert$ $\vert$ $\vert$ $\vert$ Master---+-\/$>$$\vert$\+RST $\vert$ $\vert$ $\vert$ $\vert$ P2.\+6$\vert$-\/$>$ Data Out (UCB0\+SIMO) $\vert$ $\vert$ $\vert$ P2.\+5$\vert$$<$-\/ Data In (UCB0\+SOMI) $\vert$ $\vert$ $\vert$ P2.\+7$\vert$-\/$>$ Serial Clock Out (UCB0\+CLK)
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 SPI peripheral
\item GPIO Port peripheral (for SPI pins)
\item UCS peripheral
\item UCB0\+SIMO
\item UCB0\+SOMI
\item UCB0\+CLK
\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 USCI\+\_\+\+A0\+\_\+\+VECTOR
\end{DoxyItemize}
Definition at line 79 of file eusci\+\_\+b\+\_\+spi\+\_\+ex1\+\_\+master.\+c.
Referenced by USCI\+\_\+\+B0\+\_\+\+ISR().
\mbox{\Hypertarget{_m_s_p430_f5xx__6xx_2eusci__b__spi_2eusci__b__spi__ex1__master_8c_ae369b896b0180297d61764643f99ba25}\label{_m_s_p430_f5xx__6xx_2eusci__b__spi_2eusci__b__spi__ex1__master_8c_ae369b896b0180297d61764643f99ba25}}
\index{eusci\_b\_spi\_ex1\_master.c@{eusci\_b\_spi\_ex1\_master.c}!TXData@{TXData}}
\index{TXData@{TXData}!eusci\_b\_spi\_ex1\_master.c@{eusci\_b\_spi\_ex1\_master.c}}
\doxysubsubsection{\texorpdfstring{TXData}{TXData}}
{\footnotesize\ttfamily uint8\+\_\+t TXData = 0}
Definition at line 80 of file eusci\+\_\+b\+\_\+spi\+\_\+ex1\+\_\+master.\+c.
Referenced by main(), and USCI\+\_\+\+B0\+\_\+\+ISR().

View File

@@ -0,0 +1,96 @@
\hypertarget{_m_s_p430_f5xx__6xx_2eusci__b__spi_2eusci__b__spi__ex1__slave_8c}{}\doxysection{Resources/\+Software/msp430\+\_\+driverlib\+\_\+2\+\_\+91\+\_\+13\+\_\+01/examples/\+MSP430\+F5xx\+\_\+6xx/eusci\+\_\+b\+\_\+spi/eusci\+\_\+b\+\_\+spi\+\_\+ex1\+\_\+slave.c File Reference}
\label{_m_s_p430_f5xx__6xx_2eusci__b__spi_2eusci__b__spi__ex1__slave_8c}\index{Resources/Software/msp430\_driverlib\_2\_91\_13\_01/examples/MSP430F5xx\_6xx/eusci\_b\_spi/eusci\_b\_spi\_ex1\_slave.c@{Resources/Software/msp430\_driverlib\_2\_91\_13\_01/examples/MSP430F5xx\_6xx/eusci\_b\_spi/eusci\_b\_spi\_ex1\_slave.c}}
{\ttfamily \#include \char`\"{}driverlib.\+h\char`\"{}}\newline
\doxysubsection*{Functions}
\begin{DoxyCompactItemize}
\item
void \mbox{\hyperlink{_m_s_p430_f5xx__6xx_2eusci__b__spi_2eusci__b__spi__ex1__slave_8c_a6288eba0f8e8ad3ab1544ad731eb7667}{main}} (void)
\item
void \mbox{\hyperlink{_m_s_p430_f5xx__6xx_2eusci__b__spi_2eusci__b__spi__ex1__slave_8c_abb8ec2e0335e1b8389161437129cc39a}{USCI\+\_\+\+B0\+\_\+\+ISR}} (void)
\end{DoxyCompactItemize}
\doxysubsection*{Variables}
\begin{DoxyCompactItemize}
\item
uint8\+\_\+t \mbox{\hyperlink{_m_s_p430_f5xx__6xx_2eusci__b__spi_2eusci__b__spi__ex1__slave_8c_ac23b8f721ac5b7a4315ba2c3409b9e0a}{transmit\+Data}} = 0x01
\item
uint8\+\_\+t \mbox{\hyperlink{_m_s_p430_f5xx__6xx_2eusci__b__spi_2eusci__b__spi__ex1__slave_8c_a216001f02f93a2c0b512c1b8724bdc60}{receive\+Data}} = 0x00
\end{DoxyCompactItemize}
\doxysubsection{Function Documentation}
\mbox{\Hypertarget{_m_s_p430_f5xx__6xx_2eusci__b__spi_2eusci__b__spi__ex1__slave_8c_a6288eba0f8e8ad3ab1544ad731eb7667}\label{_m_s_p430_f5xx__6xx_2eusci__b__spi_2eusci__b__spi__ex1__slave_8c_a6288eba0f8e8ad3ab1544ad731eb7667}}
\index{eusci\_b\_spi\_ex1\_slave.c@{eusci\_b\_spi\_ex1\_slave.c}!main@{main}}
\index{main@{main}!eusci\_b\_spi\_ex1\_slave.c@{eusci\_b\_spi\_ex1\_slave.c}}
\doxysubsubsection{\texorpdfstring{main()}{main()}}
{\footnotesize\ttfamily void main (\begin{DoxyParamCaption}\item[{void}]{ }\end{DoxyParamCaption})}
Definition at line 76 of file eusci\+\_\+b\+\_\+spi\+\_\+ex1\+\_\+slave.\+c.
References param.
\mbox{\Hypertarget{_m_s_p430_f5xx__6xx_2eusci__b__spi_2eusci__b__spi__ex1__slave_8c_abb8ec2e0335e1b8389161437129cc39a}\label{_m_s_p430_f5xx__6xx_2eusci__b__spi_2eusci__b__spi__ex1__slave_8c_abb8ec2e0335e1b8389161437129cc39a}}
\index{eusci\_b\_spi\_ex1\_slave.c@{eusci\_b\_spi\_ex1\_slave.c}!USCI\_B0\_ISR@{USCI\_B0\_ISR}}
\index{USCI\_B0\_ISR@{USCI\_B0\_ISR}!eusci\_b\_spi\_ex1\_slave.c@{eusci\_b\_spi\_ex1\_slave.c}}
\doxysubsubsection{\texorpdfstring{USCI\_B0\_ISR()}{USCI\_B0\_ISR()}}
{\footnotesize\ttfamily void USCI\+\_\+\+B0\+\_\+\+ISR (\begin{DoxyParamCaption}\item[{void}]{ }\end{DoxyParamCaption})}
Definition at line 120 of file eusci\+\_\+b\+\_\+spi\+\_\+ex1\+\_\+slave.\+c.
References receive\+Data, and transmit\+Data.
\doxysubsection{Variable Documentation}
\mbox{\Hypertarget{_m_s_p430_f5xx__6xx_2eusci__b__spi_2eusci__b__spi__ex1__slave_8c_a216001f02f93a2c0b512c1b8724bdc60}\label{_m_s_p430_f5xx__6xx_2eusci__b__spi_2eusci__b__spi__ex1__slave_8c_a216001f02f93a2c0b512c1b8724bdc60}}
\index{eusci\_b\_spi\_ex1\_slave.c@{eusci\_b\_spi\_ex1\_slave.c}!receiveData@{receiveData}}
\index{receiveData@{receiveData}!eusci\_b\_spi\_ex1\_slave.c@{eusci\_b\_spi\_ex1\_slave.c}}
\doxysubsubsection{\texorpdfstring{receiveData}{receiveData}}
{\footnotesize\ttfamily uint8\+\_\+t receive\+Data = 0x00}
Definition at line 74 of file eusci\+\_\+b\+\_\+spi\+\_\+ex1\+\_\+slave.\+c.
Referenced by USCI\+\_\+\+B0\+\_\+\+ISR().
\mbox{\Hypertarget{_m_s_p430_f5xx__6xx_2eusci__b__spi_2eusci__b__spi__ex1__slave_8c_ac23b8f721ac5b7a4315ba2c3409b9e0a}\label{_m_s_p430_f5xx__6xx_2eusci__b__spi_2eusci__b__spi__ex1__slave_8c_ac23b8f721ac5b7a4315ba2c3409b9e0a}}
\index{eusci\_b\_spi\_ex1\_slave.c@{eusci\_b\_spi\_ex1\_slave.c}!transmitData@{transmitData}}
\index{transmitData@{transmitData}!eusci\_b\_spi\_ex1\_slave.c@{eusci\_b\_spi\_ex1\_slave.c}}
\doxysubsubsection{\texorpdfstring{transmitData}{transmitData}}
{\footnotesize\ttfamily uint8\+\_\+t transmit\+Data = 0x01}
SPI slave talks to SPI master using 3-\/wire mode. Data is received from master and data from slave is then transmitted back to master. USCI RX ISR is used to handle communication, CPU normally in LPM4. Prior to initial data exchange, master pulses slaves RST for complete reset.
Use with eusci\+\_\+spi\+\_\+ex1\+\_\+master code example. If the slave is in debug mode, the reset signal from the master will conflict with slave\textquotesingle{}s JTAG; to work around, use IAR\textquotesingle{}s \char`\"{}\+Release JTAG on Go\char`\"{} on slave device. If breakpoints are set in slave RX ISR, master must stopped also to avoid overrunning slave RXBUF.\hypertarget{_m_s_p430_f5xx__6xx_2eusci__b__spi_2eusci__b__spi__ex1__slave_8c_autotoc_md40}{}\doxysubsubsection{Tesed on MSP430\+F67791A}\label{_m_s_p430_f5xx__6xx_2eusci__b__spi_2eusci__b__spi__ex1__slave_8c_autotoc_md40}
/$\vert$\textbackslash{} $\vert$ $\vert$ $\vert$ $\vert$ $\vert$ Master---+-\/$>$$\vert$\+RST $\vert$ $\vert$ $\vert$ $\vert$ P2.\+6$\vert$-\/$>$ Data Out (UCB0\+SIMO) $\vert$ $\vert$ $\vert$ P2.\+5$\vert$$<$-\/ Data In (UCB0\+SOMI) $\vert$ $\vert$ $\vert$ P2.\+7$\vert$-\/$>$ Serial Clock Out (UCB0\+CLK)
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 SPI peripheral
\item GPIO Port peripheral (for SPI pins)
\item UCB0\+SIMO
\item UCB0\+SOMI
\item UCB0\+CLK
\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 USCI\+\_\+\+A0\+\_\+\+VECTOR
\end{DoxyItemize}
Definition at line 74 of file eusci\+\_\+b\+\_\+spi\+\_\+ex1\+\_\+slave.\+c.
Referenced by USCI\+\_\+\+B0\+\_\+\+ISR().

View File

@@ -0,0 +1,25 @@
\hypertarget{_m_s_p430_f5xx__6xx_2gpio_2gpio__ex1__output_hi_8c}{}\doxysection{Resources/\+Software/msp430\+\_\+driverlib\+\_\+2\+\_\+91\+\_\+13\+\_\+01/examples/\+MSP430\+F5xx\+\_\+6xx/gpio/gpio\+\_\+ex1\+\_\+output\+Hi.c File Reference}
\label{_m_s_p430_f5xx__6xx_2gpio_2gpio__ex1__output_hi_8c}\index{Resources/Software/msp430\_driverlib\_2\_91\_13\_01/examples/MSP430F5xx\_6xx/gpio/gpio\_ex1\_outputHi.c@{Resources/Software/msp430\_driverlib\_2\_91\_13\_01/examples/MSP430F5xx\_6xx/gpio/gpio\_ex1\_outputHi.c}}
{\ttfamily \#include \char`\"{}driverlib.\+h\char`\"{}}\newline
\doxysubsection*{Functions}
\begin{DoxyCompactItemize}
\item
void \mbox{\hyperlink{_m_s_p430_f5xx__6xx_2gpio_2gpio__ex1__output_hi_8c_a6288eba0f8e8ad3ab1544ad731eb7667}{main}} (void)
\end{DoxyCompactItemize}
\doxysubsection{Function Documentation}
\mbox{\Hypertarget{_m_s_p430_f5xx__6xx_2gpio_2gpio__ex1__output_hi_8c_a6288eba0f8e8ad3ab1544ad731eb7667}\label{_m_s_p430_f5xx__6xx_2gpio_2gpio__ex1__output_hi_8c_a6288eba0f8e8ad3ab1544ad731eb7667}}
\index{gpio\_ex1\_outputHi.c@{gpio\_ex1\_outputHi.c}!main@{main}}
\index{main@{main}!gpio\_ex1\_outputHi.c@{gpio\_ex1\_outputHi.c}}
\doxysubsubsection{\texorpdfstring{main()}{main()}}
{\footnotesize\ttfamily void main (\begin{DoxyParamCaption}\item[{void}]{ }\end{DoxyParamCaption})}
Definition at line 58 of file gpio\+\_\+ex1\+\_\+output\+Hi.\+c.
References \+\_\+\+\_\+no\+\_\+operation(), and GPIO\+\_\+set\+Output\+High\+On\+Pin().

View File

@@ -0,0 +1,37 @@
\hypertarget{_m_s_p430_f5xx__6xx_2gpio_2gpio__ex2__input_capture_8c}{}\doxysection{Resources/\+Software/msp430\+\_\+driverlib\+\_\+2\+\_\+91\+\_\+13\+\_\+01/examples/\+MSP430\+F5xx\+\_\+6xx/gpio/gpio\+\_\+ex2\+\_\+input\+Capture.c File Reference}
\label{_m_s_p430_f5xx__6xx_2gpio_2gpio__ex2__input_capture_8c}\index{Resources/Software/msp430\_driverlib\_2\_91\_13\_01/examples/MSP430F5xx\_6xx/gpio/gpio\_ex2\_inputCapture.c@{Resources/Software/msp430\_driverlib\_2\_91\_13\_01/examples/MSP430F5xx\_6xx/gpio/gpio\_ex2\_inputCapture.c}}
{\ttfamily \#include \char`\"{}driverlib.\+h\char`\"{}}\newline
\doxysubsection*{Functions}
\begin{DoxyCompactItemize}
\item
void \mbox{\hyperlink{_m_s_p430_f5xx__6xx_2gpio_2gpio__ex2__input_capture_8c_a6288eba0f8e8ad3ab1544ad731eb7667}{main}} (void)
\item
void \mbox{\hyperlink{_m_s_p430_f5xx__6xx_2gpio_2gpio__ex2__input_capture_8c_a3a8f9242a81f4c686517653be5fbf412}{Port\+\_\+1}} (void)
\end{DoxyCompactItemize}
\doxysubsection{Function Documentation}
\mbox{\Hypertarget{_m_s_p430_f5xx__6xx_2gpio_2gpio__ex2__input_capture_8c_a6288eba0f8e8ad3ab1544ad731eb7667}\label{_m_s_p430_f5xx__6xx_2gpio_2gpio__ex2__input_capture_8c_a6288eba0f8e8ad3ab1544ad731eb7667}}
\index{gpio\_ex2\_inputCapture.c@{gpio\_ex2\_inputCapture.c}!main@{main}}
\index{main@{main}!gpio\_ex2\_inputCapture.c@{gpio\_ex2\_inputCapture.c}}
\doxysubsubsection{\texorpdfstring{main()}{main()}}
{\footnotesize\ttfamily void main (\begin{DoxyParamCaption}\item[{void}]{ }\end{DoxyParamCaption})}
Definition at line 62 of file gpio\+\_\+ex2\+\_\+input\+Capture.\+c.
References \+\_\+\+\_\+no\+\_\+operation().
\mbox{\Hypertarget{_m_s_p430_f5xx__6xx_2gpio_2gpio__ex2__input_capture_8c_a3a8f9242a81f4c686517653be5fbf412}\label{_m_s_p430_f5xx__6xx_2gpio_2gpio__ex2__input_capture_8c_a3a8f9242a81f4c686517653be5fbf412}}
\index{gpio\_ex2\_inputCapture.c@{gpio\_ex2\_inputCapture.c}!Port\_1@{Port\_1}}
\index{Port\_1@{Port\_1}!gpio\_ex2\_inputCapture.c@{gpio\_ex2\_inputCapture.c}}
\doxysubsubsection{\texorpdfstring{Port\_1()}{Port\_1()}}
{\footnotesize\ttfamily void Port\+\_\+1 (\begin{DoxyParamCaption}\item[{void}]{ }\end{DoxyParamCaption})}
Definition at line 117 of file gpio\+\_\+ex2\+\_\+input\+Capture.\+c.

View File

@@ -0,0 +1,43 @@
\hypertarget{_m_s_p430_f5xx__6xx_2gpio_2gpio__ex3__software_poll_8c}{}\doxysection{Resources/\+Software/msp430\+\_\+driverlib\+\_\+2\+\_\+91\+\_\+13\+\_\+01/examples/\+MSP430\+F5xx\+\_\+6xx/gpio/gpio\+\_\+ex3\+\_\+software\+Poll.c File Reference}
\label{_m_s_p430_f5xx__6xx_2gpio_2gpio__ex3__software_poll_8c}\index{Resources/Software/msp430\_driverlib\_2\_91\_13\_01/examples/MSP430F5xx\_6xx/gpio/gpio\_ex3\_softwarePoll.c@{Resources/Software/msp430\_driverlib\_2\_91\_13\_01/examples/MSP430F5xx\_6xx/gpio/gpio\_ex3\_softwarePoll.c}}
{\ttfamily \#include \char`\"{}driverlib.\+h\char`\"{}}\newline
\doxysubsection*{Functions}
\begin{DoxyCompactItemize}
\item
void \mbox{\hyperlink{_m_s_p430_f5xx__6xx_2gpio_2gpio__ex3__software_poll_8c_a6288eba0f8e8ad3ab1544ad731eb7667}{main}} (void)
\end{DoxyCompactItemize}
\doxysubsection{Function Documentation}
\mbox{\Hypertarget{_m_s_p430_f5xx__6xx_2gpio_2gpio__ex3__software_poll_8c_a6288eba0f8e8ad3ab1544ad731eb7667}\label{_m_s_p430_f5xx__6xx_2gpio_2gpio__ex3__software_poll_8c_a6288eba0f8e8ad3ab1544ad731eb7667}}
\index{gpio\_ex3\_softwarePoll.c@{gpio\_ex3\_softwarePoll.c}!main@{main}}
\index{main@{main}!gpio\_ex3\_softwarePoll.c@{gpio\_ex3\_softwarePoll.c}}
\doxysubsubsection{\texorpdfstring{main()}{main()}}
{\footnotesize\ttfamily void main (\begin{DoxyParamCaption}\item[{void}]{ }\end{DoxyParamCaption})}
Software Poll P1.\+4, Set P1.\+0 if P1.\+4 = 1
Poll P1.\+4 in a loop, if hi P1.\+0 is set, if low, P1.\+0 reset. ACLK = n/a, MCLK = SMCLK = default DCO \begin{DoxyVerb} MSP430F5529, MSP430FR5739
-----------------
/|\| XIN|-
| | |
--|RST XOUT|-
\end{DoxyVerb}
/$\vert$\textbackslash{} $\vert$ $\vert$ --o--$\vert$\+P1.4 P1.\+0$\vert$-\/-\/$>$LED $|$/
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 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 None
\end{DoxyItemize}
Definition at line 59 of file gpio\+\_\+ex3\+\_\+software\+Poll.\+c.
References GPIO\+\_\+set\+Output\+High\+On\+Pin(), and GPIO\+\_\+set\+Output\+Low\+On\+Pin().

View File

@@ -0,0 +1,44 @@
\hypertarget{_m_s_p430_f5xx__6xx_2gpio_2gpio__ex4__write_to_port1_8c}{}\doxysection{Resources/\+Software/msp430\+\_\+driverlib\+\_\+2\+\_\+91\+\_\+13\+\_\+01/examples/\+MSP430\+F5xx\+\_\+6xx/gpio/gpio\+\_\+ex4\+\_\+write\+To\+Port1.c File Reference}
\label{_m_s_p430_f5xx__6xx_2gpio_2gpio__ex4__write_to_port1_8c}\index{Resources/Software/msp430\_driverlib\_2\_91\_13\_01/examples/MSP430F5xx\_6xx/gpio/gpio\_ex4\_writeToPort1.c@{Resources/Software/msp430\_driverlib\_2\_91\_13\_01/examples/MSP430F5xx\_6xx/gpio/gpio\_ex4\_writeToPort1.c}}
{\ttfamily \#include \char`\"{}driverlib.\+h\char`\"{}}\newline
\doxysubsection*{Functions}
\begin{DoxyCompactItemize}
\item
void \mbox{\hyperlink{_m_s_p430_f5xx__6xx_2gpio_2gpio__ex4__write_to_port1_8c_a6288eba0f8e8ad3ab1544ad731eb7667}{main}} (void)
\end{DoxyCompactItemize}
\doxysubsection{Function Documentation}
\mbox{\Hypertarget{_m_s_p430_f5xx__6xx_2gpio_2gpio__ex4__write_to_port1_8c_a6288eba0f8e8ad3ab1544ad731eb7667}\label{_m_s_p430_f5xx__6xx_2gpio_2gpio__ex4__write_to_port1_8c_a6288eba0f8e8ad3ab1544ad731eb7667}}
\index{gpio\_ex4\_writeToPort1.c@{gpio\_ex4\_writeToPort1.c}!main@{main}}
\index{main@{main}!gpio\_ex4\_writeToPort1.c@{gpio\_ex4\_writeToPort1.c}}
\doxysubsubsection{\texorpdfstring{main()}{main()}}
{\footnotesize\ttfamily void main (\begin{DoxyParamCaption}\item[{void}]{ }\end{DoxyParamCaption})}
Write a byte to Port 1
Description\+: Writes a byte(0x\+FF) to Port 1 and stays in LPM4 mode ACLK = n/a, MCLK = SMCLK = default DCO \begin{DoxyVerb} MSP430F5529, MSP430FR5739
-----------------
/|\| |
| | |
--|RST |
| P1.x|-->HI
| |
| |
\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 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 None.
\end{DoxyItemize}
Definition at line 59 of file gpio\+\_\+ex4\+\_\+write\+To\+Port1.\+c.
References \+\_\+\+\_\+no\+\_\+operation(), and GPIO\+\_\+set\+Output\+High\+On\+Pin().

View File

@@ -0,0 +1,52 @@
\hypertarget{_m_s_p430_f5xx__6xx_2mpy32_2mpy32__ex10__32bit_signed_multiply_8c}{}\doxysection{Resources/\+Software/msp430\+\_\+driverlib\+\_\+2\+\_\+91\+\_\+13\+\_\+01/examples/\+MSP430\+F5xx\+\_\+6xx/mpy32/mpy32\+\_\+ex10\+\_\+32bit\+Signed\+Multiply.c File Reference}
\label{_m_s_p430_f5xx__6xx_2mpy32_2mpy32__ex10__32bit_signed_multiply_8c}\index{Resources/Software/msp430\_driverlib\_2\_91\_13\_01/examples/MSP430F5xx\_6xx/mpy32/mpy32\_ex10\_32bitSignedMultiply.c@{Resources/Software/msp430\_driverlib\_2\_91\_13\_01/examples/MSP430F5xx\_6xx/mpy32/mpy32\_ex10\_32bitSignedMultiply.c}}
{\ttfamily \#include \char`\"{}driverlib.\+h\char`\"{}}\newline
\doxysubsection*{Functions}
\begin{DoxyCompactItemize}
\item
void \mbox{\hyperlink{_m_s_p430_f5xx__6xx_2mpy32_2mpy32__ex10__32bit_signed_multiply_8c_a6288eba0f8e8ad3ab1544ad731eb7667}{main}} (void)
\end{DoxyCompactItemize}
\doxysubsection{Function Documentation}
\mbox{\Hypertarget{_m_s_p430_f5xx__6xx_2mpy32_2mpy32__ex10__32bit_signed_multiply_8c_a6288eba0f8e8ad3ab1544ad731eb7667}\label{_m_s_p430_f5xx__6xx_2mpy32_2mpy32__ex10__32bit_signed_multiply_8c_a6288eba0f8e8ad3ab1544ad731eb7667}}
\index{mpy32\_ex10\_32bitSignedMultiply.c@{mpy32\_ex10\_32bitSignedMultiply.c}!main@{main}}
\index{main@{main}!mpy32\_ex10\_32bitSignedMultiply.c@{mpy32\_ex10\_32bitSignedMultiply.c}}
\doxysubsubsection{\texorpdfstring{main()}{main()}}
{\footnotesize\ttfamily void main (\begin{DoxyParamCaption}\item[{void}]{ }\end{DoxyParamCaption})}
MPY -\/ 32x32 Signed Multiply
Hardware multiplier is used to multiply two numbers. The calculation is automatically initiated after the second operand is loaded. Results are stored in RES0, RES1, RES2 and RES3.
ACLK = 32.\+768k\+Hz, MCLK = SMCLK = default DCO\hypertarget{_m_s_p430_f5xx__6xx_2mpy32_2mpy32__ex10__32bit_signed_multiply_8c_autotoc_md45}{}\doxysubsubsection{Tested On\+: MSP430\+F5438\+A,\+MSP430\+FR5739,\+MSP430\+FR5969,\+MSP430\+FR2433}\label{_m_s_p430_f5xx__6xx_2mpy32_2mpy32__ex10__32bit_signed_multiply_8c_autotoc_md45}
\tabulinesep=1mm
\begin{longtabu}spread 0pt [c]{*{2}{|X[-1]}|}
\hline
\PBS\centering \cellcolor{\tableheadbgcolor}\textbf{ / }&\PBS\centering \cellcolor{\tableheadbgcolor}\textbf{ $|$ }\\\cline{1-2}
\endfirsthead
\hline
\endfoot
\hline
\PBS\centering \cellcolor{\tableheadbgcolor}\textbf{ / }&\PBS\centering \cellcolor{\tableheadbgcolor}\textbf{ $|$ }\\\cline{1-2}
\endhead
-- &RST \\\cline{1-2}
\end{longtabu}
$\vert$ $\vert$ $\vert$ $\vert$
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 MPY 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 NONE
\end{DoxyItemize}
Definition at line 63 of file mpy32\+\_\+ex10\+\_\+32bit\+Signed\+Multiply.\+c.
References \+\_\+\+\_\+no\+\_\+operation().

View File

@@ -0,0 +1,52 @@
\hypertarget{_m_s_p430_f5xx__6xx_2mpy32_2mpy32__ex11__32bit_signed_multiply_accum_8c}{}\doxysection{Resources/\+Software/msp430\+\_\+driverlib\+\_\+2\+\_\+91\+\_\+13\+\_\+01/examples/\+MSP430\+F5xx\+\_\+6xx/mpy32/mpy32\+\_\+ex11\+\_\+32bit\+Signed\+Multiply\+Accum.c File Reference}
\label{_m_s_p430_f5xx__6xx_2mpy32_2mpy32__ex11__32bit_signed_multiply_accum_8c}\index{Resources/Software/msp430\_driverlib\_2\_91\_13\_01/examples/MSP430F5xx\_6xx/mpy32/mpy32\_ex11\_32bitSignedMultiplyAccum.c@{Resources/Software/msp430\_driverlib\_2\_91\_13\_01/examples/MSP430F5xx\_6xx/mpy32/mpy32\_ex11\_32bitSignedMultiplyAccum.c}}
{\ttfamily \#include \char`\"{}driverlib.\+h\char`\"{}}\newline
\doxysubsection*{Functions}
\begin{DoxyCompactItemize}
\item
void \mbox{\hyperlink{_m_s_p430_f5xx__6xx_2mpy32_2mpy32__ex11__32bit_signed_multiply_accum_8c_a6288eba0f8e8ad3ab1544ad731eb7667}{main}} (void)
\end{DoxyCompactItemize}
\doxysubsection{Function Documentation}
\mbox{\Hypertarget{_m_s_p430_f5xx__6xx_2mpy32_2mpy32__ex11__32bit_signed_multiply_accum_8c_a6288eba0f8e8ad3ab1544ad731eb7667}\label{_m_s_p430_f5xx__6xx_2mpy32_2mpy32__ex11__32bit_signed_multiply_accum_8c_a6288eba0f8e8ad3ab1544ad731eb7667}}
\index{mpy32\_ex11\_32bitSignedMultiplyAccum.c@{mpy32\_ex11\_32bitSignedMultiplyAccum.c}!main@{main}}
\index{main@{main}!mpy32\_ex11\_32bitSignedMultiplyAccum.c@{mpy32\_ex11\_32bitSignedMultiplyAccum.c}}
\doxysubsubsection{\texorpdfstring{main()}{main()}}
{\footnotesize\ttfamily void main (\begin{DoxyParamCaption}\item[{void}]{ }\end{DoxyParamCaption})}
MPY -\/ 32x32 Signed Multiply Accumalate
Hardware multiplier is used to multiply-\/accumalate a set of numbers. The first calculation is automatically initiated after the second operand is loaded. A second multiply-\/accumulate operation is performed next. Results are stored in RES0, RES1, RES2 and RES3. SUMEXT contains the extended sign of the result.
ACLK = 32.\+768k\+Hz, MCLK = SMCLK = default DCO\hypertarget{_m_s_p430_f5xx__6xx_2mpy32_2mpy32__ex11__32bit_signed_multiply_accum_8c_autotoc_md46}{}\doxysubsubsection{Tested On\+: MSP430\+F5438\+A,\+MSP430\+FR5739,\+MSP430\+FR5969,\+MSP430\+FR2433}\label{_m_s_p430_f5xx__6xx_2mpy32_2mpy32__ex11__32bit_signed_multiply_accum_8c_autotoc_md46}
\tabulinesep=1mm
\begin{longtabu}spread 0pt [c]{*{2}{|X[-1]}|}
\hline
\PBS\centering \cellcolor{\tableheadbgcolor}\textbf{ / }&\PBS\centering \cellcolor{\tableheadbgcolor}\textbf{ $|$ }\\\cline{1-2}
\endfirsthead
\hline
\endfoot
\hline
\PBS\centering \cellcolor{\tableheadbgcolor}\textbf{ / }&\PBS\centering \cellcolor{\tableheadbgcolor}\textbf{ $|$ }\\\cline{1-2}
\endhead
-- &RST \\\cline{1-2}
\end{longtabu}
$\vert$ $\vert$ $\vert$ $\vert$
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 MPY 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 NONE
\end{DoxyItemize}
Definition at line 66 of file mpy32\+\_\+ex11\+\_\+32bit\+Signed\+Multiply\+Accum.\+c.
References \+\_\+\+\_\+no\+\_\+operation().

View File

@@ -0,0 +1,52 @@
\hypertarget{_m_s_p430_f5xx__6xx_2mpy32_2mpy32__ex12__32bit_unsigned_multiply_accum_8c}{}\doxysection{Resources/\+Software/msp430\+\_\+driverlib\+\_\+2\+\_\+91\+\_\+13\+\_\+01/examples/\+MSP430\+F5xx\+\_\+6xx/mpy32/mpy32\+\_\+ex12\+\_\+32bit\+Unsigned\+Multiply\+Accum.c File Reference}
\label{_m_s_p430_f5xx__6xx_2mpy32_2mpy32__ex12__32bit_unsigned_multiply_accum_8c}\index{Resources/Software/msp430\_driverlib\_2\_91\_13\_01/examples/MSP430F5xx\_6xx/mpy32/mpy32\_ex12\_32bitUnsignedMultiplyAccum.c@{Resources/Software/msp430\_driverlib\_2\_91\_13\_01/examples/MSP430F5xx\_6xx/mpy32/mpy32\_ex12\_32bitUnsignedMultiplyAccum.c}}
{\ttfamily \#include \char`\"{}driverlib.\+h\char`\"{}}\newline
\doxysubsection*{Functions}
\begin{DoxyCompactItemize}
\item
void \mbox{\hyperlink{_m_s_p430_f5xx__6xx_2mpy32_2mpy32__ex12__32bit_unsigned_multiply_accum_8c_a6288eba0f8e8ad3ab1544ad731eb7667}{main}} (void)
\end{DoxyCompactItemize}
\doxysubsection{Function Documentation}
\mbox{\Hypertarget{_m_s_p430_f5xx__6xx_2mpy32_2mpy32__ex12__32bit_unsigned_multiply_accum_8c_a6288eba0f8e8ad3ab1544ad731eb7667}\label{_m_s_p430_f5xx__6xx_2mpy32_2mpy32__ex12__32bit_unsigned_multiply_accum_8c_a6288eba0f8e8ad3ab1544ad731eb7667}}
\index{mpy32\_ex12\_32bitUnsignedMultiplyAccum.c@{mpy32\_ex12\_32bitUnsignedMultiplyAccum.c}!main@{main}}
\index{main@{main}!mpy32\_ex12\_32bitUnsignedMultiplyAccum.c@{mpy32\_ex12\_32bitUnsignedMultiplyAccum.c}}
\doxysubsubsection{\texorpdfstring{main()}{main()}}
{\footnotesize\ttfamily void main (\begin{DoxyParamCaption}\item[{void}]{ }\end{DoxyParamCaption})}
MPY -\/ 32x32 Unsigned Multiply Accumalate
Hardware multiplier is used to multiply-\/accumalate a set of numbers. The first calculation is automatically initiated after the second operand is loaded. A second multiply-\/accumulate operation is performed next. Results are stored in RES0, RES1, RES2 and RES3. SUMEXT contains the extended sign of the result.
ACLK = 32.\+768k\+Hz, MCLK = SMCLK = default DCO\hypertarget{_m_s_p430_f5xx__6xx_2mpy32_2mpy32__ex12__32bit_unsigned_multiply_accum_8c_autotoc_md47}{}\doxysubsubsection{Tested On\+: MSP430\+F5438\+A,\+MSP430\+FR5739,\+MSP430\+FR5969,\+MSP430\+FR2433}\label{_m_s_p430_f5xx__6xx_2mpy32_2mpy32__ex12__32bit_unsigned_multiply_accum_8c_autotoc_md47}
\tabulinesep=1mm
\begin{longtabu}spread 0pt [c]{*{2}{|X[-1]}|}
\hline
\PBS\centering \cellcolor{\tableheadbgcolor}\textbf{ / }&\PBS\centering \cellcolor{\tableheadbgcolor}\textbf{ $|$ }\\\cline{1-2}
\endfirsthead
\hline
\endfoot
\hline
\PBS\centering \cellcolor{\tableheadbgcolor}\textbf{ / }&\PBS\centering \cellcolor{\tableheadbgcolor}\textbf{ $|$ }\\\cline{1-2}
\endhead
-- &RST \\\cline{1-2}
\end{longtabu}
$\vert$ $\vert$ $\vert$ $\vert$
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 MPY 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 NONE
\end{DoxyItemize}
Definition at line 65 of file mpy32\+\_\+ex12\+\_\+32bit\+Unsigned\+Multiply\+Accum.\+c.
References \+\_\+\+\_\+no\+\_\+operation().

View File

@@ -0,0 +1,106 @@
\hypertarget{_m_s_p430_f5xx__6xx_2mpy32_2mpy32__ex13__saturation_underflow_8c}{}\doxysection{Resources/\+Software/msp430\+\_\+driverlib\+\_\+2\+\_\+91\+\_\+13\+\_\+01/examples/\+MSP430\+F5xx\+\_\+6xx/mpy32/mpy32\+\_\+ex13\+\_\+saturation\+Underflow.c File Reference}
\label{_m_s_p430_f5xx__6xx_2mpy32_2mpy32__ex13__saturation_underflow_8c}\index{Resources/Software/msp430\_driverlib\_2\_91\_13\_01/examples/MSP430F5xx\_6xx/mpy32/mpy32\_ex13\_saturationUnderflow.c@{Resources/Software/msp430\_driverlib\_2\_91\_13\_01/examples/MSP430F5xx\_6xx/mpy32/mpy32\_ex13\_saturationUnderflow.c}}
{\ttfamily \#include \char`\"{}driverlib.\+h\char`\"{}}\newline
\doxysubsection*{Functions}
\begin{DoxyCompactItemize}
\item
void \mbox{\hyperlink{_m_s_p430_f5xx__6xx_2mpy32_2mpy32__ex13__saturation_underflow_8c_a6288eba0f8e8ad3ab1544ad731eb7667}{main}} (void)
\end{DoxyCompactItemize}
\doxysubsection*{Variables}
\begin{DoxyCompactItemize}
\item
uint32\+\_\+t \mbox{\hyperlink{_m_s_p430_f5xx__6xx_2mpy32_2mpy32__ex13__saturation_underflow_8c_a393f0b6791aa78cf29746a1877494247}{Result}}
\item
uint16\+\_\+t \mbox{\hyperlink{_m_s_p430_f5xx__6xx_2mpy32_2mpy32__ex13__saturation_underflow_8c_a9763beb1d3667cef32e0da3789b01e13}{Result\+\_\+lower16}}
\item
uint16\+\_\+t \mbox{\hyperlink{_m_s_p430_f5xx__6xx_2mpy32_2mpy32__ex13__saturation_underflow_8c_afbdc37ba5018f94d28647a31a235b701}{Result\+\_\+upper16}}
\end{DoxyCompactItemize}
\doxysubsection{Function Documentation}
\mbox{\Hypertarget{_m_s_p430_f5xx__6xx_2mpy32_2mpy32__ex13__saturation_underflow_8c_a6288eba0f8e8ad3ab1544ad731eb7667}\label{_m_s_p430_f5xx__6xx_2mpy32_2mpy32__ex13__saturation_underflow_8c_a6288eba0f8e8ad3ab1544ad731eb7667}}
\index{mpy32\_ex13\_saturationUnderflow.c@{mpy32\_ex13\_saturationUnderflow.c}!main@{main}}
\index{main@{main}!mpy32\_ex13\_saturationUnderflow.c@{mpy32\_ex13\_saturationUnderflow.c}}
\doxysubsubsection{\texorpdfstring{main()}{main()}}
{\footnotesize\ttfamily void main (\begin{DoxyParamCaption}\item[{void}]{ }\end{DoxyParamCaption})}
Definition at line 69 of file mpy32\+\_\+ex13\+\_\+saturation\+Underflow.\+c.
References \+\_\+\+\_\+no\+\_\+operation(), Result, Result\+\_\+lower16, and Result\+\_\+upper16.
\doxysubsection{Variable Documentation}
\mbox{\Hypertarget{_m_s_p430_f5xx__6xx_2mpy32_2mpy32__ex13__saturation_underflow_8c_a393f0b6791aa78cf29746a1877494247}\label{_m_s_p430_f5xx__6xx_2mpy32_2mpy32__ex13__saturation_underflow_8c_a393f0b6791aa78cf29746a1877494247}}
\index{mpy32\_ex13\_saturationUnderflow.c@{mpy32\_ex13\_saturationUnderflow.c}!Result@{Result}}
\index{Result@{Result}!mpy32\_ex13\_saturationUnderflow.c@{mpy32\_ex13\_saturationUnderflow.c}}
\doxysubsubsection{\texorpdfstring{Result}{Result}}
{\footnotesize\ttfamily uint32\+\_\+t Result}
MPY -\/ Saturation Mpode Underflow Test
Description\+: The example illustrates a special case showing underflow. Underflow occurs when adding 2 negative numbers yields a positive result. By having the saturation mode enabled, the result if rounded off to the highest negative number (0x8000.\+0000 for 16 bit). Results can be viewed in the debugger window.
ACLK = 32.\+768k\+Hz, MCLK = SMCLK = default DCO\hypertarget{_m_s_p430_f5xx__6xx_2mpy32_2mpy32__ex13__saturation_underflow_8c_autotoc_md48}{}\doxysubsubsection{Tested On\+: MSP430\+F5438\+A,\+MSP430\+FR5739,\+MSP430\+FR5969,\+MSP430\+FR2433}\label{_m_s_p430_f5xx__6xx_2mpy32_2mpy32__ex13__saturation_underflow_8c_autotoc_md48}
\tabulinesep=1mm
\begin{longtabu}spread 0pt [c]{*{2}{|X[-1]}|}
\hline
\PBS\centering \cellcolor{\tableheadbgcolor}\textbf{ / }&\PBS\centering \cellcolor{\tableheadbgcolor}\textbf{ $|$ }\\\cline{1-2}
\endfirsthead
\hline
\endfoot
\hline
\PBS\centering \cellcolor{\tableheadbgcolor}\textbf{ / }&\PBS\centering \cellcolor{\tableheadbgcolor}\textbf{ $|$ }\\\cline{1-2}
\endhead
-- &RST \\\cline{1-2}
\end{longtabu}
$\vert$ $\vert$ $\vert$ $\vert$
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 MPY 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 NONE
\end{DoxyItemize}
Definition at line 65 of file mpy32\+\_\+ex13\+\_\+saturation\+Underflow.\+c.
Referenced by main().
\mbox{\Hypertarget{_m_s_p430_f5xx__6xx_2mpy32_2mpy32__ex13__saturation_underflow_8c_a9763beb1d3667cef32e0da3789b01e13}\label{_m_s_p430_f5xx__6xx_2mpy32_2mpy32__ex13__saturation_underflow_8c_a9763beb1d3667cef32e0da3789b01e13}}
\index{mpy32\_ex13\_saturationUnderflow.c@{mpy32\_ex13\_saturationUnderflow.c}!Result\_lower16@{Result\_lower16}}
\index{Result\_lower16@{Result\_lower16}!mpy32\_ex13\_saturationUnderflow.c@{mpy32\_ex13\_saturationUnderflow.c}}
\doxysubsubsection{\texorpdfstring{Result\_lower16}{Result\_lower16}}
{\footnotesize\ttfamily uint16\+\_\+t Result\+\_\+lower16}
Definition at line 66 of file mpy32\+\_\+ex13\+\_\+saturation\+Underflow.\+c.
Referenced by main().
\mbox{\Hypertarget{_m_s_p430_f5xx__6xx_2mpy32_2mpy32__ex13__saturation_underflow_8c_afbdc37ba5018f94d28647a31a235b701}\label{_m_s_p430_f5xx__6xx_2mpy32_2mpy32__ex13__saturation_underflow_8c_afbdc37ba5018f94d28647a31a235b701}}
\index{mpy32\_ex13\_saturationUnderflow.c@{mpy32\_ex13\_saturationUnderflow.c}!Result\_upper16@{Result\_upper16}}
\index{Result\_upper16@{Result\_upper16}!mpy32\_ex13\_saturationUnderflow.c@{mpy32\_ex13\_saturationUnderflow.c}}
\doxysubsubsection{\texorpdfstring{Result\_upper16}{Result\_upper16}}
{\footnotesize\ttfamily uint16\+\_\+t Result\+\_\+upper16}
Definition at line 67 of file mpy32\+\_\+ex13\+\_\+saturation\+Underflow.\+c.
Referenced by main().

View File

@@ -0,0 +1,106 @@
\hypertarget{_m_s_p430_f5xx__6xx_2mpy32_2mpy32__ex14__saturation_overflow_8c}{}\doxysection{Resources/\+Software/msp430\+\_\+driverlib\+\_\+2\+\_\+91\+\_\+13\+\_\+01/examples/\+MSP430\+F5xx\+\_\+6xx/mpy32/mpy32\+\_\+ex14\+\_\+saturation\+Overflow.c File Reference}
\label{_m_s_p430_f5xx__6xx_2mpy32_2mpy32__ex14__saturation_overflow_8c}\index{Resources/Software/msp430\_driverlib\_2\_91\_13\_01/examples/MSP430F5xx\_6xx/mpy32/mpy32\_ex14\_saturationOverflow.c@{Resources/Software/msp430\_driverlib\_2\_91\_13\_01/examples/MSP430F5xx\_6xx/mpy32/mpy32\_ex14\_saturationOverflow.c}}
{\ttfamily \#include \char`\"{}driverlib.\+h\char`\"{}}\newline
\doxysubsection*{Functions}
\begin{DoxyCompactItemize}
\item
void \mbox{\hyperlink{_m_s_p430_f5xx__6xx_2mpy32_2mpy32__ex14__saturation_overflow_8c_a6288eba0f8e8ad3ab1544ad731eb7667}{main}} (void)
\end{DoxyCompactItemize}
\doxysubsection*{Variables}
\begin{DoxyCompactItemize}
\item
uint32\+\_\+t \mbox{\hyperlink{_m_s_p430_f5xx__6xx_2mpy32_2mpy32__ex14__saturation_overflow_8c_a393f0b6791aa78cf29746a1877494247}{Result}}
\item
uint16\+\_\+t \mbox{\hyperlink{_m_s_p430_f5xx__6xx_2mpy32_2mpy32__ex14__saturation_overflow_8c_a9763beb1d3667cef32e0da3789b01e13}{Result\+\_\+lower16}}
\item
uint16\+\_\+t \mbox{\hyperlink{_m_s_p430_f5xx__6xx_2mpy32_2mpy32__ex14__saturation_overflow_8c_afbdc37ba5018f94d28647a31a235b701}{Result\+\_\+upper16}}
\end{DoxyCompactItemize}
\doxysubsection{Function Documentation}
\mbox{\Hypertarget{_m_s_p430_f5xx__6xx_2mpy32_2mpy32__ex14__saturation_overflow_8c_a6288eba0f8e8ad3ab1544ad731eb7667}\label{_m_s_p430_f5xx__6xx_2mpy32_2mpy32__ex14__saturation_overflow_8c_a6288eba0f8e8ad3ab1544ad731eb7667}}
\index{mpy32\_ex14\_saturationOverflow.c@{mpy32\_ex14\_saturationOverflow.c}!main@{main}}
\index{main@{main}!mpy32\_ex14\_saturationOverflow.c@{mpy32\_ex14\_saturationOverflow.c}}
\doxysubsubsection{\texorpdfstring{main()}{main()}}
{\footnotesize\ttfamily void main (\begin{DoxyParamCaption}\item[{void}]{ }\end{DoxyParamCaption})}
Definition at line 70 of file mpy32\+\_\+ex14\+\_\+saturation\+Overflow.\+c.
References \+\_\+\+\_\+no\+\_\+operation(), Result, Result\+\_\+lower16, and Result\+\_\+upper16.
\doxysubsection{Variable Documentation}
\mbox{\Hypertarget{_m_s_p430_f5xx__6xx_2mpy32_2mpy32__ex14__saturation_overflow_8c_a393f0b6791aa78cf29746a1877494247}\label{_m_s_p430_f5xx__6xx_2mpy32_2mpy32__ex14__saturation_overflow_8c_a393f0b6791aa78cf29746a1877494247}}
\index{mpy32\_ex14\_saturationOverflow.c@{mpy32\_ex14\_saturationOverflow.c}!Result@{Result}}
\index{Result@{Result}!mpy32\_ex14\_saturationOverflow.c@{mpy32\_ex14\_saturationOverflow.c}}
\doxysubsubsection{\texorpdfstring{Result}{Result}}
{\footnotesize\ttfamily uint32\+\_\+t Result}
MPY -\/ Saturation Mode Overflow Test
The example illustrates a special case showing overflow. The addition result of 2 positive numbers may exceed the highest positive number (0x7\+FFF FFFF for 32 bit result) due to overflow indicating a negative result. By having the saturation mode enabled, this result can be truncated off to this highest positive number. Results with and without saturation mode are shown.
ACLK = 32.\+768k\+Hz, MCLK = SMCLK = default DCO\hypertarget{_m_s_p430_f5xx__6xx_2mpy32_2mpy32__ex14__saturation_overflow_8c_autotoc_md49}{}\doxysubsubsection{Tested On\+: MSP430\+F5438\+A,\+MSP430\+FR5739,\+MSP430\+FR5969,\+MSP430\+FR2433}\label{_m_s_p430_f5xx__6xx_2mpy32_2mpy32__ex14__saturation_overflow_8c_autotoc_md49}
\tabulinesep=1mm
\begin{longtabu}spread 0pt [c]{*{2}{|X[-1]}|}
\hline
\PBS\centering \cellcolor{\tableheadbgcolor}\textbf{ / }&\PBS\centering \cellcolor{\tableheadbgcolor}\textbf{ $|$ }\\\cline{1-2}
\endfirsthead
\hline
\endfoot
\hline
\PBS\centering \cellcolor{\tableheadbgcolor}\textbf{ / }&\PBS\centering \cellcolor{\tableheadbgcolor}\textbf{ $|$ }\\\cline{1-2}
\endhead
-- &RST \\\cline{1-2}
\end{longtabu}
$\vert$ $\vert$ $\vert$ $\vert$
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 MPY 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 NONE
\end{DoxyItemize}
Definition at line 66 of file mpy32\+\_\+ex14\+\_\+saturation\+Overflow.\+c.
Referenced by main().
\mbox{\Hypertarget{_m_s_p430_f5xx__6xx_2mpy32_2mpy32__ex14__saturation_overflow_8c_a9763beb1d3667cef32e0da3789b01e13}\label{_m_s_p430_f5xx__6xx_2mpy32_2mpy32__ex14__saturation_overflow_8c_a9763beb1d3667cef32e0da3789b01e13}}
\index{mpy32\_ex14\_saturationOverflow.c@{mpy32\_ex14\_saturationOverflow.c}!Result\_lower16@{Result\_lower16}}
\index{Result\_lower16@{Result\_lower16}!mpy32\_ex14\_saturationOverflow.c@{mpy32\_ex14\_saturationOverflow.c}}
\doxysubsubsection{\texorpdfstring{Result\_lower16}{Result\_lower16}}
{\footnotesize\ttfamily uint16\+\_\+t Result\+\_\+lower16}
Definition at line 67 of file mpy32\+\_\+ex14\+\_\+saturation\+Overflow.\+c.
Referenced by main().
\mbox{\Hypertarget{_m_s_p430_f5xx__6xx_2mpy32_2mpy32__ex14__saturation_overflow_8c_afbdc37ba5018f94d28647a31a235b701}\label{_m_s_p430_f5xx__6xx_2mpy32_2mpy32__ex14__saturation_overflow_8c_afbdc37ba5018f94d28647a31a235b701}}
\index{mpy32\_ex14\_saturationOverflow.c@{mpy32\_ex14\_saturationOverflow.c}!Result\_upper16@{Result\_upper16}}
\index{Result\_upper16@{Result\_upper16}!mpy32\_ex14\_saturationOverflow.c@{mpy32\_ex14\_saturationOverflow.c}}
\doxysubsubsection{\texorpdfstring{Result\_upper16}{Result\_upper16}}
{\footnotesize\ttfamily uint16\+\_\+t Result\+\_\+upper16}
Definition at line 68 of file mpy32\+\_\+ex14\+\_\+saturation\+Overflow.\+c.
Referenced by main().

View File

@@ -0,0 +1,90 @@
\hypertarget{_m_s_p430_f5xx__6xx_2mpy32_2mpy32__ex15__fraction_mode_8c}{}\doxysection{Resources/\+Software/msp430\+\_\+driverlib\+\_\+2\+\_\+91\+\_\+13\+\_\+01/examples/\+MSP430\+F5xx\+\_\+6xx/mpy32/mpy32\+\_\+ex15\+\_\+fraction\+Mode.c File Reference}
\label{_m_s_p430_f5xx__6xx_2mpy32_2mpy32__ex15__fraction_mode_8c}\index{Resources/Software/msp430\_driverlib\_2\_91\_13\_01/examples/MSP430F5xx\_6xx/mpy32/mpy32\_ex15\_fractionMode.c@{Resources/Software/msp430\_driverlib\_2\_91\_13\_01/examples/MSP430F5xx\_6xx/mpy32/mpy32\_ex15\_fractionMode.c}}
{\ttfamily \#include \char`\"{}driverlib.\+h\char`\"{}}\newline
\doxysubsection*{Functions}
\begin{DoxyCompactItemize}
\item
void \mbox{\hyperlink{_m_s_p430_f5xx__6xx_2mpy32_2mpy32__ex15__fraction_mode_8c_a6288eba0f8e8ad3ab1544ad731eb7667}{main}} (void)
\end{DoxyCompactItemize}
\doxysubsection*{Variables}
\begin{DoxyCompactItemize}
\item
uint32\+\_\+t \mbox{\hyperlink{_m_s_p430_f5xx__6xx_2mpy32_2mpy32__ex15__fraction_mode_8c_a393f0b6791aa78cf29746a1877494247}{Result}}
\item
uint16\+\_\+t \mbox{\hyperlink{_m_s_p430_f5xx__6xx_2mpy32_2mpy32__ex15__fraction_mode_8c_a92e9913f091bda690c6dbc95a2319102}{Result\+\_\+\+Q15}}
\end{DoxyCompactItemize}
\doxysubsection{Function Documentation}
\mbox{\Hypertarget{_m_s_p430_f5xx__6xx_2mpy32_2mpy32__ex15__fraction_mode_8c_a6288eba0f8e8ad3ab1544ad731eb7667}\label{_m_s_p430_f5xx__6xx_2mpy32_2mpy32__ex15__fraction_mode_8c_a6288eba0f8e8ad3ab1544ad731eb7667}}
\index{mpy32\_ex15\_fractionMode.c@{mpy32\_ex15\_fractionMode.c}!main@{main}}
\index{main@{main}!mpy32\_ex15\_fractionMode.c@{mpy32\_ex15\_fractionMode.c}}
\doxysubsubsection{\texorpdfstring{main()}{main()}}
{\footnotesize\ttfamily void main (\begin{DoxyParamCaption}\item[{void}]{ }\end{DoxyParamCaption})}
Definition at line 66 of file mpy32\+\_\+ex15\+\_\+fraction\+Mode.\+c.
References \+\_\+\+\_\+no\+\_\+operation(), Result, and Result\+\_\+\+Q15.
\doxysubsection{Variable Documentation}
\mbox{\Hypertarget{_m_s_p430_f5xx__6xx_2mpy32_2mpy32__ex15__fraction_mode_8c_a393f0b6791aa78cf29746a1877494247}\label{_m_s_p430_f5xx__6xx_2mpy32_2mpy32__ex15__fraction_mode_8c_a393f0b6791aa78cf29746a1877494247}}
\index{mpy32\_ex15\_fractionMode.c@{mpy32\_ex15\_fractionMode.c}!Result@{Result}}
\index{Result@{Result}!mpy32\_ex15\_fractionMode.c@{mpy32\_ex15\_fractionMode.c}}
\doxysubsubsection{\texorpdfstring{Result}{Result}}
{\footnotesize\ttfamily uint32\+\_\+t Result}
MPY -\/ Fractional mode, Q15 multiplication
The example illustrates multiplication of 2 Q15 numbers in fractional mode. The result is a Q15 (15 bit) number stored in the RES1 register. It can be viewed in the debugger window.
ACLK = 32.\+768k\+Hz, MCLK = SMCLK = default DCO\hypertarget{_m_s_p430_f5xx__6xx_2mpy32_2mpy32__ex15__fraction_mode_8c_autotoc_md50}{}\doxysubsubsection{Tested On\+: MSP430\+F5438\+A,\+MSP430\+FR5739,\+MSP430\+FR5969,\+MSP430\+FR2433}\label{_m_s_p430_f5xx__6xx_2mpy32_2mpy32__ex15__fraction_mode_8c_autotoc_md50}
\tabulinesep=1mm
\begin{longtabu}spread 0pt [c]{*{2}{|X[-1]}|}
\hline
\PBS\centering \cellcolor{\tableheadbgcolor}\textbf{ / }&\PBS\centering \cellcolor{\tableheadbgcolor}\textbf{ $|$ }\\\cline{1-2}
\endfirsthead
\hline
\endfoot
\hline
\PBS\centering \cellcolor{\tableheadbgcolor}\textbf{ / }&\PBS\centering \cellcolor{\tableheadbgcolor}\textbf{ $|$ }\\\cline{1-2}
\endhead
-- &RST \\\cline{1-2}
\end{longtabu}
$\vert$ $\vert$ $\vert$ $\vert$
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 MPY 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 NONE
\end{DoxyItemize}
Definition at line 63 of file mpy32\+\_\+ex15\+\_\+fraction\+Mode.\+c.
Referenced by main().
\mbox{\Hypertarget{_m_s_p430_f5xx__6xx_2mpy32_2mpy32__ex15__fraction_mode_8c_a92e9913f091bda690c6dbc95a2319102}\label{_m_s_p430_f5xx__6xx_2mpy32_2mpy32__ex15__fraction_mode_8c_a92e9913f091bda690c6dbc95a2319102}}
\index{mpy32\_ex15\_fractionMode.c@{mpy32\_ex15\_fractionMode.c}!Result\_Q15@{Result\_Q15}}
\index{Result\_Q15@{Result\_Q15}!mpy32\_ex15\_fractionMode.c@{mpy32\_ex15\_fractionMode.c}}
\doxysubsubsection{\texorpdfstring{Result\_Q15}{Result\_Q15}}
{\footnotesize\ttfamily uint16\+\_\+t Result\+\_\+\+Q15}
Definition at line 64 of file mpy32\+\_\+ex15\+\_\+fraction\+Mode.\+c.
Referenced by main().

View File

@@ -0,0 +1,52 @@
\hypertarget{_m_s_p430_f5xx__6xx_2mpy32_2mpy32__ex1__16bit_unsigned_multiply_8c}{}\doxysection{Resources/\+Software/msp430\+\_\+driverlib\+\_\+2\+\_\+91\+\_\+13\+\_\+01/examples/\+MSP430\+F5xx\+\_\+6xx/mpy32/mpy32\+\_\+ex1\+\_\+16bit\+Unsigned\+Multiply.c File Reference}
\label{_m_s_p430_f5xx__6xx_2mpy32_2mpy32__ex1__16bit_unsigned_multiply_8c}\index{Resources/Software/msp430\_driverlib\_2\_91\_13\_01/examples/MSP430F5xx\_6xx/mpy32/mpy32\_ex1\_16bitUnsignedMultiply.c@{Resources/Software/msp430\_driverlib\_2\_91\_13\_01/examples/MSP430F5xx\_6xx/mpy32/mpy32\_ex1\_16bitUnsignedMultiply.c}}
{\ttfamily \#include \char`\"{}driverlib.\+h\char`\"{}}\newline
\doxysubsection*{Functions}
\begin{DoxyCompactItemize}
\item
void \mbox{\hyperlink{_m_s_p430_f5xx__6xx_2mpy32_2mpy32__ex1__16bit_unsigned_multiply_8c_a6288eba0f8e8ad3ab1544ad731eb7667}{main}} (void)
\end{DoxyCompactItemize}
\doxysubsection{Function Documentation}
\mbox{\Hypertarget{_m_s_p430_f5xx__6xx_2mpy32_2mpy32__ex1__16bit_unsigned_multiply_8c_a6288eba0f8e8ad3ab1544ad731eb7667}\label{_m_s_p430_f5xx__6xx_2mpy32_2mpy32__ex1__16bit_unsigned_multiply_8c_a6288eba0f8e8ad3ab1544ad731eb7667}}
\index{mpy32\_ex1\_16bitUnsignedMultiply.c@{mpy32\_ex1\_16bitUnsignedMultiply.c}!main@{main}}
\index{main@{main}!mpy32\_ex1\_16bitUnsignedMultiply.c@{mpy32\_ex1\_16bitUnsignedMultiply.c}}
\doxysubsubsection{\texorpdfstring{main()}{main()}}
{\footnotesize\ttfamily void main (\begin{DoxyParamCaption}\item[{void}]{ }\end{DoxyParamCaption})}
MPY -\/ 16x16 Unsigned Multiply
Hardware multiplier is used to multiply two numbers. The calculation is automatically initiated after the second operand is loaded. Results are stored in RESLO and RESHI.
ACLK = 32.\+768k\+Hz, MCLK = SMCLK = default DCO\hypertarget{_m_s_p430_f5xx__6xx_2mpy32_2mpy32__ex1__16bit_unsigned_multiply_8c_autotoc_md51}{}\doxysubsubsection{Tested On\+: MSP430\+F5438\+A,\+MSP430\+FR5739,\+MSP430\+FR5969,\+MSP430\+FR2433}\label{_m_s_p430_f5xx__6xx_2mpy32_2mpy32__ex1__16bit_unsigned_multiply_8c_autotoc_md51}
\tabulinesep=1mm
\begin{longtabu}spread 0pt [c]{*{2}{|X[-1]}|}
\hline
\PBS\centering \cellcolor{\tableheadbgcolor}\textbf{ / }&\PBS\centering \cellcolor{\tableheadbgcolor}\textbf{ $|$ }\\\cline{1-2}
\endfirsthead
\hline
\endfoot
\hline
\PBS\centering \cellcolor{\tableheadbgcolor}\textbf{ / }&\PBS\centering \cellcolor{\tableheadbgcolor}\textbf{ $|$ }\\\cline{1-2}
\endhead
-- &RST \\\cline{1-2}
\end{longtabu}
$\vert$ $\vert$ $\vert$ $\vert$
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 MPY 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 NONE
\end{DoxyItemize}
Definition at line 63 of file mpy32\+\_\+ex1\+\_\+16bit\+Unsigned\+Multiply.\+c.
References \+\_\+\+\_\+no\+\_\+operation().

View File

@@ -0,0 +1,52 @@
\hypertarget{_m_s_p430_f5xx__6xx_2mpy32_2mpy32__ex2__8bit_unsigned_multiply_8c}{}\doxysection{Resources/\+Software/msp430\+\_\+driverlib\+\_\+2\+\_\+91\+\_\+13\+\_\+01/examples/\+MSP430\+F5xx\+\_\+6xx/mpy32/mpy32\+\_\+ex2\+\_\+8bit\+Unsigned\+Multiply.c File Reference}
\label{_m_s_p430_f5xx__6xx_2mpy32_2mpy32__ex2__8bit_unsigned_multiply_8c}\index{Resources/Software/msp430\_driverlib\_2\_91\_13\_01/examples/MSP430F5xx\_6xx/mpy32/mpy32\_ex2\_8bitUnsignedMultiply.c@{Resources/Software/msp430\_driverlib\_2\_91\_13\_01/examples/MSP430F5xx\_6xx/mpy32/mpy32\_ex2\_8bitUnsignedMultiply.c}}
{\ttfamily \#include \char`\"{}driverlib.\+h\char`\"{}}\newline
\doxysubsection*{Functions}
\begin{DoxyCompactItemize}
\item
void \mbox{\hyperlink{_m_s_p430_f5xx__6xx_2mpy32_2mpy32__ex2__8bit_unsigned_multiply_8c_a6288eba0f8e8ad3ab1544ad731eb7667}{main}} (void)
\end{DoxyCompactItemize}
\doxysubsection{Function Documentation}
\mbox{\Hypertarget{_m_s_p430_f5xx__6xx_2mpy32_2mpy32__ex2__8bit_unsigned_multiply_8c_a6288eba0f8e8ad3ab1544ad731eb7667}\label{_m_s_p430_f5xx__6xx_2mpy32_2mpy32__ex2__8bit_unsigned_multiply_8c_a6288eba0f8e8ad3ab1544ad731eb7667}}
\index{mpy32\_ex2\_8bitUnsignedMultiply.c@{mpy32\_ex2\_8bitUnsignedMultiply.c}!main@{main}}
\index{main@{main}!mpy32\_ex2\_8bitUnsignedMultiply.c@{mpy32\_ex2\_8bitUnsignedMultiply.c}}
\doxysubsubsection{\texorpdfstring{main()}{main()}}
{\footnotesize\ttfamily void main (\begin{DoxyParamCaption}\item[{void}]{ }\end{DoxyParamCaption})}
MPY -\/ 8x8 Unsigned Multiply
Hardware multiplier is used to multiply two numbers. The calculation is automatically initiated after the second operand is loaded. Results are stored in RESLO and RESHI.
ACLK = 32.\+768k\+Hz, MCLK = SMCLK = default DCO\hypertarget{_m_s_p430_f5xx__6xx_2mpy32_2mpy32__ex2__8bit_unsigned_multiply_8c_autotoc_md52}{}\doxysubsubsection{Tested On\+: MSP430\+F5438\+A,\+MSP430\+FR5739,\+MSP430\+FR5969,\+MSP430\+FR2433}\label{_m_s_p430_f5xx__6xx_2mpy32_2mpy32__ex2__8bit_unsigned_multiply_8c_autotoc_md52}
\tabulinesep=1mm
\begin{longtabu}spread 0pt [c]{*{2}{|X[-1]}|}
\hline
\PBS\centering \cellcolor{\tableheadbgcolor}\textbf{ / }&\PBS\centering \cellcolor{\tableheadbgcolor}\textbf{ $|$ }\\\cline{1-2}
\endfirsthead
\hline
\endfoot
\hline
\PBS\centering \cellcolor{\tableheadbgcolor}\textbf{ / }&\PBS\centering \cellcolor{\tableheadbgcolor}\textbf{ $|$ }\\\cline{1-2}
\endhead
-- &RST \\\cline{1-2}
\end{longtabu}
$\vert$ $\vert$ $\vert$ $\vert$
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 MPY 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 NONE
\end{DoxyItemize}
Definition at line 63 of file mpy32\+\_\+ex2\+\_\+8bit\+Unsigned\+Multiply.\+c.
References \+\_\+\+\_\+no\+\_\+operation().

View File

@@ -0,0 +1,106 @@
\hypertarget{_m_s_p430_f5xx__6xx_2mpy32_2mpy32__ex3__16bit_signed_multiply_8c}{}\doxysection{Resources/\+Software/msp430\+\_\+driverlib\+\_\+2\+\_\+91\+\_\+13\+\_\+01/examples/\+MSP430\+F5xx\+\_\+6xx/mpy32/mpy32\+\_\+ex3\+\_\+16bit\+Signed\+Multiply.c File Reference}
\label{_m_s_p430_f5xx__6xx_2mpy32_2mpy32__ex3__16bit_signed_multiply_8c}\index{Resources/Software/msp430\_driverlib\_2\_91\_13\_01/examples/MSP430F5xx\_6xx/mpy32/mpy32\_ex3\_16bitSignedMultiply.c@{Resources/Software/msp430\_driverlib\_2\_91\_13\_01/examples/MSP430F5xx\_6xx/mpy32/mpy32\_ex3\_16bitSignedMultiply.c}}
{\ttfamily \#include \char`\"{}driverlib.\+h\char`\"{}}\newline
\doxysubsection*{Functions}
\begin{DoxyCompactItemize}
\item
void \mbox{\hyperlink{_m_s_p430_f5xx__6xx_2mpy32_2mpy32__ex3__16bit_signed_multiply_8c_a6288eba0f8e8ad3ab1544ad731eb7667}{main}} (void)
\end{DoxyCompactItemize}
\doxysubsection*{Variables}
\begin{DoxyCompactItemize}
\item
int16\+\_\+t \mbox{\hyperlink{_m_s_p430_f5xx__6xx_2mpy32_2mpy32__ex3__16bit_signed_multiply_8c_a3b6affddfe426e29d8e6f98049e8a9f2}{multiplier}} = 0x1234
\item
int16\+\_\+t \mbox{\hyperlink{_m_s_p430_f5xx__6xx_2mpy32_2mpy32__ex3__16bit_signed_multiply_8c_a917f1d27bc92d7287c57835107470d07}{operand}} = -\/6578
\item
int64\+\_\+t \mbox{\hyperlink{_m_s_p430_f5xx__6xx_2mpy32_2mpy32__ex3__16bit_signed_multiply_8c_af5df517f0190d126def9ba83a94ef595}{Result}}
\end{DoxyCompactItemize}
\doxysubsection{Function Documentation}
\mbox{\Hypertarget{_m_s_p430_f5xx__6xx_2mpy32_2mpy32__ex3__16bit_signed_multiply_8c_a6288eba0f8e8ad3ab1544ad731eb7667}\label{_m_s_p430_f5xx__6xx_2mpy32_2mpy32__ex3__16bit_signed_multiply_8c_a6288eba0f8e8ad3ab1544ad731eb7667}}
\index{mpy32\_ex3\_16bitSignedMultiply.c@{mpy32\_ex3\_16bitSignedMultiply.c}!main@{main}}
\index{main@{main}!mpy32\_ex3\_16bitSignedMultiply.c@{mpy32\_ex3\_16bitSignedMultiply.c}}
\doxysubsubsection{\texorpdfstring{main()}{main()}}
{\footnotesize\ttfamily void main (\begin{DoxyParamCaption}\item[{void}]{ }\end{DoxyParamCaption})}
Definition at line 68 of file mpy32\+\_\+ex3\+\_\+16bit\+Signed\+Multiply.\+c.
References \+\_\+\+\_\+no\+\_\+operation(), multiplier, operand, and Result.
\doxysubsection{Variable Documentation}
\mbox{\Hypertarget{_m_s_p430_f5xx__6xx_2mpy32_2mpy32__ex3__16bit_signed_multiply_8c_a3b6affddfe426e29d8e6f98049e8a9f2}\label{_m_s_p430_f5xx__6xx_2mpy32_2mpy32__ex3__16bit_signed_multiply_8c_a3b6affddfe426e29d8e6f98049e8a9f2}}
\index{mpy32\_ex3\_16bitSignedMultiply.c@{mpy32\_ex3\_16bitSignedMultiply.c}!multiplier@{multiplier}}
\index{multiplier@{multiplier}!mpy32\_ex3\_16bitSignedMultiply.c@{mpy32\_ex3\_16bitSignedMultiply.c}}
\doxysubsubsection{\texorpdfstring{multiplier}{multiplier}}
{\footnotesize\ttfamily int16\+\_\+t multiplier = 0x1234}
MPY -\/ 16x16 Signed Multiply
Hardware multiplier is used to multiply two numbers. The calculation is automatically initiated after the second operand is loaded. Results are stored in RESLO, RESHI and SUMEXT = FFFF if result is negative, SUMEXT = 0 otherwise. Result is also stored as Result variable.
ACLK = 32.\+768k\+Hz, MCLK = SMCLK = default DCO\hypertarget{_m_s_p430_f5xx__6xx_2mpy32_2mpy32__ex3__16bit_signed_multiply_8c_autotoc_md53}{}\doxysubsubsection{Tested On\+: MSP430\+F5438\+A,\+MSP430\+FR5739,\+MSP430\+FR5969,\+MSP430\+FR2433}\label{_m_s_p430_f5xx__6xx_2mpy32_2mpy32__ex3__16bit_signed_multiply_8c_autotoc_md53}
\tabulinesep=1mm
\begin{longtabu}spread 0pt [c]{*{2}{|X[-1]}|}
\hline
\PBS\centering \cellcolor{\tableheadbgcolor}\textbf{ / }&\PBS\centering \cellcolor{\tableheadbgcolor}\textbf{ $|$ }\\\cline{1-2}
\endfirsthead
\hline
\endfoot
\hline
\PBS\centering \cellcolor{\tableheadbgcolor}\textbf{ / }&\PBS\centering \cellcolor{\tableheadbgcolor}\textbf{ $|$ }\\\cline{1-2}
\endhead
-- &RST \\\cline{1-2}
\end{longtabu}
$\vert$ $\vert$ $\vert$ $\vert$
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 MPY 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 NONE
\end{DoxyItemize}
Definition at line 64 of file mpy32\+\_\+ex3\+\_\+16bit\+Signed\+Multiply.\+c.
Referenced by main().
\mbox{\Hypertarget{_m_s_p430_f5xx__6xx_2mpy32_2mpy32__ex3__16bit_signed_multiply_8c_a917f1d27bc92d7287c57835107470d07}\label{_m_s_p430_f5xx__6xx_2mpy32_2mpy32__ex3__16bit_signed_multiply_8c_a917f1d27bc92d7287c57835107470d07}}
\index{mpy32\_ex3\_16bitSignedMultiply.c@{mpy32\_ex3\_16bitSignedMultiply.c}!operand@{operand}}
\index{operand@{operand}!mpy32\_ex3\_16bitSignedMultiply.c@{mpy32\_ex3\_16bitSignedMultiply.c}}
\doxysubsubsection{\texorpdfstring{operand}{operand}}
{\footnotesize\ttfamily int16\+\_\+t operand = -\/6578}
Definition at line 65 of file mpy32\+\_\+ex3\+\_\+16bit\+Signed\+Multiply.\+c.
Referenced by main().
\mbox{\Hypertarget{_m_s_p430_f5xx__6xx_2mpy32_2mpy32__ex3__16bit_signed_multiply_8c_af5df517f0190d126def9ba83a94ef595}\label{_m_s_p430_f5xx__6xx_2mpy32_2mpy32__ex3__16bit_signed_multiply_8c_af5df517f0190d126def9ba83a94ef595}}
\index{mpy32\_ex3\_16bitSignedMultiply.c@{mpy32\_ex3\_16bitSignedMultiply.c}!Result@{Result}}
\index{Result@{Result}!mpy32\_ex3\_16bitSignedMultiply.c@{mpy32\_ex3\_16bitSignedMultiply.c}}
\doxysubsubsection{\texorpdfstring{Result}{Result}}
{\footnotesize\ttfamily int64\+\_\+t Result}
Definition at line 66 of file mpy32\+\_\+ex3\+\_\+16bit\+Signed\+Multiply.\+c.
Referenced by main().

View File

@@ -0,0 +1,52 @@
\hypertarget{_m_s_p430_f5xx__6xx_2mpy32_2mpy32__ex4__8bit_signed_multiply_8c}{}\doxysection{Resources/\+Software/msp430\+\_\+driverlib\+\_\+2\+\_\+91\+\_\+13\+\_\+01/examples/\+MSP430\+F5xx\+\_\+6xx/mpy32/mpy32\+\_\+ex4\+\_\+8bit\+Signed\+Multiply.c File Reference}
\label{_m_s_p430_f5xx__6xx_2mpy32_2mpy32__ex4__8bit_signed_multiply_8c}\index{Resources/Software/msp430\_driverlib\_2\_91\_13\_01/examples/MSP430F5xx\_6xx/mpy32/mpy32\_ex4\_8bitSignedMultiply.c@{Resources/Software/msp430\_driverlib\_2\_91\_13\_01/examples/MSP430F5xx\_6xx/mpy32/mpy32\_ex4\_8bitSignedMultiply.c}}
{\ttfamily \#include \char`\"{}driverlib.\+h\char`\"{}}\newline
\doxysubsection*{Functions}
\begin{DoxyCompactItemize}
\item
void \mbox{\hyperlink{_m_s_p430_f5xx__6xx_2mpy32_2mpy32__ex4__8bit_signed_multiply_8c_a6288eba0f8e8ad3ab1544ad731eb7667}{main}} (void)
\end{DoxyCompactItemize}
\doxysubsection{Function Documentation}
\mbox{\Hypertarget{_m_s_p430_f5xx__6xx_2mpy32_2mpy32__ex4__8bit_signed_multiply_8c_a6288eba0f8e8ad3ab1544ad731eb7667}\label{_m_s_p430_f5xx__6xx_2mpy32_2mpy32__ex4__8bit_signed_multiply_8c_a6288eba0f8e8ad3ab1544ad731eb7667}}
\index{mpy32\_ex4\_8bitSignedMultiply.c@{mpy32\_ex4\_8bitSignedMultiply.c}!main@{main}}
\index{main@{main}!mpy32\_ex4\_8bitSignedMultiply.c@{mpy32\_ex4\_8bitSignedMultiply.c}}
\doxysubsubsection{\texorpdfstring{main()}{main()}}
{\footnotesize\ttfamily void main (\begin{DoxyParamCaption}\item[{void}]{ }\end{DoxyParamCaption})}
MPY -\/ 8x8 Signed Multiply
Hardware multiplier is used to multiply two numbers. The calculation is automatically initiated after the second operand is loaded. Results are stored in RESLO, RESHI and SUMEXT = FFFF if result is negative, SUMEXT = 0 otherwise.
ACLK = 32.\+768k\+Hz, MCLK = SMCLK = default DCO\hypertarget{_m_s_p430_f5xx__6xx_2mpy32_2mpy32__ex4__8bit_signed_multiply_8c_autotoc_md54}{}\doxysubsubsection{Tested On\+: MSP430\+F5438\+A,\+MSP430\+FR5739,\+MSP430\+FR5969,\+MSP430\+FR2433}\label{_m_s_p430_f5xx__6xx_2mpy32_2mpy32__ex4__8bit_signed_multiply_8c_autotoc_md54}
\tabulinesep=1mm
\begin{longtabu}spread 0pt [c]{*{2}{|X[-1]}|}
\hline
\PBS\centering \cellcolor{\tableheadbgcolor}\textbf{ / }&\PBS\centering \cellcolor{\tableheadbgcolor}\textbf{ $|$ }\\\cline{1-2}
\endfirsthead
\hline
\endfoot
\hline
\PBS\centering \cellcolor{\tableheadbgcolor}\textbf{ / }&\PBS\centering \cellcolor{\tableheadbgcolor}\textbf{ $|$ }\\\cline{1-2}
\endhead
-- &RST \\\cline{1-2}
\end{longtabu}
$\vert$ $\vert$ $\vert$ $\vert$
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 MPY 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 NONE
\end{DoxyItemize}
Definition at line 64 of file mpy32\+\_\+ex4\+\_\+8bit\+Signed\+Multiply.\+c.
References \+\_\+\+\_\+no\+\_\+operation().

View File

@@ -0,0 +1,52 @@
\hypertarget{_m_s_p430_f5xx__6xx_2mpy32_2mpy32__ex5__16bit_unsigned_multiply_accum_8c}{}\doxysection{Resources/\+Software/msp430\+\_\+driverlib\+\_\+2\+\_\+91\+\_\+13\+\_\+01/examples/\+MSP430\+F5xx\+\_\+6xx/mpy32/mpy32\+\_\+ex5\+\_\+16bit\+Unsigned\+Multiply\+Accum.c File Reference}
\label{_m_s_p430_f5xx__6xx_2mpy32_2mpy32__ex5__16bit_unsigned_multiply_accum_8c}\index{Resources/Software/msp430\_driverlib\_2\_91\_13\_01/examples/MSP430F5xx\_6xx/mpy32/mpy32\_ex5\_16bitUnsignedMultiplyAccum.c@{Resources/Software/msp430\_driverlib\_2\_91\_13\_01/examples/MSP430F5xx\_6xx/mpy32/mpy32\_ex5\_16bitUnsignedMultiplyAccum.c}}
{\ttfamily \#include \char`\"{}driverlib.\+h\char`\"{}}\newline
\doxysubsection*{Functions}
\begin{DoxyCompactItemize}
\item
void \mbox{\hyperlink{_m_s_p430_f5xx__6xx_2mpy32_2mpy32__ex5__16bit_unsigned_multiply_accum_8c_a6288eba0f8e8ad3ab1544ad731eb7667}{main}} (void)
\end{DoxyCompactItemize}
\doxysubsection{Function Documentation}
\mbox{\Hypertarget{_m_s_p430_f5xx__6xx_2mpy32_2mpy32__ex5__16bit_unsigned_multiply_accum_8c_a6288eba0f8e8ad3ab1544ad731eb7667}\label{_m_s_p430_f5xx__6xx_2mpy32_2mpy32__ex5__16bit_unsigned_multiply_accum_8c_a6288eba0f8e8ad3ab1544ad731eb7667}}
\index{mpy32\_ex5\_16bitUnsignedMultiplyAccum.c@{mpy32\_ex5\_16bitUnsignedMultiplyAccum.c}!main@{main}}
\index{main@{main}!mpy32\_ex5\_16bitUnsignedMultiplyAccum.c@{mpy32\_ex5\_16bitUnsignedMultiplyAccum.c}}
\doxysubsubsection{\texorpdfstring{main()}{main()}}
{\footnotesize\ttfamily void main (\begin{DoxyParamCaption}\item[{void}]{ }\end{DoxyParamCaption})}
MPY -\/ 16x16 Unsigned Multiply Accumulate
Hardware multiplier is used to multiply two numbers. The calculation is automatically initiated after the second operand is loaded. A second multiply accumulate operation is performed after that. Results are stored in RESLO and RESHI. SUMEXT contains the carry of the result.
ACLK = 32.\+768k\+Hz, MCLK = SMCLK = default DCO\hypertarget{_m_s_p430_f5xx__6xx_2mpy32_2mpy32__ex5__16bit_unsigned_multiply_accum_8c_autotoc_md55}{}\doxysubsubsection{Tested On\+: MSP430\+F5438\+A,\+MSP430\+FR5739,\+MSP430\+FR5969,\+MSP430\+FR2433}\label{_m_s_p430_f5xx__6xx_2mpy32_2mpy32__ex5__16bit_unsigned_multiply_accum_8c_autotoc_md55}
\tabulinesep=1mm
\begin{longtabu}spread 0pt [c]{*{2}{|X[-1]}|}
\hline
\PBS\centering \cellcolor{\tableheadbgcolor}\textbf{ / }&\PBS\centering \cellcolor{\tableheadbgcolor}\textbf{ $|$ }\\\cline{1-2}
\endfirsthead
\hline
\endfoot
\hline
\PBS\centering \cellcolor{\tableheadbgcolor}\textbf{ / }&\PBS\centering \cellcolor{\tableheadbgcolor}\textbf{ $|$ }\\\cline{1-2}
\endhead
-- &RST \\\cline{1-2}
\end{longtabu}
$\vert$ $\vert$ $\vert$ $\vert$
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 MPY 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 NONE
\end{DoxyItemize}
Definition at line 64 of file mpy32\+\_\+ex5\+\_\+16bit\+Unsigned\+Multiply\+Accum.\+c.
References \+\_\+\+\_\+no\+\_\+operation().

View File

@@ -0,0 +1,50 @@
\hypertarget{_m_s_p430_f5xx__6xx_2mpy32_2mpy32__ex6__8bit_unsigned_multiply_accum_8c}{}\doxysection{Resources/\+Software/msp430\+\_\+driverlib\+\_\+2\+\_\+91\+\_\+13\+\_\+01/examples/\+MSP430\+F5xx\+\_\+6xx/mpy32/mpy32\+\_\+ex6\+\_\+8bit\+Unsigned\+Multiply\+Accum.c File Reference}
\label{_m_s_p430_f5xx__6xx_2mpy32_2mpy32__ex6__8bit_unsigned_multiply_accum_8c}\index{Resources/Software/msp430\_driverlib\_2\_91\_13\_01/examples/MSP430F5xx\_6xx/mpy32/mpy32\_ex6\_8bitUnsignedMultiplyAccum.c@{Resources/Software/msp430\_driverlib\_2\_91\_13\_01/examples/MSP430F5xx\_6xx/mpy32/mpy32\_ex6\_8bitUnsignedMultiplyAccum.c}}
{\ttfamily \#include \char`\"{}driverlib.\+h\char`\"{}}\newline
\doxysubsection*{Functions}
\begin{DoxyCompactItemize}
\item
void \mbox{\hyperlink{_m_s_p430_f5xx__6xx_2mpy32_2mpy32__ex6__8bit_unsigned_multiply_accum_8c_a6288eba0f8e8ad3ab1544ad731eb7667}{main}} (void)
\end{DoxyCompactItemize}
\doxysubsection{Function Documentation}
\mbox{\Hypertarget{_m_s_p430_f5xx__6xx_2mpy32_2mpy32__ex6__8bit_unsigned_multiply_accum_8c_a6288eba0f8e8ad3ab1544ad731eb7667}\label{_m_s_p430_f5xx__6xx_2mpy32_2mpy32__ex6__8bit_unsigned_multiply_accum_8c_a6288eba0f8e8ad3ab1544ad731eb7667}}
\index{mpy32\_ex6\_8bitUnsignedMultiplyAccum.c@{mpy32\_ex6\_8bitUnsignedMultiplyAccum.c}!main@{main}}
\index{main@{main}!mpy32\_ex6\_8bitUnsignedMultiplyAccum.c@{mpy32\_ex6\_8bitUnsignedMultiplyAccum.c}}
\doxysubsubsection{\texorpdfstring{main()}{main()}}
{\footnotesize\ttfamily void main (\begin{DoxyParamCaption}\item[{void}]{ }\end{DoxyParamCaption})}
MPY -\/ 8x8 Unsigned Multiply Accumulate
Hardware multiplier is used to multiply two numbers. The calculation is automatically initiated after the second operand is loaded. A second multiply accumulate operation is performed after that. Results are stored in RESLO and RESHI. SUMEXT contains the carry of the result.\hypertarget{_m_s_p430_f5xx__6xx_2mpy32_2mpy32__ex6__8bit_unsigned_multiply_accum_8c_autotoc_md56}{}\doxysubsubsection{Tested On\+: MSP430\+F5438\+A,\+MSP430\+FR5739,\+MSP430\+FR5969,\+MSP430\+FR2433}\label{_m_s_p430_f5xx__6xx_2mpy32_2mpy32__ex6__8bit_unsigned_multiply_accum_8c_autotoc_md56}
\tabulinesep=1mm
\begin{longtabu}spread 0pt [c]{*{2}{|X[-1]}|}
\hline
\PBS\centering \cellcolor{\tableheadbgcolor}\textbf{ / }&\PBS\centering \cellcolor{\tableheadbgcolor}\textbf{ $|$ }\\\cline{1-2}
\endfirsthead
\hline
\endfoot
\hline
\PBS\centering \cellcolor{\tableheadbgcolor}\textbf{ / }&\PBS\centering \cellcolor{\tableheadbgcolor}\textbf{ $|$ }\\\cline{1-2}
\endhead
-- &RST \\\cline{1-2}
\end{longtabu}
$\vert$ $\vert$ $\vert$ $\vert$
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 MPY 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 NONE
\end{DoxyItemize}
Definition at line 62 of file mpy32\+\_\+ex6\+\_\+8bit\+Unsigned\+Multiply\+Accum.\+c.
References \+\_\+\+\_\+no\+\_\+operation().

View File

@@ -0,0 +1,52 @@
\hypertarget{_m_s_p430_f5xx__6xx_2mpy32_2mpy32__ex7__16bit_signed_multiply_accum_8c}{}\doxysection{Resources/\+Software/msp430\+\_\+driverlib\+\_\+2\+\_\+91\+\_\+13\+\_\+01/examples/\+MSP430\+F5xx\+\_\+6xx/mpy32/mpy32\+\_\+ex7\+\_\+16bit\+Signed\+Multiply\+Accum.c File Reference}
\label{_m_s_p430_f5xx__6xx_2mpy32_2mpy32__ex7__16bit_signed_multiply_accum_8c}\index{Resources/Software/msp430\_driverlib\_2\_91\_13\_01/examples/MSP430F5xx\_6xx/mpy32/mpy32\_ex7\_16bitSignedMultiplyAccum.c@{Resources/Software/msp430\_driverlib\_2\_91\_13\_01/examples/MSP430F5xx\_6xx/mpy32/mpy32\_ex7\_16bitSignedMultiplyAccum.c}}
{\ttfamily \#include \char`\"{}driverlib.\+h\char`\"{}}\newline
\doxysubsection*{Functions}
\begin{DoxyCompactItemize}
\item
void \mbox{\hyperlink{_m_s_p430_f5xx__6xx_2mpy32_2mpy32__ex7__16bit_signed_multiply_accum_8c_a6288eba0f8e8ad3ab1544ad731eb7667}{main}} (void)
\end{DoxyCompactItemize}
\doxysubsection{Function Documentation}
\mbox{\Hypertarget{_m_s_p430_f5xx__6xx_2mpy32_2mpy32__ex7__16bit_signed_multiply_accum_8c_a6288eba0f8e8ad3ab1544ad731eb7667}\label{_m_s_p430_f5xx__6xx_2mpy32_2mpy32__ex7__16bit_signed_multiply_accum_8c_a6288eba0f8e8ad3ab1544ad731eb7667}}
\index{mpy32\_ex7\_16bitSignedMultiplyAccum.c@{mpy32\_ex7\_16bitSignedMultiplyAccum.c}!main@{main}}
\index{main@{main}!mpy32\_ex7\_16bitSignedMultiplyAccum.c@{mpy32\_ex7\_16bitSignedMultiplyAccum.c}}
\doxysubsubsection{\texorpdfstring{main()}{main()}}
{\footnotesize\ttfamily void main (\begin{DoxyParamCaption}\item[{void}]{ }\end{DoxyParamCaption})}
MPY -\/ 16x16 Signed Multiply Accumulate
Hardware multiplier is used to multiply two numbers. The calculation is automatically initiated after the second operand is loaded. A second multiply-\/accumulate operation is performed after that. Results are stored in RESLO and RESHI. SUMEXT contains the extended sign of the result.
ACLK = 32.\+768k\+Hz, MCLK = SMCLK = default DCO\hypertarget{_m_s_p430_f5xx__6xx_2mpy32_2mpy32__ex7__16bit_signed_multiply_accum_8c_autotoc_md57}{}\doxysubsubsection{Tested On\+: MSP430\+F5438\+A,\+MSP430\+FR5739,\+MSP430\+FR5969,\+MSP430\+FR2433}\label{_m_s_p430_f5xx__6xx_2mpy32_2mpy32__ex7__16bit_signed_multiply_accum_8c_autotoc_md57}
\tabulinesep=1mm
\begin{longtabu}spread 0pt [c]{*{2}{|X[-1]}|}
\hline
\PBS\centering \cellcolor{\tableheadbgcolor}\textbf{ / }&\PBS\centering \cellcolor{\tableheadbgcolor}\textbf{ $|$ }\\\cline{1-2}
\endfirsthead
\hline
\endfoot
\hline
\PBS\centering \cellcolor{\tableheadbgcolor}\textbf{ / }&\PBS\centering \cellcolor{\tableheadbgcolor}\textbf{ $|$ }\\\cline{1-2}
\endhead
-- &RST \\\cline{1-2}
\end{longtabu}
$\vert$ $\vert$ $\vert$ $\vert$
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 MPY 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 NONE
\end{DoxyItemize}
Definition at line 64 of file mpy32\+\_\+ex7\+\_\+16bit\+Signed\+Multiply\+Accum.\+c.
References \+\_\+\+\_\+no\+\_\+operation().

View File

@@ -0,0 +1,52 @@
\hypertarget{_m_s_p430_f5xx__6xx_2mpy32_2mpy32__ex8__8bit_signed_multiply_accum_8c}{}\doxysection{Resources/\+Software/msp430\+\_\+driverlib\+\_\+2\+\_\+91\+\_\+13\+\_\+01/examples/\+MSP430\+F5xx\+\_\+6xx/mpy32/mpy32\+\_\+ex8\+\_\+8bit\+Signed\+Multiply\+Accum.c File Reference}
\label{_m_s_p430_f5xx__6xx_2mpy32_2mpy32__ex8__8bit_signed_multiply_accum_8c}\index{Resources/Software/msp430\_driverlib\_2\_91\_13\_01/examples/MSP430F5xx\_6xx/mpy32/mpy32\_ex8\_8bitSignedMultiplyAccum.c@{Resources/Software/msp430\_driverlib\_2\_91\_13\_01/examples/MSP430F5xx\_6xx/mpy32/mpy32\_ex8\_8bitSignedMultiplyAccum.c}}
{\ttfamily \#include \char`\"{}driverlib.\+h\char`\"{}}\newline
\doxysubsection*{Functions}
\begin{DoxyCompactItemize}
\item
void \mbox{\hyperlink{_m_s_p430_f5xx__6xx_2mpy32_2mpy32__ex8__8bit_signed_multiply_accum_8c_a6288eba0f8e8ad3ab1544ad731eb7667}{main}} (void)
\end{DoxyCompactItemize}
\doxysubsection{Function Documentation}
\mbox{\Hypertarget{_m_s_p430_f5xx__6xx_2mpy32_2mpy32__ex8__8bit_signed_multiply_accum_8c_a6288eba0f8e8ad3ab1544ad731eb7667}\label{_m_s_p430_f5xx__6xx_2mpy32_2mpy32__ex8__8bit_signed_multiply_accum_8c_a6288eba0f8e8ad3ab1544ad731eb7667}}
\index{mpy32\_ex8\_8bitSignedMultiplyAccum.c@{mpy32\_ex8\_8bitSignedMultiplyAccum.c}!main@{main}}
\index{main@{main}!mpy32\_ex8\_8bitSignedMultiplyAccum.c@{mpy32\_ex8\_8bitSignedMultiplyAccum.c}}
\doxysubsubsection{\texorpdfstring{main()}{main()}}
{\footnotesize\ttfamily void main (\begin{DoxyParamCaption}\item[{void}]{ }\end{DoxyParamCaption})}
MPY -\/ 8x8 Signed Multiply Accumulate
Hardware multiplier is used to multiply two numbers. The calculation is automatically initiated after the second operand is loaded. A second multiply accumulate operation is performed after that. Results are stored in RESLO and RESHI. SUMEXT contains the extended sign of result.
ACLK = 32.\+768k\+Hz, MCLK = SMCLK = default DCO\hypertarget{_m_s_p430_f5xx__6xx_2mpy32_2mpy32__ex8__8bit_signed_multiply_accum_8c_autotoc_md58}{}\doxysubsubsection{Tested On\+: MSP430\+F5438\+A,\+MSP430\+FR5739,\+MSP430\+FR5969,\+MSP430\+FR2433}\label{_m_s_p430_f5xx__6xx_2mpy32_2mpy32__ex8__8bit_signed_multiply_accum_8c_autotoc_md58}
\tabulinesep=1mm
\begin{longtabu}spread 0pt [c]{*{2}{|X[-1]}|}
\hline
\PBS\centering \cellcolor{\tableheadbgcolor}\textbf{ / }&\PBS\centering \cellcolor{\tableheadbgcolor}\textbf{ $|$ }\\\cline{1-2}
\endfirsthead
\hline
\endfoot
\hline
\PBS\centering \cellcolor{\tableheadbgcolor}\textbf{ / }&\PBS\centering \cellcolor{\tableheadbgcolor}\textbf{ $|$ }\\\cline{1-2}
\endhead
-- &RST \\\cline{1-2}
\end{longtabu}
$\vert$ $\vert$ $\vert$ $\vert$
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 MPY 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 NONE
\end{DoxyItemize}
Definition at line 64 of file mpy32\+\_\+ex8\+\_\+8bit\+Signed\+Multiply\+Accum.\+c.
References \+\_\+\+\_\+no\+\_\+operation().

View File

@@ -0,0 +1,74 @@
\hypertarget{_m_s_p430_f5xx__6xx_2mpy32_2mpy32__ex9__32bit_unsigned_multiply_8c}{}\doxysection{Resources/\+Software/msp430\+\_\+driverlib\+\_\+2\+\_\+91\+\_\+13\+\_\+01/examples/\+MSP430\+F5xx\+\_\+6xx/mpy32/mpy32\+\_\+ex9\+\_\+32bit\+Unsigned\+Multiply.c File Reference}
\label{_m_s_p430_f5xx__6xx_2mpy32_2mpy32__ex9__32bit_unsigned_multiply_8c}\index{Resources/Software/msp430\_driverlib\_2\_91\_13\_01/examples/MSP430F5xx\_6xx/mpy32/mpy32\_ex9\_32bitUnsignedMultiply.c@{Resources/Software/msp430\_driverlib\_2\_91\_13\_01/examples/MSP430F5xx\_6xx/mpy32/mpy32\_ex9\_32bitUnsignedMultiply.c}}
{\ttfamily \#include \char`\"{}driverlib.\+h\char`\"{}}\newline
\doxysubsection*{Functions}
\begin{DoxyCompactItemize}
\item
void \mbox{\hyperlink{_m_s_p430_f5xx__6xx_2mpy32_2mpy32__ex9__32bit_unsigned_multiply_8c_a6288eba0f8e8ad3ab1544ad731eb7667}{main}} (void)
\end{DoxyCompactItemize}
\doxysubsection*{Variables}
\begin{DoxyCompactItemize}
\item
uint64\+\_\+t \mbox{\hyperlink{_m_s_p430_f5xx__6xx_2mpy32_2mpy32__ex9__32bit_unsigned_multiply_8c_a84a5e5c775453416939a34ab72557bc5}{Result}}
\end{DoxyCompactItemize}
\doxysubsection{Function Documentation}
\mbox{\Hypertarget{_m_s_p430_f5xx__6xx_2mpy32_2mpy32__ex9__32bit_unsigned_multiply_8c_a6288eba0f8e8ad3ab1544ad731eb7667}\label{_m_s_p430_f5xx__6xx_2mpy32_2mpy32__ex9__32bit_unsigned_multiply_8c_a6288eba0f8e8ad3ab1544ad731eb7667}}
\index{mpy32\_ex9\_32bitUnsignedMultiply.c@{mpy32\_ex9\_32bitUnsignedMultiply.c}!main@{main}}
\index{main@{main}!mpy32\_ex9\_32bitUnsignedMultiply.c@{mpy32\_ex9\_32bitUnsignedMultiply.c}}
\doxysubsubsection{\texorpdfstring{main()}{main()}}
{\footnotesize\ttfamily void main (\begin{DoxyParamCaption}\item[{void}]{ }\end{DoxyParamCaption})}
Definition at line 65 of file mpy32\+\_\+ex9\+\_\+32bit\+Unsigned\+Multiply.\+c.
References \+\_\+\+\_\+no\+\_\+operation(), and Result.
\doxysubsection{Variable Documentation}
\mbox{\Hypertarget{_m_s_p430_f5xx__6xx_2mpy32_2mpy32__ex9__32bit_unsigned_multiply_8c_a84a5e5c775453416939a34ab72557bc5}\label{_m_s_p430_f5xx__6xx_2mpy32_2mpy32__ex9__32bit_unsigned_multiply_8c_a84a5e5c775453416939a34ab72557bc5}}
\index{mpy32\_ex9\_32bitUnsignedMultiply.c@{mpy32\_ex9\_32bitUnsignedMultiply.c}!Result@{Result}}
\index{Result@{Result}!mpy32\_ex9\_32bitUnsignedMultiply.c@{mpy32\_ex9\_32bitUnsignedMultiply.c}}
\doxysubsubsection{\texorpdfstring{Result}{Result}}
{\footnotesize\ttfamily uint64\+\_\+t Result}
MPY -\/ 32x32 Unsigned Multiply
Hardware multiplier is used to multiply two numbers. The calculation is automatically initiated after the second operand is loaded. Results are stored in RES0, RES1, RES2 and RES3.
ACLK = 32.\+768k\+Hz, MCLK = SMCLK = default DCO\hypertarget{_m_s_p430_f5xx__6xx_2mpy32_2mpy32__ex9__32bit_unsigned_multiply_8c_autotoc_md59}{}\doxysubsubsection{Tested On\+: MSP430\+F5438\+A,\+MSP430\+FR5739,\+MSP430\+FR5969,\+MSP430\+FR2433}\label{_m_s_p430_f5xx__6xx_2mpy32_2mpy32__ex9__32bit_unsigned_multiply_8c_autotoc_md59}
\tabulinesep=1mm
\begin{longtabu}spread 0pt [c]{*{2}{|X[-1]}|}
\hline
\PBS\centering \cellcolor{\tableheadbgcolor}\textbf{ / }&\PBS\centering \cellcolor{\tableheadbgcolor}\textbf{ $|$ }\\\cline{1-2}
\endfirsthead
\hline
\endfoot
\hline
\PBS\centering \cellcolor{\tableheadbgcolor}\textbf{ / }&\PBS\centering \cellcolor{\tableheadbgcolor}\textbf{ $|$ }\\\cline{1-2}
\endhead
-- &RST \\\cline{1-2}
\end{longtabu}
$\vert$ $\vert$ $\vert$ $\vert$
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 MPY 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 NONE
\end{DoxyItemize}
Definition at line 63 of file mpy32\+\_\+ex9\+\_\+32bit\+Unsigned\+Multiply.\+c.
Referenced by main().

View File

@@ -0,0 +1,80 @@
\hypertarget{_m_s_p430_f5xx__6xx_2rtc__c_2rtc__c__ex1__calendarmode_8c}{}\doxysection{Resources/\+Software/msp430\+\_\+driverlib\+\_\+2\+\_\+91\+\_\+13\+\_\+01/examples/\+MSP430\+F5xx\+\_\+6xx/rtc\+\_\+c/rtc\+\_\+c\+\_\+ex1\+\_\+calendarmode.c File Reference}
\label{_m_s_p430_f5xx__6xx_2rtc__c_2rtc__c__ex1__calendarmode_8c}\index{Resources/Software/msp430\_driverlib\_2\_91\_13\_01/examples/MSP430F5xx\_6xx/rtc\_c/rtc\_c\_ex1\_calendarmode.c@{Resources/Software/msp430\_driverlib\_2\_91\_13\_01/examples/MSP430F5xx\_6xx/rtc\_c/rtc\_c\_ex1\_calendarmode.c}}
{\ttfamily \#include \char`\"{}driverlib.\+h\char`\"{}}\newline
\doxysubsection*{Functions}
\begin{DoxyCompactItemize}
\item
void \mbox{\hyperlink{_m_s_p430_f5xx__6xx_2rtc__c_2rtc__c__ex1__calendarmode_8c_a6288eba0f8e8ad3ab1544ad731eb7667}{main}} (void)
\item
void \mbox{\hyperlink{_m_s_p430_f5xx__6xx_2rtc__c_2rtc__c__ex1__calendarmode_8c_aab67b5b38d41e40c3d03447137ba8ef5}{RTC\+\_\+\+ISR}} (void)
\end{DoxyCompactItemize}
\doxysubsection*{Variables}
\begin{DoxyCompactItemize}
\item
volatile Calendar \mbox{\hyperlink{_m_s_p430_f5xx__6xx_2rtc__c_2rtc__c__ex1__calendarmode_8c_ac6f7bbb5bb5d80ecf8c2eb3916ee8187}{new\+Time}}
\end{DoxyCompactItemize}
\doxysubsection{Function Documentation}
\mbox{\Hypertarget{_m_s_p430_f5xx__6xx_2rtc__c_2rtc__c__ex1__calendarmode_8c_a6288eba0f8e8ad3ab1544ad731eb7667}\label{_m_s_p430_f5xx__6xx_2rtc__c_2rtc__c__ex1__calendarmode_8c_a6288eba0f8e8ad3ab1544ad731eb7667}}
\index{rtc\_c\_ex1\_calendarmode.c@{rtc\_c\_ex1\_calendarmode.c}!main@{main}}
\index{main@{main}!rtc\_c\_ex1\_calendarmode.c@{rtc\_c\_ex1\_calendarmode.c}}
\doxysubsubsection{\texorpdfstring{main()}{main()}}
{\footnotesize\ttfamily void main (\begin{DoxyParamCaption}\item[{void}]{ }\end{DoxyParamCaption})}
Definition at line 73 of file rtc\+\_\+c\+\_\+ex1\+\_\+calendarmode.\+c.
References \+\_\+\+\_\+no\+\_\+operation(), and param.
\mbox{\Hypertarget{_m_s_p430_f5xx__6xx_2rtc__c_2rtc__c__ex1__calendarmode_8c_aab67b5b38d41e40c3d03447137ba8ef5}\label{_m_s_p430_f5xx__6xx_2rtc__c_2rtc__c__ex1__calendarmode_8c_aab67b5b38d41e40c3d03447137ba8ef5}}
\index{rtc\_c\_ex1\_calendarmode.c@{rtc\_c\_ex1\_calendarmode.c}!RTC\_ISR@{RTC\_ISR}}
\index{RTC\_ISR@{RTC\_ISR}!rtc\_c\_ex1\_calendarmode.c@{rtc\_c\_ex1\_calendarmode.c}}
\doxysubsubsection{\texorpdfstring{RTC\_ISR()}{RTC\_ISR()}}
{\footnotesize\ttfamily void RTC\+\_\+\+ISR (\begin{DoxyParamCaption}\item[{void}]{ }\end{DoxyParamCaption})}
Definition at line 154 of file rtc\+\_\+c\+\_\+ex1\+\_\+calendarmode.\+c.
References \+\_\+\+\_\+no\+\_\+operation(), and new\+Time.
\doxysubsection{Variable Documentation}
\mbox{\Hypertarget{_m_s_p430_f5xx__6xx_2rtc__c_2rtc__c__ex1__calendarmode_8c_ac6f7bbb5bb5d80ecf8c2eb3916ee8187}\label{_m_s_p430_f5xx__6xx_2rtc__c_2rtc__c__ex1__calendarmode_8c_ac6f7bbb5bb5d80ecf8c2eb3916ee8187}}
\index{rtc\_c\_ex1\_calendarmode.c@{rtc\_c\_ex1\_calendarmode.c}!newTime@{newTime}}
\index{newTime@{newTime}!rtc\_c\_ex1\_calendarmode.c@{rtc\_c\_ex1\_calendarmode.c}}
\doxysubsubsection{\texorpdfstring{newTime}{newTime}}
{\footnotesize\ttfamily volatile Calendar new\+Time}
RTC\+\_\+C in Calendar mode, Interruptions every 1s, 1m, and 5th day of week at 5\+:00pm
This program demonstrates the RTC mode by triggering an interrupt every second and minute. This code toggles P1.\+0 every second. This code recommends an external LFXT1 crystal for RTC accuracy. Note that if XT1 is not present the code loops in an infinite loop. ACLK = LFXT1 = 32768Hz, MCLK = SMCLK = default DCO = 32 x ACLK = 1048576Hz
NOTE\+: Refer device header file and pass in baseaddress parameter for RTC\+\_\+C as RTC\+\_\+\+C\+\_\+\+BASE or RTC\+\_\+\+CE\+\_\+\+BASE as defined in User\textquotesingle{}s guide\hypertarget{_m_s_p430_f5xx__6xx_2rtc__c_2rtc__c__ex1__calendarmode_8c_autotoc_md64}{}\doxysubsubsection{Tested On\+: MSP430\+F6736}\label{_m_s_p430_f5xx__6xx_2rtc__c_2rtc__c__ex1__calendarmode_8c_autotoc_md64}
/$\vert$\textbackslash{} $\vert$ XIN$\vert$-\/ $\vert$ $\vert$ $\vert$ 32k\+Hz ---$\vert$\+RST XOUT$\vert$-\/ $\vert$ $\vert$ $\vert$ P1.\+0 $\vert$-\/-\/$>$ Toggles every second $\vert$ $\vert$
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 UCS 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 71 of file rtc\+\_\+c\+\_\+ex1\+\_\+calendarmode.\+c.
Referenced by RTC\+\_\+\+ISR().

View File

@@ -0,0 +1,81 @@
\hypertarget{_m_s_p430_f5xx__6xx_2timer__a_2timer__a__ex1__pwm_single_8c}{}\doxysection{Resources/\+Software/msp430\+\_\+driverlib\+\_\+2\+\_\+91\+\_\+13\+\_\+01/examples/\+MSP430\+F5xx\+\_\+6xx/timer\+\_\+a/timer\+\_\+a\+\_\+ex1\+\_\+pwm\+Single.c File Reference}
\label{_m_s_p430_f5xx__6xx_2timer__a_2timer__a__ex1__pwm_single_8c}\index{Resources/Software/msp430\_driverlib\_2\_91\_13\_01/examples/MSP430F5xx\_6xx/timer\_a/timer\_a\_ex1\_pwmSingle.c@{Resources/Software/msp430\_driverlib\_2\_91\_13\_01/examples/MSP430F5xx\_6xx/timer\_a/timer\_a\_ex1\_pwmSingle.c}}
{\ttfamily \#include \char`\"{}driverlib.\+h\char`\"{}}\newline
\doxysubsection*{Macros}
\begin{DoxyCompactItemize}
\item
\#define \mbox{\hyperlink{_m_s_p430_f5xx__6xx_2timer__a_2timer__a__ex1__pwm_single_8c_ad888acf7c13a4bedd6541ceb5cf9bf6d}{TIMER\+\_\+\+PERIOD}}~511
\item
\#define \mbox{\hyperlink{_m_s_p430_f5xx__6xx_2timer__a_2timer__a__ex1__pwm_single_8c_a940d0fcbbee0921e43201c554231947c}{DUTY\+\_\+\+CYCLE}}~350
\end{DoxyCompactItemize}
\doxysubsection*{Functions}
\begin{DoxyCompactItemize}
\item
void \mbox{\hyperlink{_m_s_p430_f5xx__6xx_2timer__a_2timer__a__ex1__pwm_single_8c_a6288eba0f8e8ad3ab1544ad731eb7667}{main}} (void)
\end{DoxyCompactItemize}
\doxysubsection{Macro Definition Documentation}
\mbox{\Hypertarget{_m_s_p430_f5xx__6xx_2timer__a_2timer__a__ex1__pwm_single_8c_a940d0fcbbee0921e43201c554231947c}\label{_m_s_p430_f5xx__6xx_2timer__a_2timer__a__ex1__pwm_single_8c_a940d0fcbbee0921e43201c554231947c}}
\index{timer\_a\_ex1\_pwmSingle.c@{timer\_a\_ex1\_pwmSingle.c}!DUTY\_CYCLE@{DUTY\_CYCLE}}
\index{DUTY\_CYCLE@{DUTY\_CYCLE}!timer\_a\_ex1\_pwmSingle.c@{timer\_a\_ex1\_pwmSingle.c}}
\doxysubsubsection{\texorpdfstring{DUTY\_CYCLE}{DUTY\_CYCLE}}
{\footnotesize\ttfamily \#define DUTY\+\_\+\+CYCLE~350}
Definition at line 64 of file timer\+\_\+a\+\_\+ex1\+\_\+pwm\+Single.\+c.
\mbox{\Hypertarget{_m_s_p430_f5xx__6xx_2timer__a_2timer__a__ex1__pwm_single_8c_ad888acf7c13a4bedd6541ceb5cf9bf6d}\label{_m_s_p430_f5xx__6xx_2timer__a_2timer__a__ex1__pwm_single_8c_ad888acf7c13a4bedd6541ceb5cf9bf6d}}
\index{timer\_a\_ex1\_pwmSingle.c@{timer\_a\_ex1\_pwmSingle.c}!TIMER\_PERIOD@{TIMER\_PERIOD}}
\index{TIMER\_PERIOD@{TIMER\_PERIOD}!timer\_a\_ex1\_pwmSingle.c@{timer\_a\_ex1\_pwmSingle.c}}
\doxysubsubsection{\texorpdfstring{TIMER\_PERIOD}{TIMER\_PERIOD}}
{\footnotesize\ttfamily \#define TIMER\+\_\+\+PERIOD~511}
Timer\+\_\+\+A3, PWM TA1.\+1, Up Mode, DCO SMCLK
Description\+: This program generates PWM outputs on P2.\+2 using Timer1\+\_\+A configured for up mode. The value , TIMER\+\_\+\+PERIOD, defines the PWM period and the value DUTY\+\_\+\+CYCLE the PWM duty cycle. Using $\sim$1.045MHz SMCLK as TACLK, the timer period is $\sim$500us with a 75\% duty cycle on P2.\+2 ACLK = n/a, SMCLK = MCLK = TACLK = default DCO $\sim$1.045MHz.\hypertarget{_m_s_p430_f5xx__6xx_2timer__a_2timer__a__ex1__pwm_single_8c_autotoc_md65}{}\doxysubsubsection{Tested On\+: MSP430\+F5529}\label{_m_s_p430_f5xx__6xx_2timer__a_2timer__a__ex1__pwm_single_8c_autotoc_md65}
\tabulinesep=1mm
\begin{longtabu}spread 0pt [c]{*{2}{|X[-1]}|}
\hline
\PBS\centering \cellcolor{\tableheadbgcolor}\textbf{ / }&\PBS\centering \cellcolor{\tableheadbgcolor}\textbf{ $|$ }\\\cline{1-2}
\endfirsthead
\hline
\endfoot
\hline
\PBS\centering \cellcolor{\tableheadbgcolor}\textbf{ / }&\PBS\centering \cellcolor{\tableheadbgcolor}\textbf{ $|$ }\\\cline{1-2}
\endhead
-- &RST \\\cline{1-2}
\end{longtabu}
$\vert$ $\vert$ $\vert$ P2.\+0/\+TA1.1$\vert$-\/-\/$>$ CCR1 -\/ 75\% PWM $\vert$ $\vert$
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 Timer 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 NONE
\end{DoxyItemize}
Definition at line 63 of file timer\+\_\+a\+\_\+ex1\+\_\+pwm\+Single.\+c.
\doxysubsection{Function Documentation}
\mbox{\Hypertarget{_m_s_p430_f5xx__6xx_2timer__a_2timer__a__ex1__pwm_single_8c_a6288eba0f8e8ad3ab1544ad731eb7667}\label{_m_s_p430_f5xx__6xx_2timer__a_2timer__a__ex1__pwm_single_8c_a6288eba0f8e8ad3ab1544ad731eb7667}}
\index{timer\_a\_ex1\_pwmSingle.c@{timer\_a\_ex1\_pwmSingle.c}!main@{main}}
\index{main@{main}!timer\_a\_ex1\_pwmSingle.c@{timer\_a\_ex1\_pwmSingle.c}}
\doxysubsubsection{\texorpdfstring{main()}{main()}}
{\footnotesize\ttfamily void main (\begin{DoxyParamCaption}\item[{void}]{ }\end{DoxyParamCaption})}
Definition at line 66 of file timer\+\_\+a\+\_\+ex1\+\_\+pwm\+Single.\+c.
References \+\_\+\+\_\+no\+\_\+operation(), DUTY\+\_\+\+CYCLE, param, and TIMER\+\_\+\+PERIOD.

View File

@@ -0,0 +1,85 @@
\hypertarget{_m_s_p430_f5xx__6xx_2timer__a_2timer__a__ex2__continous_mode_operation_with_c_c_r0_interrupt_8c}{}\doxysection{Resources/\+Software/msp430\+\_\+driverlib\+\_\+2\+\_\+91\+\_\+13\+\_\+01/examples/\+MSP430\+F5xx\+\_\+6xx/timer\+\_\+a/timer\+\_\+a\+\_\+ex2\+\_\+continous\+Mode\+Operation\+With\+CCR0\+Interrupt.c File Reference}
\label{_m_s_p430_f5xx__6xx_2timer__a_2timer__a__ex2__continous_mode_operation_with_c_c_r0_interrupt_8c}\index{Resources/Software/msp430\_driverlib\_2\_91\_13\_01/examples/MSP430F5xx\_6xx/timer\_a/timer\_a\_ex2\_continousModeOperationWithCCR0Interrupt.c@{Resources/Software/msp430\_driverlib\_2\_91\_13\_01/examples/MSP430F5xx\_6xx/timer\_a/timer\_a\_ex2\_continousModeOperationWithCCR0Interrupt.c}}
{\ttfamily \#include \char`\"{}driverlib.\+h\char`\"{}}\newline
\doxysubsection*{Macros}
\begin{DoxyCompactItemize}
\item
\#define \mbox{\hyperlink{_m_s_p430_f5xx__6xx_2timer__a_2timer__a__ex2__continous_mode_operation_with_c_c_r0_interrupt_8c_a655c866eb3f7ee47831709b091612e63}{COMPARE\+\_\+\+VALUE}}~50000
\end{DoxyCompactItemize}
\doxysubsection*{Functions}
\begin{DoxyCompactItemize}
\item
void \mbox{\hyperlink{_m_s_p430_f5xx__6xx_2timer__a_2timer__a__ex2__continous_mode_operation_with_c_c_r0_interrupt_8c_a6288eba0f8e8ad3ab1544ad731eb7667}{main}} (void)
\item
void \mbox{\hyperlink{_m_s_p430_f5xx__6xx_2timer__a_2timer__a__ex2__continous_mode_operation_with_c_c_r0_interrupt_8c_a7041a18d2acb50837a4cbfb1bd386bd7}{TIMER1\+\_\+\+A0\+\_\+\+ISR}} (void)
\end{DoxyCompactItemize}
\doxysubsection{Macro Definition Documentation}
\mbox{\Hypertarget{_m_s_p430_f5xx__6xx_2timer__a_2timer__a__ex2__continous_mode_operation_with_c_c_r0_interrupt_8c_a655c866eb3f7ee47831709b091612e63}\label{_m_s_p430_f5xx__6xx_2timer__a_2timer__a__ex2__continous_mode_operation_with_c_c_r0_interrupt_8c_a655c866eb3f7ee47831709b091612e63}}
\index{timer\_a\_ex2\_continousModeOperationWithCCR0Interrupt.c@{timer\_a\_ex2\_continousModeOperationWithCCR0Interrupt.c}!COMPARE\_VALUE@{COMPARE\_VALUE}}
\index{COMPARE\_VALUE@{COMPARE\_VALUE}!timer\_a\_ex2\_continousModeOperationWithCCR0Interrupt.c@{timer\_a\_ex2\_continousModeOperationWithCCR0Interrupt.c}}
\doxysubsubsection{\texorpdfstring{COMPARE\_VALUE}{COMPARE\_VALUE}}
{\footnotesize\ttfamily \#define COMPARE\+\_\+\+VALUE~50000}
TIMER\+\_\+A, Toggle P1.\+0, CCR0 Cont. Mode ISR, DCO SMCLK
Toggle P1.\+0 using software and TA\+\_\+0 ISR. Toggles every 50000 SMCLK cycles. SMCLK provides clock source for TACLK. During the TA\+\_\+0 ISR, P1.\+0 is toggled and 50000 clock cycles are added to CCR0. TA\+\_\+0 ISR is triggered every 50000 cycles. CPU is normally off and used only during TA\+\_\+\+ISR. ACLK = n/a, MCLK = SMCLK = TACLK = default DCO $\sim$1.045MHz\hypertarget{_m_s_p430_f5xx__6xx_2timer__a_2timer__a__ex2__continous_mode_operation_with_c_c_r0_interrupt_8c_autotoc_md66}{}\doxysubsubsection{Tested On\+: MSP430\+F5529,\+MSP430\+FR5739}\label{_m_s_p430_f5xx__6xx_2timer__a_2timer__a__ex2__continous_mode_operation_with_c_c_r0_interrupt_8c_autotoc_md66}
\tabulinesep=1mm
\begin{longtabu}spread 0pt [c]{*{2}{|X[-1]}|}
\hline
\PBS\centering \cellcolor{\tableheadbgcolor}\textbf{ / }&\PBS\centering \cellcolor{\tableheadbgcolor}\textbf{ $|$ }\\\cline{1-2}
\endfirsthead
\hline
\endfoot
\hline
\PBS\centering \cellcolor{\tableheadbgcolor}\textbf{ / }&\PBS\centering \cellcolor{\tableheadbgcolor}\textbf{ $|$ }\\\cline{1-2}
\endhead
-- &RST \\\cline{1-2}
\end{longtabu}
$\vert$ $\vert$ $\vert$ P1.\+0$\vert$-\/-\/$>$LED
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 TimerA peripheral
\item GPIO 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 Timer A0
\end{DoxyItemize}
Definition at line 64 of file timer\+\_\+a\+\_\+ex2\+\_\+continous\+Mode\+Operation\+With\+CCR0\+Interrupt.\+c.
\doxysubsection{Function Documentation}
\mbox{\Hypertarget{_m_s_p430_f5xx__6xx_2timer__a_2timer__a__ex2__continous_mode_operation_with_c_c_r0_interrupt_8c_a6288eba0f8e8ad3ab1544ad731eb7667}\label{_m_s_p430_f5xx__6xx_2timer__a_2timer__a__ex2__continous_mode_operation_with_c_c_r0_interrupt_8c_a6288eba0f8e8ad3ab1544ad731eb7667}}
\index{timer\_a\_ex2\_continousModeOperationWithCCR0Interrupt.c@{timer\_a\_ex2\_continousModeOperationWithCCR0Interrupt.c}!main@{main}}
\index{main@{main}!timer\_a\_ex2\_continousModeOperationWithCCR0Interrupt.c@{timer\_a\_ex2\_continousModeOperationWithCCR0Interrupt.c}}
\doxysubsubsection{\texorpdfstring{main()}{main()}}
{\footnotesize\ttfamily void main (\begin{DoxyParamCaption}\item[{void}]{ }\end{DoxyParamCaption})}
Definition at line 66 of file timer\+\_\+a\+\_\+ex2\+\_\+continous\+Mode\+Operation\+With\+CCR0\+Interrupt.\+c.
References \+\_\+\+\_\+no\+\_\+operation(), and COMPARE\+\_\+\+VALUE.
\mbox{\Hypertarget{_m_s_p430_f5xx__6xx_2timer__a_2timer__a__ex2__continous_mode_operation_with_c_c_r0_interrupt_8c_a7041a18d2acb50837a4cbfb1bd386bd7}\label{_m_s_p430_f5xx__6xx_2timer__a_2timer__a__ex2__continous_mode_operation_with_c_c_r0_interrupt_8c_a7041a18d2acb50837a4cbfb1bd386bd7}}
\index{timer\_a\_ex2\_continousModeOperationWithCCR0Interrupt.c@{timer\_a\_ex2\_continousModeOperationWithCCR0Interrupt.c}!TIMER1\_A0\_ISR@{TIMER1\_A0\_ISR}}
\index{TIMER1\_A0\_ISR@{TIMER1\_A0\_ISR}!timer\_a\_ex2\_continousModeOperationWithCCR0Interrupt.c@{timer\_a\_ex2\_continousModeOperationWithCCR0Interrupt.c}}
\doxysubsubsection{\texorpdfstring{TIMER1\_A0\_ISR()}{TIMER1\_A0\_ISR()}}
{\footnotesize\ttfamily void TIMER1\+\_\+\+A0\+\_\+\+ISR (\begin{DoxyParamCaption}\item[{void}]{ }\end{DoxyParamCaption})}
Definition at line 120 of file timer\+\_\+a\+\_\+ex2\+\_\+continous\+Mode\+Operation\+With\+CCR0\+Interrupt.\+c.
References COMPARE\+\_\+\+VALUE.

View File

@@ -0,0 +1,63 @@
\hypertarget{_m_s_p430_f5xx__6xx_2timer__a_2timer__a__ex3__continous_mode_operation_with_t_a_i_e_interrupt_8c}{}\doxysection{Resources/\+Software/msp430\+\_\+driverlib\+\_\+2\+\_\+91\+\_\+13\+\_\+01/examples/\+MSP430\+F5xx\+\_\+6xx/timer\+\_\+a/timer\+\_\+a\+\_\+ex3\+\_\+continous\+Mode\+Operation\+With\+TAIEInterrupt.c File Reference}
\label{_m_s_p430_f5xx__6xx_2timer__a_2timer__a__ex3__continous_mode_operation_with_t_a_i_e_interrupt_8c}\index{Resources/Software/msp430\_driverlib\_2\_91\_13\_01/examples/MSP430F5xx\_6xx/timer\_a/timer\_a\_ex3\_continousModeOperationWithTAIEInterrupt.c@{Resources/Software/msp430\_driverlib\_2\_91\_13\_01/examples/MSP430F5xx\_6xx/timer\_a/timer\_a\_ex3\_continousModeOperationWithTAIEInterrupt.c}}
{\ttfamily \#include \char`\"{}driverlib.\+h\char`\"{}}\newline
\doxysubsection*{Functions}
\begin{DoxyCompactItemize}
\item
void \mbox{\hyperlink{_m_s_p430_f5xx__6xx_2timer__a_2timer__a__ex3__continous_mode_operation_with_t_a_i_e_interrupt_8c_a6288eba0f8e8ad3ab1544ad731eb7667}{main}} (void)
\item
void \mbox{\hyperlink{_m_s_p430_f5xx__6xx_2timer__a_2timer__a__ex3__continous_mode_operation_with_t_a_i_e_interrupt_8c_a75b17bc1a2d3b4b8e3b7fff08b7651a8}{TIMER1\+\_\+\+A1\+\_\+\+ISR}} (void)
\end{DoxyCompactItemize}
\doxysubsection{Function Documentation}
\mbox{\Hypertarget{_m_s_p430_f5xx__6xx_2timer__a_2timer__a__ex3__continous_mode_operation_with_t_a_i_e_interrupt_8c_a6288eba0f8e8ad3ab1544ad731eb7667}\label{_m_s_p430_f5xx__6xx_2timer__a_2timer__a__ex3__continous_mode_operation_with_t_a_i_e_interrupt_8c_a6288eba0f8e8ad3ab1544ad731eb7667}}
\index{timer\_a\_ex3\_continousModeOperationWithTAIEInterrupt.c@{timer\_a\_ex3\_continousModeOperationWithTAIEInterrupt.c}!main@{main}}
\index{main@{main}!timer\_a\_ex3\_continousModeOperationWithTAIEInterrupt.c@{timer\_a\_ex3\_continousModeOperationWithTAIEInterrupt.c}}
\doxysubsubsection{\texorpdfstring{main()}{main()}}
{\footnotesize\ttfamily void main (\begin{DoxyParamCaption}\item[{void}]{ }\end{DoxyParamCaption})}
TIMER\+\_\+A, Toggle P1.\+0, Overflow ISR, 32k\+Hz ACLK
Description\+: Toggle P1.\+0 using software and the TIMER\+\_\+A overflow ISR. In this example an ISR triggers when TB overflows. Inside the ISR P1.\+0 is toggled. Toggle rate is exactly 0.\+25\+Hz = \mbox{[}32k\+Hz/\+FFFFh\mbox{]}/2. Proper use of the TAIV interrupt vector generator is demonstrated. ACLK = TBCLK = 32k\+Hz, MCLK = SMCLK = default DCO $\sim$ 1.\+045\+MHz\hypertarget{_m_s_p430_f5xx__6xx_2timer__a_2timer__a__ex3__continous_mode_operation_with_t_a_i_e_interrupt_8c_autotoc_md67}{}\doxysubsubsection{Tested On\+: MSP430\+F5529,\+MSP430\+FR5739}\label{_m_s_p430_f5xx__6xx_2timer__a_2timer__a__ex3__continous_mode_operation_with_t_a_i_e_interrupt_8c_autotoc_md67}
\tabulinesep=1mm
\begin{longtabu}spread 0pt [c]{*{2}{|X[-1]}|}
\hline
\PBS\centering \cellcolor{\tableheadbgcolor}\textbf{ / }&\PBS\centering \cellcolor{\tableheadbgcolor}\textbf{ $|$ }\\\cline{1-2}
\endfirsthead
\hline
\endfoot
\hline
\PBS\centering \cellcolor{\tableheadbgcolor}\textbf{ / }&\PBS\centering \cellcolor{\tableheadbgcolor}\textbf{ $|$ }\\\cline{1-2}
\endhead
-- &RST \\\cline{1-2}
\end{longtabu}
$\vert$ $\vert$ $\vert$ P1.\+0$\vert$-\/-\/$>$LED
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 Timer peripheral
\item GPIO 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 TIMER\+\_\+\+A7
\end{DoxyItemize}
Definition at line 64 of file timer\+\_\+a\+\_\+ex3\+\_\+continous\+Mode\+Operation\+With\+TAIEInterrupt.\+c.
References \+\_\+\+\_\+no\+\_\+operation(), and param.
\mbox{\Hypertarget{_m_s_p430_f5xx__6xx_2timer__a_2timer__a__ex3__continous_mode_operation_with_t_a_i_e_interrupt_8c_a75b17bc1a2d3b4b8e3b7fff08b7651a8}\label{_m_s_p430_f5xx__6xx_2timer__a_2timer__a__ex3__continous_mode_operation_with_t_a_i_e_interrupt_8c_a75b17bc1a2d3b4b8e3b7fff08b7651a8}}
\index{timer\_a\_ex3\_continousModeOperationWithTAIEInterrupt.c@{timer\_a\_ex3\_continousModeOperationWithTAIEInterrupt.c}!TIMER1\_A1\_ISR@{TIMER1\_A1\_ISR}}
\index{TIMER1\_A1\_ISR@{TIMER1\_A1\_ISR}!timer\_a\_ex3\_continousModeOperationWithTAIEInterrupt.c@{timer\_a\_ex3\_continousModeOperationWithTAIEInterrupt.c}}
\doxysubsubsection{\texorpdfstring{TIMER1\_A1\_ISR()}{TIMER1\_A1\_ISR()}}
{\footnotesize\ttfamily void TIMER1\+\_\+\+A1\+\_\+\+ISR (\begin{DoxyParamCaption}\item[{void}]{ }\end{DoxyParamCaption})}
Definition at line 104 of file timer\+\_\+a\+\_\+ex3\+\_\+continous\+Mode\+Operation\+With\+TAIEInterrupt.\+c.

View File

@@ -0,0 +1,93 @@
\hypertarget{_m_s_p430_f5xx__6xx_2timer__a_2timer__a__ex4__pwm_multiple_up_down_8c}{}\doxysection{Resources/\+Software/msp430\+\_\+driverlib\+\_\+2\+\_\+91\+\_\+13\+\_\+01/examples/\+MSP430\+F5xx\+\_\+6xx/timer\+\_\+a/timer\+\_\+a\+\_\+ex4\+\_\+pwm\+Multiple\+Up\+Down.c File Reference}
\label{_m_s_p430_f5xx__6xx_2timer__a_2timer__a__ex4__pwm_multiple_up_down_8c}\index{Resources/Software/msp430\_driverlib\_2\_91\_13\_01/examples/MSP430F5xx\_6xx/timer\_a/timer\_a\_ex4\_pwmMultipleUpDown.c@{Resources/Software/msp430\_driverlib\_2\_91\_13\_01/examples/MSP430F5xx\_6xx/timer\_a/timer\_a\_ex4\_pwmMultipleUpDown.c}}
{\ttfamily \#include \char`\"{}driverlib.\+h\char`\"{}}\newline
\doxysubsection*{Macros}
\begin{DoxyCompactItemize}
\item
\#define \mbox{\hyperlink{_m_s_p430_f5xx__6xx_2timer__a_2timer__a__ex4__pwm_multiple_up_down_8c_ad888acf7c13a4bedd6541ceb5cf9bf6d}{TIMER\+\_\+\+PERIOD}}~127
\item
\#define \mbox{\hyperlink{_m_s_p430_f5xx__6xx_2timer__a_2timer__a__ex4__pwm_multiple_up_down_8c_abb796f001390b47f0f733ea9a08481db}{DUTY\+\_\+\+CYCLE1}}~32
\item
\#define \mbox{\hyperlink{_m_s_p430_f5xx__6xx_2timer__a_2timer__a__ex4__pwm_multiple_up_down_8c_a497fa7efc7cefe7b023b4215f48cfe2a}{DUTY\+\_\+\+CYCLE2}}~96
\end{DoxyCompactItemize}
\doxysubsection*{Functions}
\begin{DoxyCompactItemize}
\item
void \mbox{\hyperlink{_m_s_p430_f5xx__6xx_2timer__a_2timer__a__ex4__pwm_multiple_up_down_8c_a6288eba0f8e8ad3ab1544ad731eb7667}{main}} (void)
\end{DoxyCompactItemize}
\doxysubsection{Macro Definition Documentation}
\mbox{\Hypertarget{_m_s_p430_f5xx__6xx_2timer__a_2timer__a__ex4__pwm_multiple_up_down_8c_abb796f001390b47f0f733ea9a08481db}\label{_m_s_p430_f5xx__6xx_2timer__a_2timer__a__ex4__pwm_multiple_up_down_8c_abb796f001390b47f0f733ea9a08481db}}
\index{timer\_a\_ex4\_pwmMultipleUpDown.c@{timer\_a\_ex4\_pwmMultipleUpDown.c}!DUTY\_CYCLE1@{DUTY\_CYCLE1}}
\index{DUTY\_CYCLE1@{DUTY\_CYCLE1}!timer\_a\_ex4\_pwmMultipleUpDown.c@{timer\_a\_ex4\_pwmMultipleUpDown.c}}
\doxysubsubsection{\texorpdfstring{DUTY\_CYCLE1}{DUTY\_CYCLE1}}
{\footnotesize\ttfamily \#define DUTY\+\_\+\+CYCLE1~32}
Definition at line 67 of file timer\+\_\+a\+\_\+ex4\+\_\+pwm\+Multiple\+Up\+Down.\+c.
\mbox{\Hypertarget{_m_s_p430_f5xx__6xx_2timer__a_2timer__a__ex4__pwm_multiple_up_down_8c_a497fa7efc7cefe7b023b4215f48cfe2a}\label{_m_s_p430_f5xx__6xx_2timer__a_2timer__a__ex4__pwm_multiple_up_down_8c_a497fa7efc7cefe7b023b4215f48cfe2a}}
\index{timer\_a\_ex4\_pwmMultipleUpDown.c@{timer\_a\_ex4\_pwmMultipleUpDown.c}!DUTY\_CYCLE2@{DUTY\_CYCLE2}}
\index{DUTY\_CYCLE2@{DUTY\_CYCLE2}!timer\_a\_ex4\_pwmMultipleUpDown.c@{timer\_a\_ex4\_pwmMultipleUpDown.c}}
\doxysubsubsection{\texorpdfstring{DUTY\_CYCLE2}{DUTY\_CYCLE2}}
{\footnotesize\ttfamily \#define DUTY\+\_\+\+CYCLE2~96}
Definition at line 68 of file timer\+\_\+a\+\_\+ex4\+\_\+pwm\+Multiple\+Up\+Down.\+c.
\mbox{\Hypertarget{_m_s_p430_f5xx__6xx_2timer__a_2timer__a__ex4__pwm_multiple_up_down_8c_ad888acf7c13a4bedd6541ceb5cf9bf6d}\label{_m_s_p430_f5xx__6xx_2timer__a_2timer__a__ex4__pwm_multiple_up_down_8c_ad888acf7c13a4bedd6541ceb5cf9bf6d}}
\index{timer\_a\_ex4\_pwmMultipleUpDown.c@{timer\_a\_ex4\_pwmMultipleUpDown.c}!TIMER\_PERIOD@{TIMER\_PERIOD}}
\index{TIMER\_PERIOD@{TIMER\_PERIOD}!timer\_a\_ex4\_pwmMultipleUpDown.c@{timer\_a\_ex4\_pwmMultipleUpDown.c}}
\doxysubsubsection{\texorpdfstring{TIMER\_PERIOD}{TIMER\_PERIOD}}
{\footnotesize\ttfamily \#define TIMER\+\_\+\+PERIOD~127}
Timer\+\_\+\+A3, PWM TA1.\+1-\/2, Up/\+Down Mode, DCO SMCLK
Description\+: This program generates two PWM outputs on P2.\+0,P2.\+1 using Timer1\+\_\+A configured for up/down mode. The value in CCR0, 128, defines the PWM period/2 and the values in CCR1 and CCR2 the PWM duty cycles. Using $\sim$1.045MHz SMCLK as TACLK, the timer period is $\sim$233us with a 75\% duty cycle on P2.\+0 and 25\% on P2.\+1. SMCLK = MCLK = TACLK = default DCO $\sim$1.045MHz.\hypertarget{_m_s_p430_f5xx__6xx_2timer__a_2timer__a__ex4__pwm_multiple_up_down_8c_autotoc_md68}{}\doxysubsubsection{Tested On\+: MSP430\+F5529}\label{_m_s_p430_f5xx__6xx_2timer__a_2timer__a__ex4__pwm_multiple_up_down_8c_autotoc_md68}
\tabulinesep=1mm
\begin{longtabu}spread 0pt [c]{*{2}{|X[-1]}|}
\hline
\PBS\centering \cellcolor{\tableheadbgcolor}\textbf{ / }&\PBS\centering \cellcolor{\tableheadbgcolor}\textbf{ $|$ }\\\cline{1-2}
\endfirsthead
\hline
\endfoot
\hline
\PBS\centering \cellcolor{\tableheadbgcolor}\textbf{ / }&\PBS\centering \cellcolor{\tableheadbgcolor}\textbf{ $|$ }\\\cline{1-2}
\endhead
-- &RST \\\cline{1-2}
\end{longtabu}
$\vert$ $\vert$ $\vert$ P2.\+0/\+TA1.1$\vert$-\/-\/$>$ CCR1 -\/ 75\% PWM $\vert$ P2.\+1/\+TA1.2$\vert$-\/-\/$>$ CCR2 -\/ 25\% PWM
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 Timer 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 NONE
\end{DoxyItemize}
Definition at line 66 of file timer\+\_\+a\+\_\+ex4\+\_\+pwm\+Multiple\+Up\+Down.\+c.
\doxysubsection{Function Documentation}
\mbox{\Hypertarget{_m_s_p430_f5xx__6xx_2timer__a_2timer__a__ex4__pwm_multiple_up_down_8c_a6288eba0f8e8ad3ab1544ad731eb7667}\label{_m_s_p430_f5xx__6xx_2timer__a_2timer__a__ex4__pwm_multiple_up_down_8c_a6288eba0f8e8ad3ab1544ad731eb7667}}
\index{timer\_a\_ex4\_pwmMultipleUpDown.c@{timer\_a\_ex4\_pwmMultipleUpDown.c}!main@{main}}
\index{main@{main}!timer\_a\_ex4\_pwmMultipleUpDown.c@{timer\_a\_ex4\_pwmMultipleUpDown.c}}
\doxysubsubsection{\texorpdfstring{main()}{main()}}
{\footnotesize\ttfamily void main (\begin{DoxyParamCaption}\item[{void}]{ }\end{DoxyParamCaption})}
Definition at line 70 of file timer\+\_\+a\+\_\+ex4\+\_\+pwm\+Multiple\+Up\+Down.\+c.
References \+\_\+\+\_\+no\+\_\+operation(), DUTY\+\_\+\+CYCLE1, DUTY\+\_\+\+CYCLE2, and TIMER\+\_\+\+PERIOD.

View File

@@ -0,0 +1,91 @@
\hypertarget{_m_s_p430_f5xx__6xx_2timer__a_2timer__a__ex5__pwm_multiple_up_8c}{}\doxysection{Resources/\+Software/msp430\+\_\+driverlib\+\_\+2\+\_\+91\+\_\+13\+\_\+01/examples/\+MSP430\+F5xx\+\_\+6xx/timer\+\_\+a/timer\+\_\+a\+\_\+ex5\+\_\+pwm\+Multiple\+Up.c File Reference}
\label{_m_s_p430_f5xx__6xx_2timer__a_2timer__a__ex5__pwm_multiple_up_8c}\index{Resources/Software/msp430\_driverlib\_2\_91\_13\_01/examples/MSP430F5xx\_6xx/timer\_a/timer\_a\_ex5\_pwmMultipleUp.c@{Resources/Software/msp430\_driverlib\_2\_91\_13\_01/examples/MSP430F5xx\_6xx/timer\_a/timer\_a\_ex5\_pwmMultipleUp.c}}
{\ttfamily \#include \char`\"{}driverlib.\+h\char`\"{}}\newline
\doxysubsection*{Macros}
\begin{DoxyCompactItemize}
\item
\#define \mbox{\hyperlink{_m_s_p430_f5xx__6xx_2timer__a_2timer__a__ex5__pwm_multiple_up_8c_ad888acf7c13a4bedd6541ceb5cf9bf6d}{TIMER\+\_\+\+PERIOD}}~511
\item
\#define \mbox{\hyperlink{_m_s_p430_f5xx__6xx_2timer__a_2timer__a__ex5__pwm_multiple_up_8c_abb796f001390b47f0f733ea9a08481db}{DUTY\+\_\+\+CYCLE1}}~384
\item
\#define \mbox{\hyperlink{_m_s_p430_f5xx__6xx_2timer__a_2timer__a__ex5__pwm_multiple_up_8c_a497fa7efc7cefe7b023b4215f48cfe2a}{DUTY\+\_\+\+CYCLE2}}~128
\end{DoxyCompactItemize}
\doxysubsection*{Functions}
\begin{DoxyCompactItemize}
\item
void \mbox{\hyperlink{_m_s_p430_f5xx__6xx_2timer__a_2timer__a__ex5__pwm_multiple_up_8c_a6288eba0f8e8ad3ab1544ad731eb7667}{main}} (void)
\end{DoxyCompactItemize}
\doxysubsection{Macro Definition Documentation}
\mbox{\Hypertarget{_m_s_p430_f5xx__6xx_2timer__a_2timer__a__ex5__pwm_multiple_up_8c_abb796f001390b47f0f733ea9a08481db}\label{_m_s_p430_f5xx__6xx_2timer__a_2timer__a__ex5__pwm_multiple_up_8c_abb796f001390b47f0f733ea9a08481db}}
\index{timer\_a\_ex5\_pwmMultipleUp.c@{timer\_a\_ex5\_pwmMultipleUp.c}!DUTY\_CYCLE1@{DUTY\_CYCLE1}}
\index{DUTY\_CYCLE1@{DUTY\_CYCLE1}!timer\_a\_ex5\_pwmMultipleUp.c@{timer\_a\_ex5\_pwmMultipleUp.c}}
\doxysubsubsection{\texorpdfstring{DUTY\_CYCLE1}{DUTY\_CYCLE1}}
{\footnotesize\ttfamily \#define DUTY\+\_\+\+CYCLE1~384}
Definition at line 64 of file timer\+\_\+a\+\_\+ex5\+\_\+pwm\+Multiple\+Up.\+c.
\mbox{\Hypertarget{_m_s_p430_f5xx__6xx_2timer__a_2timer__a__ex5__pwm_multiple_up_8c_a497fa7efc7cefe7b023b4215f48cfe2a}\label{_m_s_p430_f5xx__6xx_2timer__a_2timer__a__ex5__pwm_multiple_up_8c_a497fa7efc7cefe7b023b4215f48cfe2a}}
\index{timer\_a\_ex5\_pwmMultipleUp.c@{timer\_a\_ex5\_pwmMultipleUp.c}!DUTY\_CYCLE2@{DUTY\_CYCLE2}}
\index{DUTY\_CYCLE2@{DUTY\_CYCLE2}!timer\_a\_ex5\_pwmMultipleUp.c@{timer\_a\_ex5\_pwmMultipleUp.c}}
\doxysubsubsection{\texorpdfstring{DUTY\_CYCLE2}{DUTY\_CYCLE2}}
{\footnotesize\ttfamily \#define DUTY\+\_\+\+CYCLE2~128}
Definition at line 65 of file timer\+\_\+a\+\_\+ex5\+\_\+pwm\+Multiple\+Up.\+c.
\mbox{\Hypertarget{_m_s_p430_f5xx__6xx_2timer__a_2timer__a__ex5__pwm_multiple_up_8c_ad888acf7c13a4bedd6541ceb5cf9bf6d}\label{_m_s_p430_f5xx__6xx_2timer__a_2timer__a__ex5__pwm_multiple_up_8c_ad888acf7c13a4bedd6541ceb5cf9bf6d}}
\index{timer\_a\_ex5\_pwmMultipleUp.c@{timer\_a\_ex5\_pwmMultipleUp.c}!TIMER\_PERIOD@{TIMER\_PERIOD}}
\index{TIMER\_PERIOD@{TIMER\_PERIOD}!timer\_a\_ex5\_pwmMultipleUp.c@{timer\_a\_ex5\_pwmMultipleUp.c}}
\doxysubsubsection{\texorpdfstring{TIMER\_PERIOD}{TIMER\_PERIOD}}
{\footnotesize\ttfamily \#define TIMER\+\_\+\+PERIOD~511}
This program generates two PWM outputs on P2.\+0,P2.\+1 using Timer1\+\_\+A configured for up mode. The value in CCR0, 512-\/1, defines the PWM period and the values in CCR1 and CCR2 the PWM duty cycles. Using $\sim$1.045MHz SMCLK as TACLK, the timer period is $\sim$500us with a 75\% duty cycle on P2.\+2 and 25\% on P2.\+3. ACLK = n/a, SMCLK = MCLK = TACLK = default DCO $\sim$1.045MHz.\hypertarget{_m_s_p430_f5xx__6xx_2timer__a_2timer__a__ex5__pwm_multiple_up_8c_autotoc_md69}{}\doxysubsubsection{Tested On\+: MSP430\+F5529}\label{_m_s_p430_f5xx__6xx_2timer__a_2timer__a__ex5__pwm_multiple_up_8c_autotoc_md69}
\tabulinesep=1mm
\begin{longtabu}spread 0pt [c]{*{2}{|X[-1]}|}
\hline
\PBS\centering \cellcolor{\tableheadbgcolor}\textbf{ / }&\PBS\centering \cellcolor{\tableheadbgcolor}\textbf{ $|$ }\\\cline{1-2}
\endfirsthead
\hline
\endfoot
\hline
\PBS\centering \cellcolor{\tableheadbgcolor}\textbf{ / }&\PBS\centering \cellcolor{\tableheadbgcolor}\textbf{ $|$ }\\\cline{1-2}
\endhead
-- &RST \\\cline{1-2}
\end{longtabu}
$\vert$ $\vert$ $\vert$ P2.\+0/\+TA1.1$\vert$-\/-\/$>$ CCR1 -\/ 75\% PWM $\vert$ P2.\+1/\+TA1.2$\vert$-\/-\/$>$ CCR2 -\/ 25\% PWM
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 Timer 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 NONE
\end{DoxyItemize}
Definition at line 63 of file timer\+\_\+a\+\_\+ex5\+\_\+pwm\+Multiple\+Up.\+c.
\doxysubsection{Function Documentation}
\mbox{\Hypertarget{_m_s_p430_f5xx__6xx_2timer__a_2timer__a__ex5__pwm_multiple_up_8c_a6288eba0f8e8ad3ab1544ad731eb7667}\label{_m_s_p430_f5xx__6xx_2timer__a_2timer__a__ex5__pwm_multiple_up_8c_a6288eba0f8e8ad3ab1544ad731eb7667}}
\index{timer\_a\_ex5\_pwmMultipleUp.c@{timer\_a\_ex5\_pwmMultipleUp.c}!main@{main}}
\index{main@{main}!timer\_a\_ex5\_pwmMultipleUp.c@{timer\_a\_ex5\_pwmMultipleUp.c}}
\doxysubsubsection{\texorpdfstring{main()}{main()}}
{\footnotesize\ttfamily void main (\begin{DoxyParamCaption}\item[{void}]{ }\end{DoxyParamCaption})}
Definition at line 67 of file timer\+\_\+a\+\_\+ex5\+\_\+pwm\+Multiple\+Up.\+c.
References \+\_\+\+\_\+no\+\_\+operation(), DUTY\+\_\+\+CYCLE1, DUTY\+\_\+\+CYCLE2, and TIMER\+\_\+\+PERIOD.

View File

@@ -0,0 +1,79 @@
\hypertarget{_m_s_p430_f5xx__6xx_2timer__a_2timer__a__ex6__up_down_mode_operation_8c}{}\doxysection{Resources/\+Software/msp430\+\_\+driverlib\+\_\+2\+\_\+91\+\_\+13\+\_\+01/examples/\+MSP430\+F5xx\+\_\+6xx/timer\+\_\+a/timer\+\_\+a\+\_\+ex6\+\_\+up\+Down\+Mode\+Operation.c File Reference}
\label{_m_s_p430_f5xx__6xx_2timer__a_2timer__a__ex6__up_down_mode_operation_8c}\index{Resources/Software/msp430\_driverlib\_2\_91\_13\_01/examples/MSP430F5xx\_6xx/timer\_a/timer\_a\_ex6\_upDownModeOperation.c@{Resources/Software/msp430\_driverlib\_2\_91\_13\_01/examples/MSP430F5xx\_6xx/timer\_a/timer\_a\_ex6\_upDownModeOperation.c}}
{\ttfamily \#include \char`\"{}driverlib.\+h\char`\"{}}\newline
\doxysubsection*{Macros}
\begin{DoxyCompactItemize}
\item
\#define \mbox{\hyperlink{_m_s_p430_f5xx__6xx_2timer__a_2timer__a__ex6__up_down_mode_operation_8c_ae899bfdc491d37c006b4c301d9f8e147}{TIMER\+\_\+\+A\+\_\+\+PERIOD}}~250
\item
\#define \mbox{\hyperlink{_m_s_p430_f5xx__6xx_2timer__a_2timer__a__ex6__up_down_mode_operation_8c_a940d0fcbbee0921e43201c554231947c}{DUTY\+\_\+\+CYCLE}}~250
\end{DoxyCompactItemize}
\doxysubsection*{Functions}
\begin{DoxyCompactItemize}
\item
void \mbox{\hyperlink{_m_s_p430_f5xx__6xx_2timer__a_2timer__a__ex6__up_down_mode_operation_8c_a6288eba0f8e8ad3ab1544ad731eb7667}{main}} (void)
\end{DoxyCompactItemize}
\doxysubsection{Macro Definition Documentation}
\mbox{\Hypertarget{_m_s_p430_f5xx__6xx_2timer__a_2timer__a__ex6__up_down_mode_operation_8c_a940d0fcbbee0921e43201c554231947c}\label{_m_s_p430_f5xx__6xx_2timer__a_2timer__a__ex6__up_down_mode_operation_8c_a940d0fcbbee0921e43201c554231947c}}
\index{timer\_a\_ex6\_upDownModeOperation.c@{timer\_a\_ex6\_upDownModeOperation.c}!DUTY\_CYCLE@{DUTY\_CYCLE}}
\index{DUTY\_CYCLE@{DUTY\_CYCLE}!timer\_a\_ex6\_upDownModeOperation.c@{timer\_a\_ex6\_upDownModeOperation.c}}
\doxysubsubsection{\texorpdfstring{DUTY\_CYCLE}{DUTY\_CYCLE}}
{\footnotesize\ttfamily \#define DUTY\+\_\+\+CYCLE~250}
Definition at line 65 of file timer\+\_\+a\+\_\+ex6\+\_\+up\+Down\+Mode\+Operation.\+c.
\mbox{\Hypertarget{_m_s_p430_f5xx__6xx_2timer__a_2timer__a__ex6__up_down_mode_operation_8c_ae899bfdc491d37c006b4c301d9f8e147}\label{_m_s_p430_f5xx__6xx_2timer__a_2timer__a__ex6__up_down_mode_operation_8c_ae899bfdc491d37c006b4c301d9f8e147}}
\index{timer\_a\_ex6\_upDownModeOperation.c@{timer\_a\_ex6\_upDownModeOperation.c}!TIMER\_A\_PERIOD@{TIMER\_A\_PERIOD}}
\index{TIMER\_A\_PERIOD@{TIMER\_A\_PERIOD}!timer\_a\_ex6\_upDownModeOperation.c@{timer\_a\_ex6\_upDownModeOperation.c}}
\doxysubsubsection{\texorpdfstring{TIMER\_A\_PERIOD}{TIMER\_A\_PERIOD}}
{\footnotesize\ttfamily \#define TIMER\+\_\+\+A\+\_\+\+PERIOD~250}
Toggle P1.\+7 using hardware TA1.\+0 output. Timer1\+\_\+A is configured for up/down mode with CCR0 defining period, TA1.\+0 also output on P1.\+7. In this example, CCR0 is loaded with 250 and TA1.\+0 will toggle P1.\+7 at TACLK/2$\ast$250. Thus the output frequency on P1.\+7 will be the TACLK/1000. No CPU or software resources required. As coded with TACLK = SMCLK, P1.\+7 output frequency is $\sim$1.045M/1000. SMCLK = MCLK = TACLK = default DCO $\sim$1.045MHz\hypertarget{_m_s_p430_f5xx__6xx_2timer__a_2timer__a__ex6__up_down_mode_operation_8c_autotoc_md70}{}\doxysubsubsection{Tested On\+: MSP430\+F5529}\label{_m_s_p430_f5xx__6xx_2timer__a_2timer__a__ex6__up_down_mode_operation_8c_autotoc_md70}
\tabulinesep=1mm
\begin{longtabu}spread 0pt [c]{*{2}{|X[-1]}|}
\hline
\PBS\centering \cellcolor{\tableheadbgcolor}\textbf{ / }&\PBS\centering \cellcolor{\tableheadbgcolor}\textbf{ $|$ }\\\cline{1-2}
\endfirsthead
\hline
\endfoot
\hline
\PBS\centering \cellcolor{\tableheadbgcolor}\textbf{ / }&\PBS\centering \cellcolor{\tableheadbgcolor}\textbf{ $|$ }\\\cline{1-2}
\endhead
-- &RST \\\cline{1-2}
\end{longtabu}
$\vert$ $\vert$ $\vert$ P1.\+7/\+TA1.0$\vert$-\/-\/$>$ SMCLK/1000
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 Timer 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 NONE
\end{DoxyItemize}
Definition at line 64 of file timer\+\_\+a\+\_\+ex6\+\_\+up\+Down\+Mode\+Operation.\+c.
\doxysubsection{Function Documentation}
\mbox{\Hypertarget{_m_s_p430_f5xx__6xx_2timer__a_2timer__a__ex6__up_down_mode_operation_8c_a6288eba0f8e8ad3ab1544ad731eb7667}\label{_m_s_p430_f5xx__6xx_2timer__a_2timer__a__ex6__up_down_mode_operation_8c_a6288eba0f8e8ad3ab1544ad731eb7667}}
\index{timer\_a\_ex6\_upDownModeOperation.c@{timer\_a\_ex6\_upDownModeOperation.c}!main@{main}}
\index{main@{main}!timer\_a\_ex6\_upDownModeOperation.c@{timer\_a\_ex6\_upDownModeOperation.c}}
\doxysubsubsection{\texorpdfstring{main()}{main()}}
{\footnotesize\ttfamily void main (\begin{DoxyParamCaption}\item[{void}]{ }\end{DoxyParamCaption})}
Definition at line 67 of file timer\+\_\+a\+\_\+ex6\+\_\+up\+Down\+Mode\+Operation.\+c.
References \+\_\+\+\_\+no\+\_\+operation(), DUTY\+\_\+\+CYCLE, and TIMER\+\_\+\+A\+\_\+\+PERIOD.

View File

@@ -0,0 +1,74 @@
\hypertarget{_m_s_p430_f5xx__6xx_2timer__b_2timer__b__ex1__continuous_mode_c_c_r0_8c}{}\doxysection{Resources/\+Software/msp430\+\_\+driverlib\+\_\+2\+\_\+91\+\_\+13\+\_\+01/examples/\+MSP430\+F5xx\+\_\+6xx/timer\+\_\+b/timer\+\_\+b\+\_\+ex1\+\_\+continuous\+Mode\+CCR0.c File Reference}
\label{_m_s_p430_f5xx__6xx_2timer__b_2timer__b__ex1__continuous_mode_c_c_r0_8c}\index{Resources/Software/msp430\_driverlib\_2\_91\_13\_01/examples/MSP430F5xx\_6xx/timer\_b/timer\_b\_ex1\_continuousModeCCR0.c@{Resources/Software/msp430\_driverlib\_2\_91\_13\_01/examples/MSP430F5xx\_6xx/timer\_b/timer\_b\_ex1\_continuousModeCCR0.c}}
{\ttfamily \#include \char`\"{}driverlib.\+h\char`\"{}}\newline
\doxysubsection*{Macros}
\begin{DoxyCompactItemize}
\item
\#define \mbox{\hyperlink{_m_s_p430_f5xx__6xx_2timer__b_2timer__b__ex1__continuous_mode_c_c_r0_8c_a655c866eb3f7ee47831709b091612e63}{COMPARE\+\_\+\+VALUE}}~50000
\end{DoxyCompactItemize}
\doxysubsection*{Functions}
\begin{DoxyCompactItemize}
\item
void \mbox{\hyperlink{_m_s_p430_f5xx__6xx_2timer__b_2timer__b__ex1__continuous_mode_c_c_r0_8c_a6288eba0f8e8ad3ab1544ad731eb7667}{main}} (void)
\item
void \mbox{\hyperlink{_m_s_p430_f5xx__6xx_2timer__b_2timer__b__ex1__continuous_mode_c_c_r0_8c_a17ea7521d47a1d5aa678bc645f70737b}{TIMERB0\+\_\+\+ISR}} (void)
\end{DoxyCompactItemize}
\doxysubsection{Macro Definition Documentation}
\mbox{\Hypertarget{_m_s_p430_f5xx__6xx_2timer__b_2timer__b__ex1__continuous_mode_c_c_r0_8c_a655c866eb3f7ee47831709b091612e63}\label{_m_s_p430_f5xx__6xx_2timer__b_2timer__b__ex1__continuous_mode_c_c_r0_8c_a655c866eb3f7ee47831709b091612e63}}
\index{timer\_b\_ex1\_continuousModeCCR0.c@{timer\_b\_ex1\_continuousModeCCR0.c}!COMPARE\_VALUE@{COMPARE\_VALUE}}
\index{COMPARE\_VALUE@{COMPARE\_VALUE}!timer\_b\_ex1\_continuousModeCCR0.c@{timer\_b\_ex1\_continuousModeCCR0.c}}
\doxysubsubsection{\texorpdfstring{COMPARE\_VALUE}{COMPARE\_VALUE}}
{\footnotesize\ttfamily \#define COMPARE\+\_\+\+VALUE~50000}
Timer\+\_\+B, Toggle P1.\+0, CCR0 Cont. Mode ISR, DCO SMCLK
Description\+: Toggle P1.\+0 using software and TB\+\_\+0 ISR. Toggles every 50000 SMCLK cycles. SMCLK provides clock source for TBCLK. During the TB\+\_\+0 ISR, P1.\+0 is toggled and 50000 clock cycles are added to CCR0. TB\+\_\+0 ISR is triggered every 50000 cycles. CPU is normally off and used only during TB\+\_\+\+ISR. ACLK = n/a, MCLK = SMCLK = TBCLK = default DCO $\sim$1.045MHz\hypertarget{_m_s_p430_f5xx__6xx_2timer__b_2timer__b__ex1__continuous_mode_c_c_r0_8c_autotoc_md71}{}\doxysubsubsection{Tested On\+: MSP430\+F5529}\label{_m_s_p430_f5xx__6xx_2timer__b_2timer__b__ex1__continuous_mode_c_c_r0_8c_autotoc_md71}
\tabulinesep=1mm
\begin{longtabu}spread 0pt [c]{*{2}{|X[-1]}|}
\hline
\PBS\centering \cellcolor{\tableheadbgcolor}\textbf{ / }&\PBS\centering \cellcolor{\tableheadbgcolor}\textbf{ $|$ }\\\cline{1-2}
\endfirsthead
\hline
\endfoot
\hline
\PBS\centering \cellcolor{\tableheadbgcolor}\textbf{ / }&\PBS\centering \cellcolor{\tableheadbgcolor}\textbf{ $|$ }\\\cline{1-2}
\endhead
-- &RST \\\cline{1-2}
\end{longtabu}
$\vert$ $\vert$ $\vert$ P1.\+0$\vert$-\/-\/$>$LED
Definition at line 54 of file timer\+\_\+b\+\_\+ex1\+\_\+continuous\+Mode\+CCR0.\+c.
\doxysubsection{Function Documentation}
\mbox{\Hypertarget{_m_s_p430_f5xx__6xx_2timer__b_2timer__b__ex1__continuous_mode_c_c_r0_8c_a6288eba0f8e8ad3ab1544ad731eb7667}\label{_m_s_p430_f5xx__6xx_2timer__b_2timer__b__ex1__continuous_mode_c_c_r0_8c_a6288eba0f8e8ad3ab1544ad731eb7667}}
\index{timer\_b\_ex1\_continuousModeCCR0.c@{timer\_b\_ex1\_continuousModeCCR0.c}!main@{main}}
\index{main@{main}!timer\_b\_ex1\_continuousModeCCR0.c@{timer\_b\_ex1\_continuousModeCCR0.c}}
\doxysubsubsection{\texorpdfstring{main()}{main()}}
{\footnotesize\ttfamily void main (\begin{DoxyParamCaption}\item[{void}]{ }\end{DoxyParamCaption})}
Definition at line 56 of file timer\+\_\+b\+\_\+ex1\+\_\+continuous\+Mode\+CCR0.\+c.
References \+\_\+\+\_\+no\+\_\+operation(), and COMPARE\+\_\+\+VALUE.
\mbox{\Hypertarget{_m_s_p430_f5xx__6xx_2timer__b_2timer__b__ex1__continuous_mode_c_c_r0_8c_a17ea7521d47a1d5aa678bc645f70737b}\label{_m_s_p430_f5xx__6xx_2timer__b_2timer__b__ex1__continuous_mode_c_c_r0_8c_a17ea7521d47a1d5aa678bc645f70737b}}
\index{timer\_b\_ex1\_continuousModeCCR0.c@{timer\_b\_ex1\_continuousModeCCR0.c}!TIMERB0\_ISR@{TIMERB0\_ISR}}
\index{TIMERB0\_ISR@{TIMERB0\_ISR}!timer\_b\_ex1\_continuousModeCCR0.c@{timer\_b\_ex1\_continuousModeCCR0.c}}
\doxysubsubsection{\texorpdfstring{TIMERB0\_ISR()}{TIMERB0\_ISR()}}
{\footnotesize\ttfamily void TIMERB0\+\_\+\+ISR (\begin{DoxyParamCaption}\item[{void}]{ }\end{DoxyParamCaption})}
Definition at line 102 of file timer\+\_\+b\+\_\+ex1\+\_\+continuous\+Mode\+CCR0.\+c.
References COMPARE\+\_\+\+VALUE.

View File

@@ -0,0 +1,52 @@
\hypertarget{_m_s_p430_f5xx__6xx_2timer__b_2timer__b__ex2__overflow_i_s_r_8c}{}\doxysection{Resources/\+Software/msp430\+\_\+driverlib\+\_\+2\+\_\+91\+\_\+13\+\_\+01/examples/\+MSP430\+F5xx\+\_\+6xx/timer\+\_\+b/timer\+\_\+b\+\_\+ex2\+\_\+overflow\+ISR.c File Reference}
\label{_m_s_p430_f5xx__6xx_2timer__b_2timer__b__ex2__overflow_i_s_r_8c}\index{Resources/Software/msp430\_driverlib\_2\_91\_13\_01/examples/MSP430F5xx\_6xx/timer\_b/timer\_b\_ex2\_overflowISR.c@{Resources/Software/msp430\_driverlib\_2\_91\_13\_01/examples/MSP430F5xx\_6xx/timer\_b/timer\_b\_ex2\_overflowISR.c}}
{\ttfamily \#include \char`\"{}driverlib.\+h\char`\"{}}\newline
\doxysubsection*{Functions}
\begin{DoxyCompactItemize}
\item
void \mbox{\hyperlink{_m_s_p430_f5xx__6xx_2timer__b_2timer__b__ex2__overflow_i_s_r_8c_a6288eba0f8e8ad3ab1544ad731eb7667}{main}} (void)
\item
void \mbox{\hyperlink{_m_s_p430_f5xx__6xx_2timer__b_2timer__b__ex2__overflow_i_s_r_8c_a35a1821354c82e0b10bf23a612416f1e}{TIMERB1\+\_\+\+ISR}} (void)
\end{DoxyCompactItemize}
\doxysubsection{Function Documentation}
\mbox{\Hypertarget{_m_s_p430_f5xx__6xx_2timer__b_2timer__b__ex2__overflow_i_s_r_8c_a6288eba0f8e8ad3ab1544ad731eb7667}\label{_m_s_p430_f5xx__6xx_2timer__b_2timer__b__ex2__overflow_i_s_r_8c_a6288eba0f8e8ad3ab1544ad731eb7667}}
\index{timer\_b\_ex2\_overflowISR.c@{timer\_b\_ex2\_overflowISR.c}!main@{main}}
\index{main@{main}!timer\_b\_ex2\_overflowISR.c@{timer\_b\_ex2\_overflowISR.c}}
\doxysubsubsection{\texorpdfstring{main()}{main()}}
{\footnotesize\ttfamily void main (\begin{DoxyParamCaption}\item[{void}]{ }\end{DoxyParamCaption})}
Timer\+\_\+B, Toggle P1.\+0, Overflow ISR, 32k\+Hz ACLK
Description\+: Toggle P1.\+0 using software and the Timer\+\_\+B overflow ISR. In this example an ISR triggers when TB overflows. Inside the ISR P1.\+0 is toggled. Toggle rate is exactly 0.\+25\+Hz = \mbox{[}32k\+Hz/\+FFFFh\mbox{]}/2. Proper use of the TBIV interrupt vector generator is demonstrated. ACLK = TBCLK = 32k\+Hz, MCLK = SMCLK = default DCO $\sim$ 1.\+045\+MHz\hypertarget{_m_s_p430_f5xx__6xx_2timer__b_2timer__b__ex2__overflow_i_s_r_8c_autotoc_md72}{}\doxysubsubsection{Tested On\+: MSP430\+F5529}\label{_m_s_p430_f5xx__6xx_2timer__b_2timer__b__ex2__overflow_i_s_r_8c_autotoc_md72}
\tabulinesep=1mm
\begin{longtabu}spread 0pt [c]{*{2}{|X[-1]}|}
\hline
\PBS\centering \cellcolor{\tableheadbgcolor}\textbf{ / }&\PBS\centering \cellcolor{\tableheadbgcolor}\textbf{ $|$ }\\\cline{1-2}
\endfirsthead
\hline
\endfoot
\hline
\PBS\centering \cellcolor{\tableheadbgcolor}\textbf{ / }&\PBS\centering \cellcolor{\tableheadbgcolor}\textbf{ $|$ }\\\cline{1-2}
\endhead
-- &RST \\\cline{1-2}
\end{longtabu}
$\vert$ $\vert$ $\vert$ P1.\+0$\vert$-\/-\/$>$LED
Definition at line 51 of file timer\+\_\+b\+\_\+ex2\+\_\+overflow\+ISR.\+c.
References \+\_\+\+\_\+no\+\_\+operation(), and param.
\mbox{\Hypertarget{_m_s_p430_f5xx__6xx_2timer__b_2timer__b__ex2__overflow_i_s_r_8c_a35a1821354c82e0b10bf23a612416f1e}\label{_m_s_p430_f5xx__6xx_2timer__b_2timer__b__ex2__overflow_i_s_r_8c_a35a1821354c82e0b10bf23a612416f1e}}
\index{timer\_b\_ex2\_overflowISR.c@{timer\_b\_ex2\_overflowISR.c}!TIMERB1\_ISR@{TIMERB1\_ISR}}
\index{TIMERB1\_ISR@{TIMERB1\_ISR}!timer\_b\_ex2\_overflowISR.c@{timer\_b\_ex2\_overflowISR.c}}
\doxysubsubsection{\texorpdfstring{TIMERB1\_ISR()}{TIMERB1\_ISR()}}
{\footnotesize\ttfamily void TIMERB1\+\_\+\+ISR (\begin{DoxyParamCaption}\item[{void}]{ }\end{DoxyParamCaption})}
Definition at line 86 of file timer\+\_\+b\+\_\+ex2\+\_\+overflow\+ISR.\+c.

View File

@@ -0,0 +1,21 @@
\hypertarget{_m_s_p430_f5xx__6xx_2timer__b_2timer__b__ex3__pwm_8c}{}\doxysection{Resources/\+Software/msp430\+\_\+driverlib\+\_\+2\+\_\+91\+\_\+13\+\_\+01/examples/\+MSP430\+F5xx\+\_\+6xx/timer\+\_\+b/timer\+\_\+b\+\_\+ex3\+\_\+pwm.c File Reference}
\label{_m_s_p430_f5xx__6xx_2timer__b_2timer__b__ex3__pwm_8c}\index{Resources/Software/msp430\_driverlib\_2\_91\_13\_01/examples/MSP430F5xx\_6xx/timer\_b/timer\_b\_ex3\_pwm.c@{Resources/Software/msp430\_driverlib\_2\_91\_13\_01/examples/MSP430F5xx\_6xx/timer\_b/timer\_b\_ex3\_pwm.c}}
{\ttfamily \#include \char`\"{}driverlib.\+h\char`\"{}}\newline
\doxysubsection*{Functions}
\begin{DoxyCompactItemize}
\item
void \mbox{\hyperlink{_m_s_p430_f5xx__6xx_2timer__b_2timer__b__ex3__pwm_8c_a6288eba0f8e8ad3ab1544ad731eb7667}{main}} (void)
\end{DoxyCompactItemize}
\doxysubsection{Function Documentation}
\mbox{\Hypertarget{_m_s_p430_f5xx__6xx_2timer__b_2timer__b__ex3__pwm_8c_a6288eba0f8e8ad3ab1544ad731eb7667}\label{_m_s_p430_f5xx__6xx_2timer__b_2timer__b__ex3__pwm_8c_a6288eba0f8e8ad3ab1544ad731eb7667}}
\index{timer\_b\_ex3\_pwm.c@{timer\_b\_ex3\_pwm.c}!main@{main}}
\index{main@{main}!timer\_b\_ex3\_pwm.c@{timer\_b\_ex3\_pwm.c}}
\doxysubsubsection{\texorpdfstring{main()}{main()}}
{\footnotesize\ttfamily void main (\begin{DoxyParamCaption}\item[{void}]{ }\end{DoxyParamCaption})}
Definition at line 57 of file timer\+\_\+b\+\_\+ex3\+\_\+pwm.\+c.

View File

@@ -0,0 +1,81 @@
\hypertarget{_m_s_p430_f5xx__6xx_2timer__b_2timer__b__ex4__up_mode_operation_8c}{}\doxysection{Resources/\+Software/msp430\+\_\+driverlib\+\_\+2\+\_\+91\+\_\+13\+\_\+01/examples/\+MSP430\+F5xx\+\_\+6xx/timer\+\_\+b/timer\+\_\+b\+\_\+ex4\+\_\+up\+Mode\+Operation.c File Reference}
\label{_m_s_p430_f5xx__6xx_2timer__b_2timer__b__ex4__up_mode_operation_8c}\index{Resources/Software/msp430\_driverlib\_2\_91\_13\_01/examples/MSP430F5xx\_6xx/timer\_b/timer\_b\_ex4\_upModeOperation.c@{Resources/Software/msp430\_driverlib\_2\_91\_13\_01/examples/MSP430F5xx\_6xx/timer\_b/timer\_b\_ex4\_upModeOperation.c}}
{\ttfamily \#include \char`\"{}driverlib.\+h\char`\"{}}\newline
\doxysubsection*{Macros}
\begin{DoxyCompactItemize}
\item
\#define \mbox{\hyperlink{_m_s_p430_f5xx__6xx_2timer__b_2timer__b__ex4__up_mode_operation_8c_ad888acf7c13a4bedd6541ceb5cf9bf6d}{TIMER\+\_\+\+PERIOD}}~50000
\end{DoxyCompactItemize}
\doxysubsection*{Functions}
\begin{DoxyCompactItemize}
\item
void \mbox{\hyperlink{_m_s_p430_f5xx__6xx_2timer__b_2timer__b__ex4__up_mode_operation_8c_a6288eba0f8e8ad3ab1544ad731eb7667}{main}} (void)
\item
void \mbox{\hyperlink{_m_s_p430_f5xx__6xx_2timer__b_2timer__b__ex4__up_mode_operation_8c_a17ea7521d47a1d5aa678bc645f70737b}{TIMERB0\+\_\+\+ISR}} (void)
\end{DoxyCompactItemize}
\doxysubsection{Macro Definition Documentation}
\mbox{\Hypertarget{_m_s_p430_f5xx__6xx_2timer__b_2timer__b__ex4__up_mode_operation_8c_ad888acf7c13a4bedd6541ceb5cf9bf6d}\label{_m_s_p430_f5xx__6xx_2timer__b_2timer__b__ex4__up_mode_operation_8c_ad888acf7c13a4bedd6541ceb5cf9bf6d}}
\index{timer\_b\_ex4\_upModeOperation.c@{timer\_b\_ex4\_upModeOperation.c}!TIMER\_PERIOD@{TIMER\_PERIOD}}
\index{TIMER\_PERIOD@{TIMER\_PERIOD}!timer\_b\_ex4\_upModeOperation.c@{timer\_b\_ex4\_upModeOperation.c}}
\doxysubsubsection{\texorpdfstring{TIMER\_PERIOD}{TIMER\_PERIOD}}
{\footnotesize\ttfamily \#define TIMER\+\_\+\+PERIOD~50000}
Timer\+\_\+B, Toggle P1.\+0, CCR0 Up Mode ISR, DCO SMCLK
Description\+: Toggle P1.\+0 using software and TB\+\_\+0 ISR. Timer\+\_\+B is configured for up mode, thus the timer overflows when TBR counts to CCR0. In this example, CCR0 is loaded with 50000. ACLK = n/a, MCLK = SMCLK = TBCLK = default DCO $\sim$1.045MHz\hypertarget{_m_s_p430_f5xx__6xx_2timer__b_2timer__b__ex4__up_mode_operation_8c_autotoc_md73}{}\doxysubsubsection{Tested On\+: MSP430\+F5229}\label{_m_s_p430_f5xx__6xx_2timer__b_2timer__b__ex4__up_mode_operation_8c_autotoc_md73}
\tabulinesep=1mm
\begin{longtabu}spread 0pt [c]{*{2}{|X[-1]}|}
\hline
\PBS\centering \cellcolor{\tableheadbgcolor}\textbf{ / }&\PBS\centering \cellcolor{\tableheadbgcolor}\textbf{ $|$ }\\\cline{1-2}
\endfirsthead
\hline
\endfoot
\hline
\PBS\centering \cellcolor{\tableheadbgcolor}\textbf{ / }&\PBS\centering \cellcolor{\tableheadbgcolor}\textbf{ $|$ }\\\cline{1-2}
\endhead
-- &RST \\\cline{1-2}
\end{longtabu}
$\vert$ $\vert$ $\vert$ P1.\+0$\vert$-\/-\/$>$LED
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 Timer 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 Timer B0
\end{DoxyItemize}
Definition at line 61 of file timer\+\_\+b\+\_\+ex4\+\_\+up\+Mode\+Operation.\+c.
\doxysubsection{Function Documentation}
\mbox{\Hypertarget{_m_s_p430_f5xx__6xx_2timer__b_2timer__b__ex4__up_mode_operation_8c_a6288eba0f8e8ad3ab1544ad731eb7667}\label{_m_s_p430_f5xx__6xx_2timer__b_2timer__b__ex4__up_mode_operation_8c_a6288eba0f8e8ad3ab1544ad731eb7667}}
\index{timer\_b\_ex4\_upModeOperation.c@{timer\_b\_ex4\_upModeOperation.c}!main@{main}}
\index{main@{main}!timer\_b\_ex4\_upModeOperation.c@{timer\_b\_ex4\_upModeOperation.c}}
\doxysubsubsection{\texorpdfstring{main()}{main()}}
{\footnotesize\ttfamily void main (\begin{DoxyParamCaption}\item[{void}]{ }\end{DoxyParamCaption})}
Definition at line 63 of file timer\+\_\+b\+\_\+ex4\+\_\+up\+Mode\+Operation.\+c.
References \+\_\+\+\_\+no\+\_\+operation(), param, and TIMER\+\_\+\+PERIOD.
\mbox{\Hypertarget{_m_s_p430_f5xx__6xx_2timer__b_2timer__b__ex4__up_mode_operation_8c_a17ea7521d47a1d5aa678bc645f70737b}\label{_m_s_p430_f5xx__6xx_2timer__b_2timer__b__ex4__up_mode_operation_8c_a17ea7521d47a1d5aa678bc645f70737b}}
\index{timer\_b\_ex4\_upModeOperation.c@{timer\_b\_ex4\_upModeOperation.c}!TIMERB0\_ISR@{TIMERB0\_ISR}}
\index{TIMERB0\_ISR@{TIMERB0\_ISR}!timer\_b\_ex4\_upModeOperation.c@{timer\_b\_ex4\_upModeOperation.c}}
\doxysubsubsection{\texorpdfstring{TIMERB0\_ISR()}{TIMERB0\_ISR()}}
{\footnotesize\ttfamily void TIMERB0\+\_\+\+ISR (\begin{DoxyParamCaption}\item[{void}]{ }\end{DoxyParamCaption})}
Definition at line 106 of file timer\+\_\+b\+\_\+ex4\+\_\+up\+Mode\+Operation.\+c.

View File

@@ -0,0 +1,81 @@
\hypertarget{_m_s_p430_f5xx__6xx_2timer__b_2timer__b__ex5__single_p_w_m_8c}{}\doxysection{Resources/\+Software/msp430\+\_\+driverlib\+\_\+2\+\_\+91\+\_\+13\+\_\+01/examples/\+MSP430\+F5xx\+\_\+6xx/timer\+\_\+b/timer\+\_\+b\+\_\+ex5\+\_\+single\+PWM.c File Reference}
\label{_m_s_p430_f5xx__6xx_2timer__b_2timer__b__ex5__single_p_w_m_8c}\index{Resources/Software/msp430\_driverlib\_2\_91\_13\_01/examples/MSP430F5xx\_6xx/timer\_b/timer\_b\_ex5\_singlePWM.c@{Resources/Software/msp430\_driverlib\_2\_91\_13\_01/examples/MSP430F5xx\_6xx/timer\_b/timer\_b\_ex5\_singlePWM.c}}
{\ttfamily \#include \char`\"{}driverlib.\+h\char`\"{}}\newline
\doxysubsection*{Macros}
\begin{DoxyCompactItemize}
\item
\#define \mbox{\hyperlink{_m_s_p430_f5xx__6xx_2timer__b_2timer__b__ex5__single_p_w_m_8c_ad888acf7c13a4bedd6541ceb5cf9bf6d}{TIMER\+\_\+\+PERIOD}}~511
\item
\#define \mbox{\hyperlink{_m_s_p430_f5xx__6xx_2timer__b_2timer__b__ex5__single_p_w_m_8c_a940d0fcbbee0921e43201c554231947c}{DUTY\+\_\+\+CYCLE}}~383
\end{DoxyCompactItemize}
\doxysubsection*{Functions}
\begin{DoxyCompactItemize}
\item
void \mbox{\hyperlink{_m_s_p430_f5xx__6xx_2timer__b_2timer__b__ex5__single_p_w_m_8c_a6288eba0f8e8ad3ab1544ad731eb7667}{main}} (void)
\end{DoxyCompactItemize}
\doxysubsection{Macro Definition Documentation}
\mbox{\Hypertarget{_m_s_p430_f5xx__6xx_2timer__b_2timer__b__ex5__single_p_w_m_8c_a940d0fcbbee0921e43201c554231947c}\label{_m_s_p430_f5xx__6xx_2timer__b_2timer__b__ex5__single_p_w_m_8c_a940d0fcbbee0921e43201c554231947c}}
\index{timer\_b\_ex5\_singlePWM.c@{timer\_b\_ex5\_singlePWM.c}!DUTY\_CYCLE@{DUTY\_CYCLE}}
\index{DUTY\_CYCLE@{DUTY\_CYCLE}!timer\_b\_ex5\_singlePWM.c@{timer\_b\_ex5\_singlePWM.c}}
\doxysubsubsection{\texorpdfstring{DUTY\_CYCLE}{DUTY\_CYCLE}}
{\footnotesize\ttfamily \#define DUTY\+\_\+\+CYCLE~383}
Definition at line 64 of file timer\+\_\+b\+\_\+ex5\+\_\+single\+PWM.\+c.
\mbox{\Hypertarget{_m_s_p430_f5xx__6xx_2timer__b_2timer__b__ex5__single_p_w_m_8c_ad888acf7c13a4bedd6541ceb5cf9bf6d}\label{_m_s_p430_f5xx__6xx_2timer__b_2timer__b__ex5__single_p_w_m_8c_ad888acf7c13a4bedd6541ceb5cf9bf6d}}
\index{timer\_b\_ex5\_singlePWM.c@{timer\_b\_ex5\_singlePWM.c}!TIMER\_PERIOD@{TIMER\_PERIOD}}
\index{TIMER\_PERIOD@{TIMER\_PERIOD}!timer\_b\_ex5\_singlePWM.c@{timer\_b\_ex5\_singlePWM.c}}
\doxysubsubsection{\texorpdfstring{TIMER\_PERIOD}{TIMER\_PERIOD}}
{\footnotesize\ttfamily \#define TIMER\+\_\+\+PERIOD~511}
Timer\+\_\+B, PWM TB0.\+1, Up Mode, DCO SMCLK
Description\+: This program generates PWM outputs on P5.\+7 using Timer\+\_\+B configured for up mode. The value , TIMER\+\_\+\+PERIOD, defines the PWM period and the value DUTY\+\_\+\+CYCLE the PWM duty cycle. Using $\sim$1.045MHz SMCLK as TBCLK, the timer period is $\sim$500us with a 75\% duty cycle on P5.\+7 ACLK = n/a, SMCLK = MCLK = TBCLK = default DCO $\sim$1.045MHz.\hypertarget{_m_s_p430_f5xx__6xx_2timer__b_2timer__b__ex5__single_p_w_m_8c_autotoc_md74}{}\doxysubsubsection{Tested On\+: MSP430\+F5529}\label{_m_s_p430_f5xx__6xx_2timer__b_2timer__b__ex5__single_p_w_m_8c_autotoc_md74}
\tabulinesep=1mm
\begin{longtabu}spread 0pt [c]{*{2}{|X[-1]}|}
\hline
\PBS\centering \cellcolor{\tableheadbgcolor}\textbf{ / }&\PBS\centering \cellcolor{\tableheadbgcolor}\textbf{ $|$ }\\\cline{1-2}
\endfirsthead
\hline
\endfoot
\hline
\PBS\centering \cellcolor{\tableheadbgcolor}\textbf{ / }&\PBS\centering \cellcolor{\tableheadbgcolor}\textbf{ $|$ }\\\cline{1-2}
\endhead
-- &RST \\\cline{1-2}
\end{longtabu}
$\vert$ $\vert$ $\vert$ P5.\+7/\+TB0.1$\vert$-\/-\/$>$ CCR1 -\/ 75\% PWM $\vert$ $\vert$
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 Timer 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 NONE
\end{DoxyItemize}
Definition at line 63 of file timer\+\_\+b\+\_\+ex5\+\_\+single\+PWM.\+c.
\doxysubsection{Function Documentation}
\mbox{\Hypertarget{_m_s_p430_f5xx__6xx_2timer__b_2timer__b__ex5__single_p_w_m_8c_a6288eba0f8e8ad3ab1544ad731eb7667}\label{_m_s_p430_f5xx__6xx_2timer__b_2timer__b__ex5__single_p_w_m_8c_a6288eba0f8e8ad3ab1544ad731eb7667}}
\index{timer\_b\_ex5\_singlePWM.c@{timer\_b\_ex5\_singlePWM.c}!main@{main}}
\index{main@{main}!timer\_b\_ex5\_singlePWM.c@{timer\_b\_ex5\_singlePWM.c}}
\doxysubsubsection{\texorpdfstring{main()}{main()}}
{\footnotesize\ttfamily void main (\begin{DoxyParamCaption}\item[{void}]{ }\end{DoxyParamCaption})}
Definition at line 66 of file timer\+\_\+b\+\_\+ex5\+\_\+single\+PWM.\+c.
References \+\_\+\+\_\+no\+\_\+operation(), DUTY\+\_\+\+CYCLE, param, and TIMER\+\_\+\+PERIOD.

View File

@@ -0,0 +1,36 @@
\hypertarget{_m_s_p430_f5xx__6xx_2tlv_2tlv__ex1__get_device_type_8c}{}\doxysection{Resources/\+Software/msp430\+\_\+driverlib\+\_\+2\+\_\+91\+\_\+13\+\_\+01/examples/\+MSP430\+F5xx\+\_\+6xx/tlv/tlv\+\_\+ex1\+\_\+get\+Device\+Type.c File Reference}
\label{_m_s_p430_f5xx__6xx_2tlv_2tlv__ex1__get_device_type_8c}\index{Resources/Software/msp430\_driverlib\_2\_91\_13\_01/examples/MSP430F5xx\_6xx/tlv/tlv\_ex1\_getDeviceType.c@{Resources/Software/msp430\_driverlib\_2\_91\_13\_01/examples/MSP430F5xx\_6xx/tlv/tlv\_ex1\_getDeviceType.c}}
{\ttfamily \#include \char`\"{}driverlib.\+h\char`\"{}}\newline
\doxysubsection*{Functions}
\begin{DoxyCompactItemize}
\item
void \mbox{\hyperlink{_m_s_p430_f5xx__6xx_2tlv_2tlv__ex1__get_device_type_8c_acdef7a1fd863a6d3770c1268cb06add3}{main}} ()
\end{DoxyCompactItemize}
\doxysubsection{Function Documentation}
\mbox{\Hypertarget{_m_s_p430_f5xx__6xx_2tlv_2tlv__ex1__get_device_type_8c_acdef7a1fd863a6d3770c1268cb06add3}\label{_m_s_p430_f5xx__6xx_2tlv_2tlv__ex1__get_device_type_8c_acdef7a1fd863a6d3770c1268cb06add3}}
\index{tlv\_ex1\_getDeviceType.c@{tlv\_ex1\_getDeviceType.c}!main@{main}}
\index{main@{main}!tlv\_ex1\_getDeviceType.c@{tlv\_ex1\_getDeviceType.c}}
\doxysubsubsection{\texorpdfstring{main()}{main()}}
{\footnotesize\ttfamily void main (\begin{DoxyParamCaption}\item[{void}]{ }\end{DoxyParamCaption})}
tlv -\/ get\+Device\+Type\hypertarget{_m_s_p430_f5xx__6xx_2tlv_2tlv__ex1__get_device_type_8c_autotoc_md75}{}\doxysubsubsection{Tested on MSP430\+F5438\+A, MSP430\+FR5739}\label{_m_s_p430_f5xx__6xx_2tlv_2tlv__ex1__get_device_type_8c_autotoc_md75}
/$\vert$$|$ $\vert$ $\vert$ $\vert$ $\vert$ --$\vert$ $\vert$ Device Type $\vert$ $\vert$ $\vert$ $\vert$
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 WDT\+\_\+A
\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 NONE
\end{DoxyItemize}
Definition at line 58 of file tlv\+\_\+ex1\+\_\+get\+Device\+Type.\+c.
References status.

View File

@@ -0,0 +1,584 @@
\hypertarget{_m_s_p430_f5xx__6xx_2tlv_2tlv__ex2__read_t_l_v_descriptors_8c}{}\doxysection{Resources/\+Software/msp430\+\_\+driverlib\+\_\+2\+\_\+91\+\_\+13\+\_\+01/examples/\+MSP430\+F5xx\+\_\+6xx/tlv/tlv\+\_\+ex2\+\_\+read\+TLVDescriptors.c File Reference}
\label{_m_s_p430_f5xx__6xx_2tlv_2tlv__ex2__read_t_l_v_descriptors_8c}\index{Resources/Software/msp430\_driverlib\_2\_91\_13\_01/examples/MSP430F5xx\_6xx/tlv/tlv\_ex2\_readTLVDescriptors.c@{Resources/Software/msp430\_driverlib\_2\_91\_13\_01/examples/MSP430F5xx\_6xx/tlv/tlv\_ex2\_readTLVDescriptors.c}}
{\ttfamily \#include \char`\"{}driverlib.\+h\char`\"{}}\newline
\doxysubsection*{Functions}
\begin{DoxyCompactItemize}
\item
void \mbox{\hyperlink{_m_s_p430_f5xx__6xx_2tlv_2tlv__ex2__read_t_l_v_descriptors_8c_a277b8de8228358f448f822ff06c1081d}{read\+Die\+Record}} (void)
\item
void \mbox{\hyperlink{_m_s_p430_f5xx__6xx_2tlv_2tlv__ex2__read_t_l_v_descriptors_8c_a49ec1ea965f4f96de6db5c4154349057}{read\+ADCCAL}} (void)
\item
void \mbox{\hyperlink{_m_s_p430_f5xx__6xx_2tlv_2tlv__ex2__read_t_l_v_descriptors_8c_a96df953f49934af6a5627ce43a954ed0}{read\+REFCAL}} (void)
\item
void \mbox{\hyperlink{_m_s_p430_f5xx__6xx_2tlv_2tlv__ex2__read_t_l_v_descriptors_8c_ac133c16cc912dc9f57b8914d00bc0d40}{read\+Peripheral}} (void)
\item
void \mbox{\hyperlink{_m_s_p430_f5xx__6xx_2tlv_2tlv__ex2__read_t_l_v_descriptors_8c_a6288eba0f8e8ad3ab1544ad731eb7667}{main}} (void)
\end{DoxyCompactItemize}
\doxysubsection*{Variables}
\begin{DoxyCompactItemize}
\item
struct s\+\_\+\+TLV\+\_\+\+Die\+\_\+\+Record $\ast$ \mbox{\hyperlink{_m_s_p430_f5xx__6xx_2tlv_2tlv__ex2__read_t_l_v_descriptors_8c_a90053704e55062d84fb0c5334e03c6f9}{p\+DIEREC}}
\item
uint8\+\_\+t \mbox{\hyperlink{_m_s_p430_f5xx__6xx_2tlv_2tlv__ex2__read_t_l_v_descriptors_8c_ad86e261749772b629d805d20a771946e}{b\+Die\+Record\+\_\+bytes}}
\item
uint16\+\_\+t \mbox{\hyperlink{_m_s_p430_f5xx__6xx_2tlv_2tlv__ex2__read_t_l_v_descriptors_8c_a36142ddde297ed1d5577c81230997301}{temp}}
\item
uint32\+\_\+t \mbox{\hyperlink{_m_s_p430_f5xx__6xx_2tlv_2tlv__ex2__read_t_l_v_descriptors_8c_ac60a79f85dcf288b613ac10382fc2c74}{Wafer\+ID}}
\item
uint16\+\_\+t \mbox{\hyperlink{_m_s_p430_f5xx__6xx_2tlv_2tlv__ex2__read_t_l_v_descriptors_8c_a38c050191d2a20c9e471012609dc5fd6}{DieX}}
\item
uint16\+\_\+t \mbox{\hyperlink{_m_s_p430_f5xx__6xx_2tlv_2tlv__ex2__read_t_l_v_descriptors_8c_af5d5fbe727514605b6b339ee5336642b}{DieY}}
\item
uint16\+\_\+t \mbox{\hyperlink{_m_s_p430_f5xx__6xx_2tlv_2tlv__ex2__read_t_l_v_descriptors_8c_a8cff184e50949393c92c035bcf85b461}{Test\+Res}}
\item
struct s\+\_\+\+TLV\+\_\+\+ADC\+\_\+\+Cal\+\_\+\+Data $\ast$ \mbox{\hyperlink{_m_s_p430_f5xx__6xx_2tlv_2tlv__ex2__read_t_l_v_descriptors_8c_ad13c61e61e372f4c0a9d101695015fd1}{p\+ADCCAL}}
\item
uint8\+\_\+t \mbox{\hyperlink{_m_s_p430_f5xx__6xx_2tlv_2tlv__ex2__read_t_l_v_descriptors_8c_a7aa9b3eed291511084e0e5393a688b12}{b\+ADCCAL\+\_\+bytes}}
\item
uint16\+\_\+t \mbox{\hyperlink{_m_s_p430_f5xx__6xx_2tlv_2tlv__ex2__read_t_l_v_descriptors_8c_a8dbe076fac2ca320f671e90da4fb4fd9}{ADCGain}}
\item
uint16\+\_\+t \mbox{\hyperlink{_m_s_p430_f5xx__6xx_2tlv_2tlv__ex2__read_t_l_v_descriptors_8c_aa7cc130e903b7f8e1953466ff0290659}{ADCOffset}}
\item
uint16\+\_\+t \mbox{\hyperlink{_m_s_p430_f5xx__6xx_2tlv_2tlv__ex2__read_t_l_v_descriptors_8c_ad6496c498893826b78ccb83d98b6cf5a}{ADC\+\_\+15\+V\+\_\+\+Ref\+\_\+30C}}
\item
uint16\+\_\+t \mbox{\hyperlink{_m_s_p430_f5xx__6xx_2tlv_2tlv__ex2__read_t_l_v_descriptors_8c_ab492e99cef6a159e96936b87160b2ed5}{ADC\+\_\+15\+V\+\_\+\+Ref\+\_\+85C}}
\item
uint16\+\_\+t \mbox{\hyperlink{_m_s_p430_f5xx__6xx_2tlv_2tlv__ex2__read_t_l_v_descriptors_8c_a35805d0f0c3ff649e674e6f8735f4697}{ADC\+\_\+20\+V\+\_\+\+Ref\+\_\+30C}}
\item
uint16\+\_\+t \mbox{\hyperlink{_m_s_p430_f5xx__6xx_2tlv_2tlv__ex2__read_t_l_v_descriptors_8c_a1b719fcb0e6399dac4fd90fdfb5a99d5}{ADC\+\_\+20\+V\+\_\+\+Ref\+\_\+85C}}
\item
uint16\+\_\+t \mbox{\hyperlink{_m_s_p430_f5xx__6xx_2tlv_2tlv__ex2__read_t_l_v_descriptors_8c_a56e6d1447dc2ca65a389b9781e0f1103}{ADC\+\_\+25\+V\+\_\+\+Ref\+\_\+30C}}
\item
uint16\+\_\+t \mbox{\hyperlink{_m_s_p430_f5xx__6xx_2tlv_2tlv__ex2__read_t_l_v_descriptors_8c_ac8f3f1a9ad8c8814e5393227dd70e17b}{ADC\+\_\+25\+V\+\_\+\+Ref\+\_\+85C}}
\item
struct s\+\_\+\+TLV\+\_\+\+REF\+\_\+\+Cal\+\_\+\+Data $\ast$ \mbox{\hyperlink{_m_s_p430_f5xx__6xx_2tlv_2tlv__ex2__read_t_l_v_descriptors_8c_af0c72d4f2c2746c13c1a15805727ed8a}{p\+REFCAL}}
\item
uint8\+\_\+t \mbox{\hyperlink{_m_s_p430_f5xx__6xx_2tlv_2tlv__ex2__read_t_l_v_descriptors_8c_ab7240ddb5ea92d5135e32c5050de2ff1}{b\+REFCAL\+\_\+bytes}}
\item
uint16\+\_\+t \mbox{\hyperlink{_m_s_p430_f5xx__6xx_2tlv_2tlv__ex2__read_t_l_v_descriptors_8c_af27f0fffd135427c637272fa6e3e79ed}{REF\+\_\+15V}}
\item
uint16\+\_\+t \mbox{\hyperlink{_m_s_p430_f5xx__6xx_2tlv_2tlv__ex2__read_t_l_v_descriptors_8c_a99a2e86d37a080aae2c408cdfe784670}{REF\+\_\+20V}}
\item
uint16\+\_\+t \mbox{\hyperlink{_m_s_p430_f5xx__6xx_2tlv_2tlv__ex2__read_t_l_v_descriptors_8c_a89ad7c6cc666021cd62cb5cfc2d35fab}{REF\+\_\+25V}}
\item
struct s\+\_\+\+Peripheral\+\_\+\+Memory\+\_\+\+Data $\ast$ \mbox{\hyperlink{_m_s_p430_f5xx__6xx_2tlv_2tlv__ex2__read_t_l_v_descriptors_8c_a9622441232ea724691fda7a569a558bc}{p\+Periph}}
\item
uint8\+\_\+t \mbox{\hyperlink{_m_s_p430_f5xx__6xx_2tlv_2tlv__ex2__read_t_l_v_descriptors_8c_a3330341d33215c552991fd47572e9cab}{b\+Periph\+\_\+bytes}}
\item
uint16\+\_\+t \mbox{\hyperlink{_m_s_p430_f5xx__6xx_2tlv_2tlv__ex2__read_t_l_v_descriptors_8c_a9a7d13cffdc7ca481310247ecbc8503d}{Memory\+\_\+1}}
\item
uint16\+\_\+t \mbox{\hyperlink{_m_s_p430_f5xx__6xx_2tlv_2tlv__ex2__read_t_l_v_descriptors_8c_a6cbc2699c151d4b1e17f74e1b640af3f}{Memory\+\_\+2}}
\item
uint16\+\_\+t \mbox{\hyperlink{_m_s_p430_f5xx__6xx_2tlv_2tlv__ex2__read_t_l_v_descriptors_8c_a9cec42edb0853f07e8ae719f4c688a21}{Memory\+\_\+3}}
\item
uint16\+\_\+t \mbox{\hyperlink{_m_s_p430_f5xx__6xx_2tlv_2tlv__ex2__read_t_l_v_descriptors_8c_aadba76baaf79f2caffba458fc1a218a5}{Memory\+\_\+4}}
\item
uint16\+\_\+t \mbox{\hyperlink{_m_s_p430_f5xx__6xx_2tlv_2tlv__ex2__read_t_l_v_descriptors_8c_aa3041214d28fd9b144fa40fd9d2ebd38}{PMM\+\_\+\+Exist}}
\end{DoxyCompactItemize}
\doxysubsection{Function Documentation}
\mbox{\Hypertarget{_m_s_p430_f5xx__6xx_2tlv_2tlv__ex2__read_t_l_v_descriptors_8c_a6288eba0f8e8ad3ab1544ad731eb7667}\label{_m_s_p430_f5xx__6xx_2tlv_2tlv__ex2__read_t_l_v_descriptors_8c_a6288eba0f8e8ad3ab1544ad731eb7667}}
\index{tlv\_ex2\_readTLVDescriptors.c@{tlv\_ex2\_readTLVDescriptors.c}!main@{main}}
\index{main@{main}!tlv\_ex2\_readTLVDescriptors.c@{tlv\_ex2\_readTLVDescriptors.c}}
\doxysubsubsection{\texorpdfstring{main()}{main()}}
{\footnotesize\ttfamily void main (\begin{DoxyParamCaption}\item[{void}]{ }\end{DoxyParamCaption})}
Definition at line 90 of file tlv\+\_\+ex2\+\_\+read\+TLVDescriptors.\+c.
References read\+ADCCAL(), read\+Die\+Record(), read\+Peripheral(), and read\+REFCAL().
\mbox{\Hypertarget{_m_s_p430_f5xx__6xx_2tlv_2tlv__ex2__read_t_l_v_descriptors_8c_a49ec1ea965f4f96de6db5c4154349057}\label{_m_s_p430_f5xx__6xx_2tlv_2tlv__ex2__read_t_l_v_descriptors_8c_a49ec1ea965f4f96de6db5c4154349057}}
\index{tlv\_ex2\_readTLVDescriptors.c@{tlv\_ex2\_readTLVDescriptors.c}!readADCCAL@{readADCCAL}}
\index{readADCCAL@{readADCCAL}!tlv\_ex2\_readTLVDescriptors.c@{tlv\_ex2\_readTLVDescriptors.c}}
\doxysubsubsection{\texorpdfstring{readADCCAL()}{readADCCAL()}}
{\footnotesize\ttfamily void read\+ADCCAL (\begin{DoxyParamCaption}\item[{void}]{ }\end{DoxyParamCaption})}
Definition at line 135 of file tlv\+\_\+ex2\+\_\+read\+TLVDescriptors.\+c.
References ADC\+\_\+15\+V\+\_\+\+Ref\+\_\+30C, ADC\+\_\+15\+V\+\_\+\+Ref\+\_\+85C, ADC\+\_\+20\+V\+\_\+\+Ref\+\_\+30C, ADC\+\_\+20\+V\+\_\+\+Ref\+\_\+85C, ADC\+\_\+25\+V\+\_\+\+Ref\+\_\+30C, ADC\+\_\+25\+V\+\_\+\+Ref\+\_\+85C, ADCGain, ADCOffset, b\+ADCCAL\+\_\+bytes, and p\+ADCCAL.
Referenced by main().
\mbox{\Hypertarget{_m_s_p430_f5xx__6xx_2tlv_2tlv__ex2__read_t_l_v_descriptors_8c_a277b8de8228358f448f822ff06c1081d}\label{_m_s_p430_f5xx__6xx_2tlv_2tlv__ex2__read_t_l_v_descriptors_8c_a277b8de8228358f448f822ff06c1081d}}
\index{tlv\_ex2\_readTLVDescriptors.c@{tlv\_ex2\_readTLVDescriptors.c}!readDieRecord@{readDieRecord}}
\index{readDieRecord@{readDieRecord}!tlv\_ex2\_readTLVDescriptors.c@{tlv\_ex2\_readTLVDescriptors.c}}
\doxysubsubsection{\texorpdfstring{readDieRecord()}{readDieRecord()}}
{\footnotesize\ttfamily void read\+Die\+Record (\begin{DoxyParamCaption}\item[{void}]{ }\end{DoxyParamCaption})}
Definition at line 112 of file tlv\+\_\+ex2\+\_\+read\+TLVDescriptors.\+c.
References b\+Die\+Record\+\_\+bytes, DieX, DieY, p\+DIEREC, Test\+Res, and Wafer\+ID.
Referenced by main().
\mbox{\Hypertarget{_m_s_p430_f5xx__6xx_2tlv_2tlv__ex2__read_t_l_v_descriptors_8c_ac133c16cc912dc9f57b8914d00bc0d40}\label{_m_s_p430_f5xx__6xx_2tlv_2tlv__ex2__read_t_l_v_descriptors_8c_ac133c16cc912dc9f57b8914d00bc0d40}}
\index{tlv\_ex2\_readTLVDescriptors.c@{tlv\_ex2\_readTLVDescriptors.c}!readPeripheral@{readPeripheral}}
\index{readPeripheral@{readPeripheral}!tlv\_ex2\_readTLVDescriptors.c@{tlv\_ex2\_readTLVDescriptors.c}}
\doxysubsubsection{\texorpdfstring{readPeripheral()}{readPeripheral()}}
{\footnotesize\ttfamily void read\+Peripheral (\begin{DoxyParamCaption}\item[{void}]{ }\end{DoxyParamCaption})}
Definition at line 193 of file tlv\+\_\+ex2\+\_\+read\+TLVDescriptors.\+c.
References b\+Periph\+\_\+bytes, Memory\+\_\+1, Memory\+\_\+2, Memory\+\_\+3, Memory\+\_\+4, PMM\+\_\+\+Exist, and p\+Periph.
Referenced by main().
\mbox{\Hypertarget{_m_s_p430_f5xx__6xx_2tlv_2tlv__ex2__read_t_l_v_descriptors_8c_a96df953f49934af6a5627ce43a954ed0}\label{_m_s_p430_f5xx__6xx_2tlv_2tlv__ex2__read_t_l_v_descriptors_8c_a96df953f49934af6a5627ce43a954ed0}}
\index{tlv\_ex2\_readTLVDescriptors.c@{tlv\_ex2\_readTLVDescriptors.c}!readREFCAL@{readREFCAL}}
\index{readREFCAL@{readREFCAL}!tlv\_ex2\_readTLVDescriptors.c@{tlv\_ex2\_readTLVDescriptors.c}}
\doxysubsubsection{\texorpdfstring{readREFCAL()}{readREFCAL()}}
{\footnotesize\ttfamily void read\+REFCAL (\begin{DoxyParamCaption}\item[{void}]{ }\end{DoxyParamCaption})}
Definition at line 162 of file tlv\+\_\+ex2\+\_\+read\+TLVDescriptors.\+c.
References b\+REFCAL\+\_\+bytes, p\+REFCAL, REF\+\_\+15V, REF\+\_\+20V, and REF\+\_\+25V.
Referenced by main().
\doxysubsection{Variable Documentation}
\mbox{\Hypertarget{_m_s_p430_f5xx__6xx_2tlv_2tlv__ex2__read_t_l_v_descriptors_8c_ad6496c498893826b78ccb83d98b6cf5a}\label{_m_s_p430_f5xx__6xx_2tlv_2tlv__ex2__read_t_l_v_descriptors_8c_ad6496c498893826b78ccb83d98b6cf5a}}
\index{tlv\_ex2\_readTLVDescriptors.c@{tlv\_ex2\_readTLVDescriptors.c}!ADC\_15V\_Ref\_30C@{ADC\_15V\_Ref\_30C}}
\index{ADC\_15V\_Ref\_30C@{ADC\_15V\_Ref\_30C}!tlv\_ex2\_readTLVDescriptors.c@{tlv\_ex2\_readTLVDescriptors.c}}
\doxysubsubsection{\texorpdfstring{ADC\_15V\_Ref\_30C}{ADC\_15V\_Ref\_30C}}
{\footnotesize\ttfamily uint16\+\_\+t ADC\+\_\+15\+V\+\_\+\+Ref\+\_\+30C}
Definition at line 71 of file tlv\+\_\+ex2\+\_\+read\+TLVDescriptors.\+c.
Referenced by read\+ADCCAL().
\mbox{\Hypertarget{_m_s_p430_f5xx__6xx_2tlv_2tlv__ex2__read_t_l_v_descriptors_8c_ab492e99cef6a159e96936b87160b2ed5}\label{_m_s_p430_f5xx__6xx_2tlv_2tlv__ex2__read_t_l_v_descriptors_8c_ab492e99cef6a159e96936b87160b2ed5}}
\index{tlv\_ex2\_readTLVDescriptors.c@{tlv\_ex2\_readTLVDescriptors.c}!ADC\_15V\_Ref\_85C@{ADC\_15V\_Ref\_85C}}
\index{ADC\_15V\_Ref\_85C@{ADC\_15V\_Ref\_85C}!tlv\_ex2\_readTLVDescriptors.c@{tlv\_ex2\_readTLVDescriptors.c}}
\doxysubsubsection{\texorpdfstring{ADC\_15V\_Ref\_85C}{ADC\_15V\_Ref\_85C}}
{\footnotesize\ttfamily uint16\+\_\+t ADC\+\_\+15\+V\+\_\+\+Ref\+\_\+85C}
Definition at line 71 of file tlv\+\_\+ex2\+\_\+read\+TLVDescriptors.\+c.
Referenced by read\+ADCCAL().
\mbox{\Hypertarget{_m_s_p430_f5xx__6xx_2tlv_2tlv__ex2__read_t_l_v_descriptors_8c_a35805d0f0c3ff649e674e6f8735f4697}\label{_m_s_p430_f5xx__6xx_2tlv_2tlv__ex2__read_t_l_v_descriptors_8c_a35805d0f0c3ff649e674e6f8735f4697}}
\index{tlv\_ex2\_readTLVDescriptors.c@{tlv\_ex2\_readTLVDescriptors.c}!ADC\_20V\_Ref\_30C@{ADC\_20V\_Ref\_30C}}
\index{ADC\_20V\_Ref\_30C@{ADC\_20V\_Ref\_30C}!tlv\_ex2\_readTLVDescriptors.c@{tlv\_ex2\_readTLVDescriptors.c}}
\doxysubsubsection{\texorpdfstring{ADC\_20V\_Ref\_30C}{ADC\_20V\_Ref\_30C}}
{\footnotesize\ttfamily uint16\+\_\+t ADC\+\_\+20\+V\+\_\+\+Ref\+\_\+30C}
Definition at line 71 of file tlv\+\_\+ex2\+\_\+read\+TLVDescriptors.\+c.
Referenced by read\+ADCCAL().
\mbox{\Hypertarget{_m_s_p430_f5xx__6xx_2tlv_2tlv__ex2__read_t_l_v_descriptors_8c_a1b719fcb0e6399dac4fd90fdfb5a99d5}\label{_m_s_p430_f5xx__6xx_2tlv_2tlv__ex2__read_t_l_v_descriptors_8c_a1b719fcb0e6399dac4fd90fdfb5a99d5}}
\index{tlv\_ex2\_readTLVDescriptors.c@{tlv\_ex2\_readTLVDescriptors.c}!ADC\_20V\_Ref\_85C@{ADC\_20V\_Ref\_85C}}
\index{ADC\_20V\_Ref\_85C@{ADC\_20V\_Ref\_85C}!tlv\_ex2\_readTLVDescriptors.c@{tlv\_ex2\_readTLVDescriptors.c}}
\doxysubsubsection{\texorpdfstring{ADC\_20V\_Ref\_85C}{ADC\_20V\_Ref\_85C}}
{\footnotesize\ttfamily uint16\+\_\+t ADC\+\_\+20\+V\+\_\+\+Ref\+\_\+85C}
Definition at line 72 of file tlv\+\_\+ex2\+\_\+read\+TLVDescriptors.\+c.
Referenced by read\+ADCCAL().
\mbox{\Hypertarget{_m_s_p430_f5xx__6xx_2tlv_2tlv__ex2__read_t_l_v_descriptors_8c_a56e6d1447dc2ca65a389b9781e0f1103}\label{_m_s_p430_f5xx__6xx_2tlv_2tlv__ex2__read_t_l_v_descriptors_8c_a56e6d1447dc2ca65a389b9781e0f1103}}
\index{tlv\_ex2\_readTLVDescriptors.c@{tlv\_ex2\_readTLVDescriptors.c}!ADC\_25V\_Ref\_30C@{ADC\_25V\_Ref\_30C}}
\index{ADC\_25V\_Ref\_30C@{ADC\_25V\_Ref\_30C}!tlv\_ex2\_readTLVDescriptors.c@{tlv\_ex2\_readTLVDescriptors.c}}
\doxysubsubsection{\texorpdfstring{ADC\_25V\_Ref\_30C}{ADC\_25V\_Ref\_30C}}
{\footnotesize\ttfamily uint16\+\_\+t ADC\+\_\+25\+V\+\_\+\+Ref\+\_\+30C}
Definition at line 72 of file tlv\+\_\+ex2\+\_\+read\+TLVDescriptors.\+c.
Referenced by read\+ADCCAL().
\mbox{\Hypertarget{_m_s_p430_f5xx__6xx_2tlv_2tlv__ex2__read_t_l_v_descriptors_8c_ac8f3f1a9ad8c8814e5393227dd70e17b}\label{_m_s_p430_f5xx__6xx_2tlv_2tlv__ex2__read_t_l_v_descriptors_8c_ac8f3f1a9ad8c8814e5393227dd70e17b}}
\index{tlv\_ex2\_readTLVDescriptors.c@{tlv\_ex2\_readTLVDescriptors.c}!ADC\_25V\_Ref\_85C@{ADC\_25V\_Ref\_85C}}
\index{ADC\_25V\_Ref\_85C@{ADC\_25V\_Ref\_85C}!tlv\_ex2\_readTLVDescriptors.c@{tlv\_ex2\_readTLVDescriptors.c}}
\doxysubsubsection{\texorpdfstring{ADC\_25V\_Ref\_85C}{ADC\_25V\_Ref\_85C}}
{\footnotesize\ttfamily uint16\+\_\+t ADC\+\_\+25\+V\+\_\+\+Ref\+\_\+85C}
Definition at line 72 of file tlv\+\_\+ex2\+\_\+read\+TLVDescriptors.\+c.
Referenced by read\+ADCCAL().
\mbox{\Hypertarget{_m_s_p430_f5xx__6xx_2tlv_2tlv__ex2__read_t_l_v_descriptors_8c_a8dbe076fac2ca320f671e90da4fb4fd9}\label{_m_s_p430_f5xx__6xx_2tlv_2tlv__ex2__read_t_l_v_descriptors_8c_a8dbe076fac2ca320f671e90da4fb4fd9}}
\index{tlv\_ex2\_readTLVDescriptors.c@{tlv\_ex2\_readTLVDescriptors.c}!ADCGain@{ADCGain}}
\index{ADCGain@{ADCGain}!tlv\_ex2\_readTLVDescriptors.c@{tlv\_ex2\_readTLVDescriptors.c}}
\doxysubsubsection{\texorpdfstring{ADCGain}{ADCGain}}
{\footnotesize\ttfamily uint16\+\_\+t ADCGain}
Definition at line 70 of file tlv\+\_\+ex2\+\_\+read\+TLVDescriptors.\+c.
Referenced by read\+ADCCAL().
\mbox{\Hypertarget{_m_s_p430_f5xx__6xx_2tlv_2tlv__ex2__read_t_l_v_descriptors_8c_aa7cc130e903b7f8e1953466ff0290659}\label{_m_s_p430_f5xx__6xx_2tlv_2tlv__ex2__read_t_l_v_descriptors_8c_aa7cc130e903b7f8e1953466ff0290659}}
\index{tlv\_ex2\_readTLVDescriptors.c@{tlv\_ex2\_readTLVDescriptors.c}!ADCOffset@{ADCOffset}}
\index{ADCOffset@{ADCOffset}!tlv\_ex2\_readTLVDescriptors.c@{tlv\_ex2\_readTLVDescriptors.c}}
\doxysubsubsection{\texorpdfstring{ADCOffset}{ADCOffset}}
{\footnotesize\ttfamily uint16\+\_\+t ADCOffset}
Definition at line 70 of file tlv\+\_\+ex2\+\_\+read\+TLVDescriptors.\+c.
Referenced by read\+ADCCAL().
\mbox{\Hypertarget{_m_s_p430_f5xx__6xx_2tlv_2tlv__ex2__read_t_l_v_descriptors_8c_a7aa9b3eed291511084e0e5393a688b12}\label{_m_s_p430_f5xx__6xx_2tlv_2tlv__ex2__read_t_l_v_descriptors_8c_a7aa9b3eed291511084e0e5393a688b12}}
\index{tlv\_ex2\_readTLVDescriptors.c@{tlv\_ex2\_readTLVDescriptors.c}!bADCCAL\_bytes@{bADCCAL\_bytes}}
\index{bADCCAL\_bytes@{bADCCAL\_bytes}!tlv\_ex2\_readTLVDescriptors.c@{tlv\_ex2\_readTLVDescriptors.c}}
\doxysubsubsection{\texorpdfstring{bADCCAL\_bytes}{bADCCAL\_bytes}}
{\footnotesize\ttfamily uint8\+\_\+t b\+ADCCAL\+\_\+bytes}
Definition at line 69 of file tlv\+\_\+ex2\+\_\+read\+TLVDescriptors.\+c.
Referenced by read\+ADCCAL().
\mbox{\Hypertarget{_m_s_p430_f5xx__6xx_2tlv_2tlv__ex2__read_t_l_v_descriptors_8c_ad86e261749772b629d805d20a771946e}\label{_m_s_p430_f5xx__6xx_2tlv_2tlv__ex2__read_t_l_v_descriptors_8c_ad86e261749772b629d805d20a771946e}}
\index{tlv\_ex2\_readTLVDescriptors.c@{tlv\_ex2\_readTLVDescriptors.c}!bDieRecord\_bytes@{bDieRecord\_bytes}}
\index{bDieRecord\_bytes@{bDieRecord\_bytes}!tlv\_ex2\_readTLVDescriptors.c@{tlv\_ex2\_readTLVDescriptors.c}}
\doxysubsubsection{\texorpdfstring{bDieRecord\_bytes}{bDieRecord\_bytes}}
{\footnotesize\ttfamily uint8\+\_\+t b\+Die\+Record\+\_\+bytes}
Definition at line 62 of file tlv\+\_\+ex2\+\_\+read\+TLVDescriptors.\+c.
Referenced by read\+Die\+Record().
\mbox{\Hypertarget{_m_s_p430_f5xx__6xx_2tlv_2tlv__ex2__read_t_l_v_descriptors_8c_a3330341d33215c552991fd47572e9cab}\label{_m_s_p430_f5xx__6xx_2tlv_2tlv__ex2__read_t_l_v_descriptors_8c_a3330341d33215c552991fd47572e9cab}}
\index{tlv\_ex2\_readTLVDescriptors.c@{tlv\_ex2\_readTLVDescriptors.c}!bPeriph\_bytes@{bPeriph\_bytes}}
\index{bPeriph\_bytes@{bPeriph\_bytes}!tlv\_ex2\_readTLVDescriptors.c@{tlv\_ex2\_readTLVDescriptors.c}}
\doxysubsubsection{\texorpdfstring{bPeriph\_bytes}{bPeriph\_bytes}}
{\footnotesize\ttfamily uint8\+\_\+t b\+Periph\+\_\+bytes}
Definition at line 81 of file tlv\+\_\+ex2\+\_\+read\+TLVDescriptors.\+c.
Referenced by read\+Peripheral().
\mbox{\Hypertarget{_m_s_p430_f5xx__6xx_2tlv_2tlv__ex2__read_t_l_v_descriptors_8c_ab7240ddb5ea92d5135e32c5050de2ff1}\label{_m_s_p430_f5xx__6xx_2tlv_2tlv__ex2__read_t_l_v_descriptors_8c_ab7240ddb5ea92d5135e32c5050de2ff1}}
\index{tlv\_ex2\_readTLVDescriptors.c@{tlv\_ex2\_readTLVDescriptors.c}!bREFCAL\_bytes@{bREFCAL\_bytes}}
\index{bREFCAL\_bytes@{bREFCAL\_bytes}!tlv\_ex2\_readTLVDescriptors.c@{tlv\_ex2\_readTLVDescriptors.c}}
\doxysubsubsection{\texorpdfstring{bREFCAL\_bytes}{bREFCAL\_bytes}}
{\footnotesize\ttfamily uint8\+\_\+t b\+REFCAL\+\_\+bytes}
Definition at line 76 of file tlv\+\_\+ex2\+\_\+read\+TLVDescriptors.\+c.
Referenced by read\+REFCAL().
\mbox{\Hypertarget{_m_s_p430_f5xx__6xx_2tlv_2tlv__ex2__read_t_l_v_descriptors_8c_a38c050191d2a20c9e471012609dc5fd6}\label{_m_s_p430_f5xx__6xx_2tlv_2tlv__ex2__read_t_l_v_descriptors_8c_a38c050191d2a20c9e471012609dc5fd6}}
\index{tlv\_ex2\_readTLVDescriptors.c@{tlv\_ex2\_readTLVDescriptors.c}!DieX@{DieX}}
\index{DieX@{DieX}!tlv\_ex2\_readTLVDescriptors.c@{tlv\_ex2\_readTLVDescriptors.c}}
\doxysubsubsection{\texorpdfstring{DieX}{DieX}}
{\footnotesize\ttfamily uint16\+\_\+t DieX}
Definition at line 65 of file tlv\+\_\+ex2\+\_\+read\+TLVDescriptors.\+c.
Referenced by read\+Die\+Record().
\mbox{\Hypertarget{_m_s_p430_f5xx__6xx_2tlv_2tlv__ex2__read_t_l_v_descriptors_8c_af5d5fbe727514605b6b339ee5336642b}\label{_m_s_p430_f5xx__6xx_2tlv_2tlv__ex2__read_t_l_v_descriptors_8c_af5d5fbe727514605b6b339ee5336642b}}
\index{tlv\_ex2\_readTLVDescriptors.c@{tlv\_ex2\_readTLVDescriptors.c}!DieY@{DieY}}
\index{DieY@{DieY}!tlv\_ex2\_readTLVDescriptors.c@{tlv\_ex2\_readTLVDescriptors.c}}
\doxysubsubsection{\texorpdfstring{DieY}{DieY}}
{\footnotesize\ttfamily uint16\+\_\+t DieY}
Definition at line 65 of file tlv\+\_\+ex2\+\_\+read\+TLVDescriptors.\+c.
Referenced by read\+Die\+Record().
\mbox{\Hypertarget{_m_s_p430_f5xx__6xx_2tlv_2tlv__ex2__read_t_l_v_descriptors_8c_a9a7d13cffdc7ca481310247ecbc8503d}\label{_m_s_p430_f5xx__6xx_2tlv_2tlv__ex2__read_t_l_v_descriptors_8c_a9a7d13cffdc7ca481310247ecbc8503d}}
\index{tlv\_ex2\_readTLVDescriptors.c@{tlv\_ex2\_readTLVDescriptors.c}!Memory\_1@{Memory\_1}}
\index{Memory\_1@{Memory\_1}!tlv\_ex2\_readTLVDescriptors.c@{tlv\_ex2\_readTLVDescriptors.c}}
\doxysubsubsection{\texorpdfstring{Memory\_1}{Memory\_1}}
{\footnotesize\ttfamily uint16\+\_\+t Memory\+\_\+1}
Definition at line 82 of file tlv\+\_\+ex2\+\_\+read\+TLVDescriptors.\+c.
Referenced by read\+Peripheral().
\mbox{\Hypertarget{_m_s_p430_f5xx__6xx_2tlv_2tlv__ex2__read_t_l_v_descriptors_8c_a6cbc2699c151d4b1e17f74e1b640af3f}\label{_m_s_p430_f5xx__6xx_2tlv_2tlv__ex2__read_t_l_v_descriptors_8c_a6cbc2699c151d4b1e17f74e1b640af3f}}
\index{tlv\_ex2\_readTLVDescriptors.c@{tlv\_ex2\_readTLVDescriptors.c}!Memory\_2@{Memory\_2}}
\index{Memory\_2@{Memory\_2}!tlv\_ex2\_readTLVDescriptors.c@{tlv\_ex2\_readTLVDescriptors.c}}
\doxysubsubsection{\texorpdfstring{Memory\_2}{Memory\_2}}
{\footnotesize\ttfamily uint16\+\_\+t Memory\+\_\+2}
Definition at line 82 of file tlv\+\_\+ex2\+\_\+read\+TLVDescriptors.\+c.
Referenced by read\+Peripheral().
\mbox{\Hypertarget{_m_s_p430_f5xx__6xx_2tlv_2tlv__ex2__read_t_l_v_descriptors_8c_a9cec42edb0853f07e8ae719f4c688a21}\label{_m_s_p430_f5xx__6xx_2tlv_2tlv__ex2__read_t_l_v_descriptors_8c_a9cec42edb0853f07e8ae719f4c688a21}}
\index{tlv\_ex2\_readTLVDescriptors.c@{tlv\_ex2\_readTLVDescriptors.c}!Memory\_3@{Memory\_3}}
\index{Memory\_3@{Memory\_3}!tlv\_ex2\_readTLVDescriptors.c@{tlv\_ex2\_readTLVDescriptors.c}}
\doxysubsubsection{\texorpdfstring{Memory\_3}{Memory\_3}}
{\footnotesize\ttfamily uint16\+\_\+t Memory\+\_\+3}
Definition at line 82 of file tlv\+\_\+ex2\+\_\+read\+TLVDescriptors.\+c.
Referenced by read\+Peripheral().
\mbox{\Hypertarget{_m_s_p430_f5xx__6xx_2tlv_2tlv__ex2__read_t_l_v_descriptors_8c_aadba76baaf79f2caffba458fc1a218a5}\label{_m_s_p430_f5xx__6xx_2tlv_2tlv__ex2__read_t_l_v_descriptors_8c_aadba76baaf79f2caffba458fc1a218a5}}
\index{tlv\_ex2\_readTLVDescriptors.c@{tlv\_ex2\_readTLVDescriptors.c}!Memory\_4@{Memory\_4}}
\index{Memory\_4@{Memory\_4}!tlv\_ex2\_readTLVDescriptors.c@{tlv\_ex2\_readTLVDescriptors.c}}
\doxysubsubsection{\texorpdfstring{Memory\_4}{Memory\_4}}
{\footnotesize\ttfamily uint16\+\_\+t Memory\+\_\+4}
Definition at line 82 of file tlv\+\_\+ex2\+\_\+read\+TLVDescriptors.\+c.
Referenced by read\+Peripheral().
\mbox{\Hypertarget{_m_s_p430_f5xx__6xx_2tlv_2tlv__ex2__read_t_l_v_descriptors_8c_ad13c61e61e372f4c0a9d101695015fd1}\label{_m_s_p430_f5xx__6xx_2tlv_2tlv__ex2__read_t_l_v_descriptors_8c_ad13c61e61e372f4c0a9d101695015fd1}}
\index{tlv\_ex2\_readTLVDescriptors.c@{tlv\_ex2\_readTLVDescriptors.c}!pADCCAL@{pADCCAL}}
\index{pADCCAL@{pADCCAL}!tlv\_ex2\_readTLVDescriptors.c@{tlv\_ex2\_readTLVDescriptors.c}}
\doxysubsubsection{\texorpdfstring{pADCCAL}{pADCCAL}}
{\footnotesize\ttfamily struct s\+\_\+\+TLV\+\_\+\+ADC\+\_\+\+Cal\+\_\+\+Data$\ast$ p\+ADCCAL}
Definition at line 68 of file tlv\+\_\+ex2\+\_\+read\+TLVDescriptors.\+c.
Referenced by read\+ADCCAL().
\mbox{\Hypertarget{_m_s_p430_f5xx__6xx_2tlv_2tlv__ex2__read_t_l_v_descriptors_8c_a90053704e55062d84fb0c5334e03c6f9}\label{_m_s_p430_f5xx__6xx_2tlv_2tlv__ex2__read_t_l_v_descriptors_8c_a90053704e55062d84fb0c5334e03c6f9}}
\index{tlv\_ex2\_readTLVDescriptors.c@{tlv\_ex2\_readTLVDescriptors.c}!pDIEREC@{pDIEREC}}
\index{pDIEREC@{pDIEREC}!tlv\_ex2\_readTLVDescriptors.c@{tlv\_ex2\_readTLVDescriptors.c}}
\doxysubsubsection{\texorpdfstring{pDIEREC}{pDIEREC}}
{\footnotesize\ttfamily struct s\+\_\+\+TLV\+\_\+\+Die\+\_\+\+Record$\ast$ p\+DIEREC}
The contents of TLV device descriptors are read out using the TLV functions and then stored into local variables.
ACLK = n/a, MCLK = SMCLK = default DCO $\sim$ 1.\+045\+MHz\hypertarget{_m_s_p430_f5xx__6xx_2tlv_2tlv__ex2__read_t_l_v_descriptors_8c_autotoc_md76}{}\doxysubsubsection{Tested On\+: MSP430\+F5438\+A,\+MSP430\+FR5739,\+MSP430\+FR5969}\label{_m_s_p430_f5xx__6xx_2tlv_2tlv__ex2__read_t_l_v_descriptors_8c_autotoc_md76}
/$\vert$$|$ XIN$\vert$-\/ $\vert$ $\vert$ $\vert$ --$\vert$\+RST XOUT$\vert$-\/ $\vert$ $\vert$ $\vert$ $\vert$
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 WDT
\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 None.
\end{DoxyItemize}
Definition at line 61 of file tlv\+\_\+ex2\+\_\+read\+TLVDescriptors.\+c.
Referenced by read\+Die\+Record().
\mbox{\Hypertarget{_m_s_p430_f5xx__6xx_2tlv_2tlv__ex2__read_t_l_v_descriptors_8c_aa3041214d28fd9b144fa40fd9d2ebd38}\label{_m_s_p430_f5xx__6xx_2tlv_2tlv__ex2__read_t_l_v_descriptors_8c_aa3041214d28fd9b144fa40fd9d2ebd38}}
\index{tlv\_ex2\_readTLVDescriptors.c@{tlv\_ex2\_readTLVDescriptors.c}!PMM\_Exist@{PMM\_Exist}}
\index{PMM\_Exist@{PMM\_Exist}!tlv\_ex2\_readTLVDescriptors.c@{tlv\_ex2\_readTLVDescriptors.c}}
\doxysubsubsection{\texorpdfstring{PMM\_Exist}{PMM\_Exist}}
{\footnotesize\ttfamily uint16\+\_\+t PMM\+\_\+\+Exist}
Definition at line 83 of file tlv\+\_\+ex2\+\_\+read\+TLVDescriptors.\+c.
Referenced by read\+Peripheral().
\mbox{\Hypertarget{_m_s_p430_f5xx__6xx_2tlv_2tlv__ex2__read_t_l_v_descriptors_8c_a9622441232ea724691fda7a569a558bc}\label{_m_s_p430_f5xx__6xx_2tlv_2tlv__ex2__read_t_l_v_descriptors_8c_a9622441232ea724691fda7a569a558bc}}
\index{tlv\_ex2\_readTLVDescriptors.c@{tlv\_ex2\_readTLVDescriptors.c}!pPeriph@{pPeriph}}
\index{pPeriph@{pPeriph}!tlv\_ex2\_readTLVDescriptors.c@{tlv\_ex2\_readTLVDescriptors.c}}
\doxysubsubsection{\texorpdfstring{pPeriph}{pPeriph}}
{\footnotesize\ttfamily struct s\+\_\+\+Peripheral\+\_\+\+Memory\+\_\+\+Data$\ast$ p\+Periph}
Definition at line 80 of file tlv\+\_\+ex2\+\_\+read\+TLVDescriptors.\+c.
Referenced by read\+Peripheral().
\mbox{\Hypertarget{_m_s_p430_f5xx__6xx_2tlv_2tlv__ex2__read_t_l_v_descriptors_8c_af0c72d4f2c2746c13c1a15805727ed8a}\label{_m_s_p430_f5xx__6xx_2tlv_2tlv__ex2__read_t_l_v_descriptors_8c_af0c72d4f2c2746c13c1a15805727ed8a}}
\index{tlv\_ex2\_readTLVDescriptors.c@{tlv\_ex2\_readTLVDescriptors.c}!pREFCAL@{pREFCAL}}
\index{pREFCAL@{pREFCAL}!tlv\_ex2\_readTLVDescriptors.c@{tlv\_ex2\_readTLVDescriptors.c}}
\doxysubsubsection{\texorpdfstring{pREFCAL}{pREFCAL}}
{\footnotesize\ttfamily struct s\+\_\+\+TLV\+\_\+\+REF\+\_\+\+Cal\+\_\+\+Data$\ast$ p\+REFCAL}
Definition at line 75 of file tlv\+\_\+ex2\+\_\+read\+TLVDescriptors.\+c.
Referenced by read\+REFCAL().
\mbox{\Hypertarget{_m_s_p430_f5xx__6xx_2tlv_2tlv__ex2__read_t_l_v_descriptors_8c_af27f0fffd135427c637272fa6e3e79ed}\label{_m_s_p430_f5xx__6xx_2tlv_2tlv__ex2__read_t_l_v_descriptors_8c_af27f0fffd135427c637272fa6e3e79ed}}
\index{tlv\_ex2\_readTLVDescriptors.c@{tlv\_ex2\_readTLVDescriptors.c}!REF\_15V@{REF\_15V}}
\index{REF\_15V@{REF\_15V}!tlv\_ex2\_readTLVDescriptors.c@{tlv\_ex2\_readTLVDescriptors.c}}
\doxysubsubsection{\texorpdfstring{REF\_15V}{REF\_15V}}
{\footnotesize\ttfamily uint16\+\_\+t REF\+\_\+15V}
Definition at line 77 of file tlv\+\_\+ex2\+\_\+read\+TLVDescriptors.\+c.
Referenced by read\+REFCAL().
\mbox{\Hypertarget{_m_s_p430_f5xx__6xx_2tlv_2tlv__ex2__read_t_l_v_descriptors_8c_a99a2e86d37a080aae2c408cdfe784670}\label{_m_s_p430_f5xx__6xx_2tlv_2tlv__ex2__read_t_l_v_descriptors_8c_a99a2e86d37a080aae2c408cdfe784670}}
\index{tlv\_ex2\_readTLVDescriptors.c@{tlv\_ex2\_readTLVDescriptors.c}!REF\_20V@{REF\_20V}}
\index{REF\_20V@{REF\_20V}!tlv\_ex2\_readTLVDescriptors.c@{tlv\_ex2\_readTLVDescriptors.c}}
\doxysubsubsection{\texorpdfstring{REF\_20V}{REF\_20V}}
{\footnotesize\ttfamily uint16\+\_\+t REF\+\_\+20V}
Definition at line 77 of file tlv\+\_\+ex2\+\_\+read\+TLVDescriptors.\+c.
Referenced by read\+REFCAL().
\mbox{\Hypertarget{_m_s_p430_f5xx__6xx_2tlv_2tlv__ex2__read_t_l_v_descriptors_8c_a89ad7c6cc666021cd62cb5cfc2d35fab}\label{_m_s_p430_f5xx__6xx_2tlv_2tlv__ex2__read_t_l_v_descriptors_8c_a89ad7c6cc666021cd62cb5cfc2d35fab}}
\index{tlv\_ex2\_readTLVDescriptors.c@{tlv\_ex2\_readTLVDescriptors.c}!REF\_25V@{REF\_25V}}
\index{REF\_25V@{REF\_25V}!tlv\_ex2\_readTLVDescriptors.c@{tlv\_ex2\_readTLVDescriptors.c}}
\doxysubsubsection{\texorpdfstring{REF\_25V}{REF\_25V}}
{\footnotesize\ttfamily uint16\+\_\+t REF\+\_\+25V}
Definition at line 77 of file tlv\+\_\+ex2\+\_\+read\+TLVDescriptors.\+c.
Referenced by read\+REFCAL().
\mbox{\Hypertarget{_m_s_p430_f5xx__6xx_2tlv_2tlv__ex2__read_t_l_v_descriptors_8c_a36142ddde297ed1d5577c81230997301}\label{_m_s_p430_f5xx__6xx_2tlv_2tlv__ex2__read_t_l_v_descriptors_8c_a36142ddde297ed1d5577c81230997301}}
\index{tlv\_ex2\_readTLVDescriptors.c@{tlv\_ex2\_readTLVDescriptors.c}!temp@{temp}}
\index{temp@{temp}!tlv\_ex2\_readTLVDescriptors.c@{tlv\_ex2\_readTLVDescriptors.c}}
\doxysubsubsection{\texorpdfstring{temp}{temp}}
{\footnotesize\ttfamily uint16\+\_\+t temp}
Definition at line 63 of file tlv\+\_\+ex2\+\_\+read\+TLVDescriptors.\+c.
\mbox{\Hypertarget{_m_s_p430_f5xx__6xx_2tlv_2tlv__ex2__read_t_l_v_descriptors_8c_a8cff184e50949393c92c035bcf85b461}\label{_m_s_p430_f5xx__6xx_2tlv_2tlv__ex2__read_t_l_v_descriptors_8c_a8cff184e50949393c92c035bcf85b461}}
\index{tlv\_ex2\_readTLVDescriptors.c@{tlv\_ex2\_readTLVDescriptors.c}!TestRes@{TestRes}}
\index{TestRes@{TestRes}!tlv\_ex2\_readTLVDescriptors.c@{tlv\_ex2\_readTLVDescriptors.c}}
\doxysubsubsection{\texorpdfstring{TestRes}{TestRes}}
{\footnotesize\ttfamily uint16\+\_\+t Test\+Res}
Definition at line 65 of file tlv\+\_\+ex2\+\_\+read\+TLVDescriptors.\+c.
Referenced by read\+Die\+Record().
\mbox{\Hypertarget{_m_s_p430_f5xx__6xx_2tlv_2tlv__ex2__read_t_l_v_descriptors_8c_ac60a79f85dcf288b613ac10382fc2c74}\label{_m_s_p430_f5xx__6xx_2tlv_2tlv__ex2__read_t_l_v_descriptors_8c_ac60a79f85dcf288b613ac10382fc2c74}}
\index{tlv\_ex2\_readTLVDescriptors.c@{tlv\_ex2\_readTLVDescriptors.c}!WaferID@{WaferID}}
\index{WaferID@{WaferID}!tlv\_ex2\_readTLVDescriptors.c@{tlv\_ex2\_readTLVDescriptors.c}}
\doxysubsubsection{\texorpdfstring{WaferID}{WaferID}}
{\footnotesize\ttfamily uint32\+\_\+t Wafer\+ID}
Definition at line 64 of file tlv\+\_\+ex2\+\_\+read\+TLVDescriptors.\+c.
Referenced by read\+Die\+Record().

View File

@@ -0,0 +1,206 @@
\hypertarget{_m_s_p430_f5xx__6xx_2tlv_2tlv__ex3__calibrate_temp_sensor_8c}{}\doxysection{Resources/\+Software/msp430\+\_\+driverlib\+\_\+2\+\_\+91\+\_\+13\+\_\+01/examples/\+MSP430\+F5xx\+\_\+6xx/tlv/tlv\+\_\+ex3\+\_\+calibrate\+Temp\+Sensor.c File Reference}
\label{_m_s_p430_f5xx__6xx_2tlv_2tlv__ex3__calibrate_temp_sensor_8c}\index{Resources/Software/msp430\_driverlib\_2\_91\_13\_01/examples/MSP430F5xx\_6xx/tlv/tlv\_ex3\_calibrateTempSensor.c@{Resources/Software/msp430\_driverlib\_2\_91\_13\_01/examples/MSP430F5xx\_6xx/tlv/tlv\_ex3\_calibrateTempSensor.c}}
{\ttfamily \#include \char`\"{}driverlib.\+h\char`\"{}}\newline
\doxysubsection*{Functions}
\begin{DoxyCompactItemize}
\item
void \mbox{\hyperlink{_m_s_p430_f5xx__6xx_2tlv_2tlv__ex3__calibrate_temp_sensor_8c_a0b3380f399a29ee713eff84ccc3e63ed}{calibrate\+ADC}} (void)
\item
void \mbox{\hyperlink{_m_s_p430_f5xx__6xx_2tlv_2tlv__ex3__calibrate_temp_sensor_8c_a6288eba0f8e8ad3ab1544ad731eb7667}{main}} (void)
\item
void \mbox{\hyperlink{_m_s_p430_f5xx__6xx_2tlv_2tlv__ex3__calibrate_temp_sensor_8c_ae0194f6cfda5bea946ec788350bcc32c}{ADC12\+ISR}} (void)
\end{DoxyCompactItemize}
\doxysubsection*{Variables}
\begin{DoxyCompactItemize}
\item
uint16\+\_\+t \mbox{\hyperlink{_m_s_p430_f5xx__6xx_2tlv_2tlv__ex3__calibrate_temp_sensor_8c_a36142ddde297ed1d5577c81230997301}{temp}}
\item
volatile float \mbox{\hyperlink{_m_s_p430_f5xx__6xx_2tlv_2tlv__ex3__calibrate_temp_sensor_8c_a2ae78c37216c42fbff18911fc5f94486}{DegF}}
\item
volatile float \mbox{\hyperlink{_m_s_p430_f5xx__6xx_2tlv_2tlv__ex3__calibrate_temp_sensor_8c_ae2c5ba4879be8505b366623576465d6f}{DegC}}
\item
float \mbox{\hyperlink{_m_s_p430_f5xx__6xx_2tlv_2tlv__ex3__calibrate_temp_sensor_8c_aa78b10a9eddb4a2e29fd41ac0e14dfdf}{mref}}
\item
float \mbox{\hyperlink{_m_s_p430_f5xx__6xx_2tlv_2tlv__ex3__calibrate_temp_sensor_8c_ad8613314420046e0ca1c455de439f76a}{nref}}
\item
uint8\+\_\+t \mbox{\hyperlink{_m_s_p430_f5xx__6xx_2tlv_2tlv__ex3__calibrate_temp_sensor_8c_a7aa9b3eed291511084e0e5393a688b12}{b\+ADCCAL\+\_\+bytes}}
\item
struct s\+\_\+\+TLV\+\_\+\+ADC\+\_\+\+Cal\+\_\+\+Data $\ast$ \mbox{\hyperlink{_m_s_p430_f5xx__6xx_2tlv_2tlv__ex3__calibrate_temp_sensor_8c_ad13c61e61e372f4c0a9d101695015fd1}{p\+ADCCAL}}
\end{DoxyCompactItemize}
\doxysubsection{Function Documentation}
\mbox{\Hypertarget{_m_s_p430_f5xx__6xx_2tlv_2tlv__ex3__calibrate_temp_sensor_8c_ae0194f6cfda5bea946ec788350bcc32c}\label{_m_s_p430_f5xx__6xx_2tlv_2tlv__ex3__calibrate_temp_sensor_8c_ae0194f6cfda5bea946ec788350bcc32c}}
\index{tlv\_ex3\_calibrateTempSensor.c@{tlv\_ex3\_calibrateTempSensor.c}!ADC12ISR@{ADC12ISR}}
\index{ADC12ISR@{ADC12ISR}!tlv\_ex3\_calibrateTempSensor.c@{tlv\_ex3\_calibrateTempSensor.c}}
\doxysubsubsection{\texorpdfstring{ADC12ISR()}{ADC12ISR()}}
{\footnotesize\ttfamily void ADC12\+ISR (\begin{DoxyParamCaption}\item[{void}]{ }\end{DoxyParamCaption})}
Definition at line 208 of file tlv\+\_\+ex3\+\_\+calibrate\+Temp\+Sensor.\+c.
References \+\_\+\+\_\+bic\+\_\+\+SR\+\_\+register\+\_\+on\+\_\+exit(), and temp.
\mbox{\Hypertarget{_m_s_p430_f5xx__6xx_2tlv_2tlv__ex3__calibrate_temp_sensor_8c_a0b3380f399a29ee713eff84ccc3e63ed}\label{_m_s_p430_f5xx__6xx_2tlv_2tlv__ex3__calibrate_temp_sensor_8c_a0b3380f399a29ee713eff84ccc3e63ed}}
\index{tlv\_ex3\_calibrateTempSensor.c@{tlv\_ex3\_calibrateTempSensor.c}!calibrateADC@{calibrateADC}}
\index{calibrateADC@{calibrateADC}!tlv\_ex3\_calibrateTempSensor.c@{tlv\_ex3\_calibrateTempSensor.c}}
\doxysubsubsection{\texorpdfstring{calibrateADC()}{calibrateADC()}}
{\footnotesize\ttfamily void calibrate\+ADC (\begin{DoxyParamCaption}\item[{void}]{ }\end{DoxyParamCaption})}
Definition at line 127 of file tlv\+\_\+ex3\+\_\+calibrate\+Temp\+Sensor.\+c.
References \+\_\+\+\_\+delay\+\_\+cycles(), b\+ADCCAL\+\_\+bytes, mref, nref, p\+ADCCAL, and param.
Referenced by main().
\mbox{\Hypertarget{_m_s_p430_f5xx__6xx_2tlv_2tlv__ex3__calibrate_temp_sensor_8c_a6288eba0f8e8ad3ab1544ad731eb7667}\label{_m_s_p430_f5xx__6xx_2tlv_2tlv__ex3__calibrate_temp_sensor_8c_a6288eba0f8e8ad3ab1544ad731eb7667}}
\index{tlv\_ex3\_calibrateTempSensor.c@{tlv\_ex3\_calibrateTempSensor.c}!main@{main}}
\index{main@{main}!tlv\_ex3\_calibrateTempSensor.c@{tlv\_ex3\_calibrateTempSensor.c}}
\doxysubsubsection{\texorpdfstring{main()}{main()}}
{\footnotesize\ttfamily void main (\begin{DoxyParamCaption}\item[{void}]{ }\end{DoxyParamCaption})}
Definition at line 93 of file tlv\+\_\+ex3\+\_\+calibrate\+Temp\+Sensor.\+c.
References \+\_\+\+\_\+no\+\_\+operation(), calibrate\+ADC(), DegC, DegF, mref, nref, and temp.
\doxysubsection{Variable Documentation}
\mbox{\Hypertarget{_m_s_p430_f5xx__6xx_2tlv_2tlv__ex3__calibrate_temp_sensor_8c_a7aa9b3eed291511084e0e5393a688b12}\label{_m_s_p430_f5xx__6xx_2tlv_2tlv__ex3__calibrate_temp_sensor_8c_a7aa9b3eed291511084e0e5393a688b12}}
\index{tlv\_ex3\_calibrateTempSensor.c@{tlv\_ex3\_calibrateTempSensor.c}!bADCCAL\_bytes@{bADCCAL\_bytes}}
\index{bADCCAL\_bytes@{bADCCAL\_bytes}!tlv\_ex3\_calibrateTempSensor.c@{tlv\_ex3\_calibrateTempSensor.c}}
\doxysubsubsection{\texorpdfstring{bADCCAL\_bytes}{bADCCAL\_bytes}}
{\footnotesize\ttfamily uint8\+\_\+t b\+ADCCAL\+\_\+bytes}
Definition at line 78 of file tlv\+\_\+ex3\+\_\+calibrate\+Temp\+Sensor.\+c.
Referenced by calibrate\+ADC().
\mbox{\Hypertarget{_m_s_p430_f5xx__6xx_2tlv_2tlv__ex3__calibrate_temp_sensor_8c_ae2c5ba4879be8505b366623576465d6f}\label{_m_s_p430_f5xx__6xx_2tlv_2tlv__ex3__calibrate_temp_sensor_8c_ae2c5ba4879be8505b366623576465d6f}}
\index{tlv\_ex3\_calibrateTempSensor.c@{tlv\_ex3\_calibrateTempSensor.c}!DegC@{DegC}}
\index{DegC@{DegC}!tlv\_ex3\_calibrateTempSensor.c@{tlv\_ex3\_calibrateTempSensor.c}}
\doxysubsubsection{\texorpdfstring{DegC}{DegC}}
{\footnotesize\ttfamily volatile float DegC}
Definition at line 76 of file tlv\+\_\+ex3\+\_\+calibrate\+Temp\+Sensor.\+c.
Referenced by main().
\mbox{\Hypertarget{_m_s_p430_f5xx__6xx_2tlv_2tlv__ex3__calibrate_temp_sensor_8c_a2ae78c37216c42fbff18911fc5f94486}\label{_m_s_p430_f5xx__6xx_2tlv_2tlv__ex3__calibrate_temp_sensor_8c_a2ae78c37216c42fbff18911fc5f94486}}
\index{tlv\_ex3\_calibrateTempSensor.c@{tlv\_ex3\_calibrateTempSensor.c}!DegF@{DegF}}
\index{DegF@{DegF}!tlv\_ex3\_calibrateTempSensor.c@{tlv\_ex3\_calibrateTempSensor.c}}
\doxysubsubsection{\texorpdfstring{DegF}{DegF}}
{\footnotesize\ttfamily volatile float DegF}
Definition at line 75 of file tlv\+\_\+ex3\+\_\+calibrate\+Temp\+Sensor.\+c.
Referenced by main().
\mbox{\Hypertarget{_m_s_p430_f5xx__6xx_2tlv_2tlv__ex3__calibrate_temp_sensor_8c_aa78b10a9eddb4a2e29fd41ac0e14dfdf}\label{_m_s_p430_f5xx__6xx_2tlv_2tlv__ex3__calibrate_temp_sensor_8c_aa78b10a9eddb4a2e29fd41ac0e14dfdf}}
\index{tlv\_ex3\_calibrateTempSensor.c@{tlv\_ex3\_calibrateTempSensor.c}!mref@{mref}}
\index{mref@{mref}!tlv\_ex3\_calibrateTempSensor.c@{tlv\_ex3\_calibrateTempSensor.c}}
\doxysubsubsection{\texorpdfstring{mref}{mref}}
{\footnotesize\ttfamily float mref}
Definition at line 77 of file tlv\+\_\+ex3\+\_\+calibrate\+Temp\+Sensor.\+c.
Referenced by calibrate\+ADC(), and main().
\mbox{\Hypertarget{_m_s_p430_f5xx__6xx_2tlv_2tlv__ex3__calibrate_temp_sensor_8c_ad8613314420046e0ca1c455de439f76a}\label{_m_s_p430_f5xx__6xx_2tlv_2tlv__ex3__calibrate_temp_sensor_8c_ad8613314420046e0ca1c455de439f76a}}
\index{tlv\_ex3\_calibrateTempSensor.c@{tlv\_ex3\_calibrateTempSensor.c}!nref@{nref}}
\index{nref@{nref}!tlv\_ex3\_calibrateTempSensor.c@{tlv\_ex3\_calibrateTempSensor.c}}
\doxysubsubsection{\texorpdfstring{nref}{nref}}
{\footnotesize\ttfamily float nref}
Definition at line 77 of file tlv\+\_\+ex3\+\_\+calibrate\+Temp\+Sensor.\+c.
Referenced by calibrate\+ADC(), and main().
\mbox{\Hypertarget{_m_s_p430_f5xx__6xx_2tlv_2tlv__ex3__calibrate_temp_sensor_8c_ad13c61e61e372f4c0a9d101695015fd1}\label{_m_s_p430_f5xx__6xx_2tlv_2tlv__ex3__calibrate_temp_sensor_8c_ad13c61e61e372f4c0a9d101695015fd1}}
\index{tlv\_ex3\_calibrateTempSensor.c@{tlv\_ex3\_calibrateTempSensor.c}!pADCCAL@{pADCCAL}}
\index{pADCCAL@{pADCCAL}!tlv\_ex3\_calibrateTempSensor.c@{tlv\_ex3\_calibrateTempSensor.c}}
\doxysubsubsection{\texorpdfstring{pADCCAL}{pADCCAL}}
{\footnotesize\ttfamily struct s\+\_\+\+TLV\+\_\+\+ADC\+\_\+\+Cal\+\_\+\+Data$\ast$ p\+ADCCAL}
Definition at line 79 of file tlv\+\_\+ex3\+\_\+calibrate\+Temp\+Sensor.\+c.
Referenced by calibrate\+ADC().
\mbox{\Hypertarget{_m_s_p430_f5xx__6xx_2tlv_2tlv__ex3__calibrate_temp_sensor_8c_a36142ddde297ed1d5577c81230997301}\label{_m_s_p430_f5xx__6xx_2tlv_2tlv__ex3__calibrate_temp_sensor_8c_a36142ddde297ed1d5577c81230997301}}
\index{tlv\_ex3\_calibrateTempSensor.c@{tlv\_ex3\_calibrateTempSensor.c}!temp@{temp}}
\index{temp@{temp}!tlv\_ex3\_calibrateTempSensor.c@{tlv\_ex3\_calibrateTempSensor.c}}
\doxysubsubsection{\texorpdfstring{temp}{temp}}
{\footnotesize\ttfamily uint16\+\_\+t temp}
TLV -\/ Sample Calibrated A10 Internal Temp Sensor as Input, AVcc Ref
After initialization, the the calibration constants for the unit are read in through the TLV. A single sample is made on A10 with reference to internal 1.\+5V Vref. Software sets ADC12\+SC to start sample and conversion -\/ ADC12\+SC automatically cleared at EOC. ADC12 internal oscillator times sample and conversion. In Mainloop MSP430 waits in LPM4 to save power until ADC10 conversion complete, ADC12\+\_\+\+A\+\_\+\+ISR will force exit from any LPMx in Mainloop on reti.
The results of the temperature sense can be viewed in the watch window by watching the variables DegC and DegF
ACLK = n/a, MCLK = SMCLK = default DCO $\sim$ 1.\+045\+MHz, ADC12\+CLK = ADC12\+OSC
\begin{DoxyVerb} MSP430F5438A
-----------------
/|\| |
| | |
--|RST |
|Temp Sensor-->A10|
| |
\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 ADC12 peripheral
\item A10
\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 ADC12\+\_\+\+A\+\_\+\+VECTOR
\end{DoxyItemize}
Definition at line 74 of file tlv\+\_\+ex3\+\_\+calibrate\+Temp\+Sensor.\+c.
Referenced by ADC12\+ISR(), and main().

View File

@@ -0,0 +1,64 @@
\hypertarget{_m_s_p430_f5xx__6xx_2wdt__a_2wdt__a__ex1__interval_s_m_c_l_k_8c}{}\doxysection{Resources/\+Software/msp430\+\_\+driverlib\+\_\+2\+\_\+91\+\_\+13\+\_\+01/examples/\+MSP430\+F5xx\+\_\+6xx/wdt\+\_\+a/wdt\+\_\+a\+\_\+ex1\+\_\+interval\+SMCLK.c File Reference}
\label{_m_s_p430_f5xx__6xx_2wdt__a_2wdt__a__ex1__interval_s_m_c_l_k_8c}\index{Resources/Software/msp430\_driverlib\_2\_91\_13\_01/examples/MSP430F5xx\_6xx/wdt\_a/wdt\_a\_ex1\_intervalSMCLK.c@{Resources/Software/msp430\_driverlib\_2\_91\_13\_01/examples/MSP430F5xx\_6xx/wdt\_a/wdt\_a\_ex1\_intervalSMCLK.c}}
{\ttfamily \#include \char`\"{}driverlib.\+h\char`\"{}}\newline
\doxysubsection*{Functions}
\begin{DoxyCompactItemize}
\item
void \mbox{\hyperlink{_m_s_p430_f5xx__6xx_2wdt__a_2wdt__a__ex1__interval_s_m_c_l_k_8c_a6288eba0f8e8ad3ab1544ad731eb7667}{main}} (void)
\item
void \mbox{\hyperlink{_m_s_p430_f5xx__6xx_2wdt__a_2wdt__a__ex1__interval_s_m_c_l_k_8c_afa209a204489cffc3a47f48db05b9713}{WDT\+\_\+\+A\+\_\+\+ISR}} (void)
\end{DoxyCompactItemize}
\doxysubsection{Function Documentation}
\mbox{\Hypertarget{_m_s_p430_f5xx__6xx_2wdt__a_2wdt__a__ex1__interval_s_m_c_l_k_8c_a6288eba0f8e8ad3ab1544ad731eb7667}\label{_m_s_p430_f5xx__6xx_2wdt__a_2wdt__a__ex1__interval_s_m_c_l_k_8c_a6288eba0f8e8ad3ab1544ad731eb7667}}
\index{wdt\_a\_ex1\_intervalSMCLK.c@{wdt\_a\_ex1\_intervalSMCLK.c}!main@{main}}
\index{main@{main}!wdt\_a\_ex1\_intervalSMCLK.c@{wdt\_a\_ex1\_intervalSMCLK.c}}
\doxysubsubsection{\texorpdfstring{main()}{main()}}
{\footnotesize\ttfamily void main (\begin{DoxyParamCaption}\item[{void}]{ }\end{DoxyParamCaption})}
WDT -\/ Toggle P1.\+0, Interval Overflow ISR, DCO SMCLK
Toggle P1.\+0 using software timed by the WDT ISR. Toggle rate is approx. 30ms = \{(default DCO 1.\+045\+MHz) / 32768\} based on default DCO = SMCLK clock source used in this example for the WDT. ACLK = n/a, MCLK = SMCLK = default DCO $\sim$1.045MHz\hypertarget{_m_s_p430_f5xx__6xx_2wdt__a_2wdt__a__ex1__interval_s_m_c_l_k_8c_autotoc_md77}{}\doxysubsubsection{Tested On\+: MSP430\+F5529,\+MSP430\+FR5739}\label{_m_s_p430_f5xx__6xx_2wdt__a_2wdt__a__ex1__interval_s_m_c_l_k_8c_autotoc_md77}
\tabulinesep=1mm
\begin{longtabu}spread 0pt [c]{*{2}{|X[-1]}|}
\hline
\PBS\centering \cellcolor{\tableheadbgcolor}\textbf{ / }&\PBS\centering \cellcolor{\tableheadbgcolor}\textbf{ $|$ }\\\cline{1-2}
\endfirsthead
\hline
\endfoot
\hline
\PBS\centering \cellcolor{\tableheadbgcolor}\textbf{ / }&\PBS\centering \cellcolor{\tableheadbgcolor}\textbf{ $|$ }\\\cline{1-2}
\endhead
-- &RST \\\cline{1-2}
P1.\+0 &-\/-\/$>$LED \\\cline{1-2}
\end{longtabu}
$\vert$ $\vert$
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 WDT 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 WDT\+\_\+\+A\+\_\+\+VECTOR
\end{DoxyItemize}
Definition at line 62 of file wdt\+\_\+a\+\_\+ex1\+\_\+interval\+SMCLK.\+c.
References \+\_\+\+\_\+no\+\_\+operation().
\mbox{\Hypertarget{_m_s_p430_f5xx__6xx_2wdt__a_2wdt__a__ex1__interval_s_m_c_l_k_8c_afa209a204489cffc3a47f48db05b9713}\label{_m_s_p430_f5xx__6xx_2wdt__a_2wdt__a__ex1__interval_s_m_c_l_k_8c_afa209a204489cffc3a47f48db05b9713}}
\index{wdt\_a\_ex1\_intervalSMCLK.c@{wdt\_a\_ex1\_intervalSMCLK.c}!WDT\_A\_ISR@{WDT\_A\_ISR}}
\index{WDT\_A\_ISR@{WDT\_A\_ISR}!wdt\_a\_ex1\_intervalSMCLK.c@{wdt\_a\_ex1\_intervalSMCLK.c}}
\doxysubsubsection{\texorpdfstring{WDT\_A\_ISR()}{WDT\_A\_ISR()}}
{\footnotesize\ttfamily void WDT\+\_\+\+A\+\_\+\+ISR (\begin{DoxyParamCaption}\item[{void}]{ }\end{DoxyParamCaption})}
Definition at line 95 of file wdt\+\_\+a\+\_\+ex1\+\_\+interval\+SMCLK.\+c.

View File

@@ -0,0 +1,64 @@
\hypertarget{_m_s_p430_f5xx__6xx_2wdt__a_2wdt__a__ex2__interval_a_c_l_k_8c}{}\doxysection{Resources/\+Software/msp430\+\_\+driverlib\+\_\+2\+\_\+91\+\_\+13\+\_\+01/examples/\+MSP430\+F5xx\+\_\+6xx/wdt\+\_\+a/wdt\+\_\+a\+\_\+ex2\+\_\+interval\+ACLK.c File Reference}
\label{_m_s_p430_f5xx__6xx_2wdt__a_2wdt__a__ex2__interval_a_c_l_k_8c}\index{Resources/Software/msp430\_driverlib\_2\_91\_13\_01/examples/MSP430F5xx\_6xx/wdt\_a/wdt\_a\_ex2\_intervalACLK.c@{Resources/Software/msp430\_driverlib\_2\_91\_13\_01/examples/MSP430F5xx\_6xx/wdt\_a/wdt\_a\_ex2\_intervalACLK.c}}
{\ttfamily \#include \char`\"{}driverlib.\+h\char`\"{}}\newline
\doxysubsection*{Functions}
\begin{DoxyCompactItemize}
\item
void \mbox{\hyperlink{_m_s_p430_f5xx__6xx_2wdt__a_2wdt__a__ex2__interval_a_c_l_k_8c_a6288eba0f8e8ad3ab1544ad731eb7667}{main}} (void)
\item
void \mbox{\hyperlink{_m_s_p430_f5xx__6xx_2wdt__a_2wdt__a__ex2__interval_a_c_l_k_8c_afa209a204489cffc3a47f48db05b9713}{WDT\+\_\+\+A\+\_\+\+ISR}} (void)
\end{DoxyCompactItemize}
\doxysubsection{Function Documentation}
\mbox{\Hypertarget{_m_s_p430_f5xx__6xx_2wdt__a_2wdt__a__ex2__interval_a_c_l_k_8c_a6288eba0f8e8ad3ab1544ad731eb7667}\label{_m_s_p430_f5xx__6xx_2wdt__a_2wdt__a__ex2__interval_a_c_l_k_8c_a6288eba0f8e8ad3ab1544ad731eb7667}}
\index{wdt\_a\_ex2\_intervalACLK.c@{wdt\_a\_ex2\_intervalACLK.c}!main@{main}}
\index{main@{main}!wdt\_a\_ex2\_intervalACLK.c@{wdt\_a\_ex2\_intervalACLK.c}}
\doxysubsubsection{\texorpdfstring{main()}{main()}}
{\footnotesize\ttfamily void main (\begin{DoxyParamCaption}\item[{void}]{ }\end{DoxyParamCaption})}
WDT -\/ Toggle P1.\+0, Interval Overflow ISR, 32k\+Hz ACLK
Toggle P1.\+0 using software timed by WDT ISR. Toggle rate is exactly 250ms based on 32k\+Hz ACLK WDT clock source. In this example the WDT is configured to divide 32768 watch-\/crystal(2$^\wedge$15) by 2$^\wedge$13 with an ISR triggered @ 4Hz = \mbox{[}WDT CLK source/32768\mbox{]}. ACLK = REFO , MCLK = SMCLK = default DCO $\sim$1.045MHz\hypertarget{_m_s_p430_f5xx__6xx_2wdt__a_2wdt__a__ex2__interval_a_c_l_k_8c_autotoc_md78}{}\doxysubsubsection{Tested On\+: MSP430\+F5529,\+MSP430\+FR5739}\label{_m_s_p430_f5xx__6xx_2wdt__a_2wdt__a__ex2__interval_a_c_l_k_8c_autotoc_md78}
\tabulinesep=1mm
\begin{longtabu}spread 0pt [c]{*{2}{|X[-1]}|}
\hline
\PBS\centering \cellcolor{\tableheadbgcolor}\textbf{ / }&\PBS\centering \cellcolor{\tableheadbgcolor}\textbf{ $|$ }\\\cline{1-2}
\endfirsthead
\hline
\endfoot
\hline
\PBS\centering \cellcolor{\tableheadbgcolor}\textbf{ / }&\PBS\centering \cellcolor{\tableheadbgcolor}\textbf{ $|$ }\\\cline{1-2}
\endhead
-- &RST \\\cline{1-2}
P1.\+0 &-\/-\/$>$LED \\\cline{1-2}
\end{longtabu}
$\vert$ $\vert$
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 WDT 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 WDT\+\_\+\+A\+\_\+\+VECTOR
\end{DoxyItemize}
Definition at line 63 of file wdt\+\_\+a\+\_\+ex2\+\_\+interval\+ACLK.\+c.
References \+\_\+\+\_\+no\+\_\+operation().
\mbox{\Hypertarget{_m_s_p430_f5xx__6xx_2wdt__a_2wdt__a__ex2__interval_a_c_l_k_8c_afa209a204489cffc3a47f48db05b9713}\label{_m_s_p430_f5xx__6xx_2wdt__a_2wdt__a__ex2__interval_a_c_l_k_8c_afa209a204489cffc3a47f48db05b9713}}
\index{wdt\_a\_ex2\_intervalACLK.c@{wdt\_a\_ex2\_intervalACLK.c}!WDT\_A\_ISR@{WDT\_A\_ISR}}
\index{WDT\_A\_ISR@{WDT\_A\_ISR}!wdt\_a\_ex2\_intervalACLK.c@{wdt\_a\_ex2\_intervalACLK.c}}
\doxysubsubsection{\texorpdfstring{WDT\_A\_ISR()}{WDT\_A\_ISR()}}
{\footnotesize\ttfamily void WDT\+\_\+\+A\+\_\+\+ISR (\begin{DoxyParamCaption}\item[{void}]{ }\end{DoxyParamCaption})}
Definition at line 96 of file wdt\+\_\+a\+\_\+ex2\+\_\+interval\+ACLK.\+c.

View File

@@ -0,0 +1,52 @@
\hypertarget{_m_s_p430_f5xx__6xx_2wdt__a_2wdt__a__ex3__watchdog_a_c_l_k_8c}{}\doxysection{Resources/\+Software/msp430\+\_\+driverlib\+\_\+2\+\_\+91\+\_\+13\+\_\+01/examples/\+MSP430\+F5xx\+\_\+6xx/wdt\+\_\+a/wdt\+\_\+a\+\_\+ex3\+\_\+watchdog\+ACLK.c File Reference}
\label{_m_s_p430_f5xx__6xx_2wdt__a_2wdt__a__ex3__watchdog_a_c_l_k_8c}\index{Resources/Software/msp430\_driverlib\_2\_91\_13\_01/examples/MSP430F5xx\_6xx/wdt\_a/wdt\_a\_ex3\_watchdogACLK.c@{Resources/Software/msp430\_driverlib\_2\_91\_13\_01/examples/MSP430F5xx\_6xx/wdt\_a/wdt\_a\_ex3\_watchdogACLK.c}}
{\ttfamily \#include \char`\"{}driverlib.\+h\char`\"{}}\newline
\doxysubsection*{Functions}
\begin{DoxyCompactItemize}
\item
void \mbox{\hyperlink{_m_s_p430_f5xx__6xx_2wdt__a_2wdt__a__ex3__watchdog_a_c_l_k_8c_a6288eba0f8e8ad3ab1544ad731eb7667}{main}} (void)
\end{DoxyCompactItemize}
\doxysubsection{Function Documentation}
\mbox{\Hypertarget{_m_s_p430_f5xx__6xx_2wdt__a_2wdt__a__ex3__watchdog_a_c_l_k_8c_a6288eba0f8e8ad3ab1544ad731eb7667}\label{_m_s_p430_f5xx__6xx_2wdt__a_2wdt__a__ex3__watchdog_a_c_l_k_8c_a6288eba0f8e8ad3ab1544ad731eb7667}}
\index{wdt\_a\_ex3\_watchdogACLK.c@{wdt\_a\_ex3\_watchdogACLK.c}!main@{main}}
\index{main@{main}!wdt\_a\_ex3\_watchdogACLK.c@{wdt\_a\_ex3\_watchdogACLK.c}}
\doxysubsubsection{\texorpdfstring{main()}{main()}}
{\footnotesize\ttfamily void main (\begin{DoxyParamCaption}\item[{void}]{ }\end{DoxyParamCaption})}
WDT -\/ Failsafe Clock, 10KHz VLOCLK
Configure WDT in watchdog to timeout sourced by ACLK. LPM3 is entered. This example will demonstrate WDT fail-\/safe feature by automatically selecting VLOCLK as WDT clock source if ACLK fails. Watchdog timeout will toggle on P1.\+0 every 3 seconds in main function. VLOCLK = 10KHZ, ACLK = 32768, MCLK = SMCLK = default DCO $\sim$1.045MHz\hypertarget{_m_s_p430_f5xx__6xx_2wdt__a_2wdt__a__ex3__watchdog_a_c_l_k_8c_autotoc_md79}{}\doxysubsubsection{Tested On\+: MSP430\+F5529,\+MSP430\+FR5739}\label{_m_s_p430_f5xx__6xx_2wdt__a_2wdt__a__ex3__watchdog_a_c_l_k_8c_autotoc_md79}
\tabulinesep=1mm
\begin{longtabu}spread 0pt [c]{*{2}{|X[-1]}|}
\hline
\PBS\centering \cellcolor{\tableheadbgcolor}\textbf{ / }&\PBS\centering \cellcolor{\tableheadbgcolor}\textbf{ $|$ }\\\cline{1-2}
\endfirsthead
\hline
\endfoot
\hline
\PBS\centering \cellcolor{\tableheadbgcolor}\textbf{ / }&\PBS\centering \cellcolor{\tableheadbgcolor}\textbf{ $|$ }\\\cline{1-2}
\endhead
-- &RST \\\cline{1-2}
P1.\+0 &-\/-\/$>$LED \\\cline{1-2}
\end{longtabu}
$\vert$ $\vert$
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 WDT 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 None.
\end{DoxyItemize}
Definition at line 63 of file wdt\+\_\+a\+\_\+ex3\+\_\+watchdog\+ACLK.\+c.
References \+\_\+\+\_\+no\+\_\+operation().

View File

@@ -0,0 +1,52 @@
\hypertarget{_m_s_p430_f_r2xx__4xx_2crc_2crc__ex1__build_signature_8c}{}\doxysection{Resources/\+Software/msp430\+\_\+driverlib\+\_\+2\+\_\+91\+\_\+13\+\_\+01/examples/\+MSP430\+FR2xx\+\_\+4xx/crc/crc\+\_\+ex1\+\_\+build\+Signature.c File Reference}
\label{_m_s_p430_f_r2xx__4xx_2crc_2crc__ex1__build_signature_8c}\index{Resources/Software/msp430\_driverlib\_2\_91\_13\_01/examples/MSP430FR2xx\_4xx/crc/crc\_ex1\_buildSignature.c@{Resources/Software/msp430\_driverlib\_2\_91\_13\_01/examples/MSP430FR2xx\_4xx/crc/crc\_ex1\_buildSignature.c}}
{\ttfamily \#include \char`\"{}driverlib.\+h\char`\"{}}\newline
\doxysubsection*{Functions}
\begin{DoxyCompactItemize}
\item
void \mbox{\hyperlink{_m_s_p430_f_r2xx__4xx_2crc_2crc__ex1__build_signature_8c_a6288eba0f8e8ad3ab1544ad731eb7667}{main}} (void)
\end{DoxyCompactItemize}
\doxysubsection{Function Documentation}
\mbox{\Hypertarget{_m_s_p430_f_r2xx__4xx_2crc_2crc__ex1__build_signature_8c_a6288eba0f8e8ad3ab1544ad731eb7667}\label{_m_s_p430_f_r2xx__4xx_2crc_2crc__ex1__build_signature_8c_a6288eba0f8e8ad3ab1544ad731eb7667}}
\index{crc\_ex1\_buildSignature.c@{crc\_ex1\_buildSignature.c}!main@{main}}
\index{main@{main}!crc\_ex1\_buildSignature.c@{crc\_ex1\_buildSignature.c}}
\doxysubsubsection{\texorpdfstring{main()}{main()}}
{\footnotesize\ttfamily void main (\begin{DoxyParamCaption}\item[{void}]{ }\end{DoxyParamCaption})}
CRC -\/ Build Signature and Rebuild to test.
The CRC is first used to build a signature using a seed and multiple data values. This signature is considered as the checksum and can be sent by a UART connection along with the data to verify the correct data has been sent. The second half of this program is used to test the CRC checksum of the data that has been created, by recreating the same checksum and comparing it to the first checksum. If the two checksum are equal, then P1.\+0 is set and the LED is turned on. Breakpoints can be set before the CRC\+\_\+set\+Data() function to observe the CRC register values and see the subsequent signatures before/after each data set.\hypertarget{_m_s_p430_f_r2xx__4xx_2crc_2crc__ex1__build_signature_8c_autotoc_md83}{}\doxysubsubsection{Tested On\+: MSP430\+F5529,\+MSP430\+FR5739}\label{_m_s_p430_f_r2xx__4xx_2crc_2crc__ex1__build_signature_8c_autotoc_md83}
\tabulinesep=1mm
\begin{longtabu}spread 0pt [c]{*{2}{|X[-1]}|}
\hline
\PBS\centering \cellcolor{\tableheadbgcolor}\textbf{ / }&\PBS\centering \cellcolor{\tableheadbgcolor}\textbf{ $|$ }\\\cline{1-2}
\endfirsthead
\hline
\endfoot
\hline
\PBS\centering \cellcolor{\tableheadbgcolor}\textbf{ / }&\PBS\centering \cellcolor{\tableheadbgcolor}\textbf{ $|$ }\\\cline{1-2}
\endhead
-- &RST \\\cline{1-2}
P1.\+0 &-\/-\/$>$ LED \\\cline{1-2}
\end{longtabu}
$\vert$ $\vert$
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 CRC 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 NONE
\end{DoxyItemize}
Definition at line 69 of file crc\+\_\+ex1\+\_\+build\+Signature.\+c.
References \+\_\+\+\_\+no\+\_\+operation(), GPIO\+\_\+set\+Output\+High\+On\+Pin(), and i.

View File

@@ -0,0 +1,92 @@
\hypertarget{_m_s_p430_f_r2xx__4xx_2eusci__a__spi_2eusci__a__spi__ex1__master_8c}{}\doxysection{Resources/\+Software/msp430\+\_\+driverlib\+\_\+2\+\_\+91\+\_\+13\+\_\+01/examples/\+MSP430\+FR2xx\+\_\+4xx/eusci\+\_\+a\+\_\+spi/eusci\+\_\+a\+\_\+spi\+\_\+ex1\+\_\+master.c File Reference}
\label{_m_s_p430_f_r2xx__4xx_2eusci__a__spi_2eusci__a__spi__ex1__master_8c}\index{Resources/Software/msp430\_driverlib\_2\_91\_13\_01/examples/MSP430FR2xx\_4xx/eusci\_a\_spi/eusci\_a\_spi\_ex1\_master.c@{Resources/Software/msp430\_driverlib\_2\_91\_13\_01/examples/MSP430FR2xx\_4xx/eusci\_a\_spi/eusci\_a\_spi\_ex1\_master.c}}
{\ttfamily \#include \char`\"{}driverlib.\+h\char`\"{}}\newline
\doxysubsection*{Functions}
\begin{DoxyCompactItemize}
\item
void \mbox{\hyperlink{_m_s_p430_f_r2xx__4xx_2eusci__a__spi_2eusci__a__spi__ex1__master_8c_a6288eba0f8e8ad3ab1544ad731eb7667}{main}} (void)
\item
void \mbox{\hyperlink{_m_s_p430_f_r2xx__4xx_2eusci__a__spi_2eusci__a__spi__ex1__master_8c_a7d5728ccc412d2d610500fa338c2d003}{USCI\+\_\+\+A0\+\_\+\+ISR}} (void)
\end{DoxyCompactItemize}
\doxysubsection*{Variables}
\begin{DoxyCompactItemize}
\item
uint8\+\_\+t \mbox{\hyperlink{_m_s_p430_f_r2xx__4xx_2eusci__a__spi_2eusci__a__spi__ex1__master_8c_a597ef8ed788642728c57f66b3a21544f}{RXData}} = 0
\item
uint8\+\_\+t \mbox{\hyperlink{_m_s_p430_f_r2xx__4xx_2eusci__a__spi_2eusci__a__spi__ex1__master_8c_ae369b896b0180297d61764643f99ba25}{TXData}} = 0
\end{DoxyCompactItemize}
\doxysubsection{Function Documentation}
\mbox{\Hypertarget{_m_s_p430_f_r2xx__4xx_2eusci__a__spi_2eusci__a__spi__ex1__master_8c_a6288eba0f8e8ad3ab1544ad731eb7667}\label{_m_s_p430_f_r2xx__4xx_2eusci__a__spi_2eusci__a__spi__ex1__master_8c_a6288eba0f8e8ad3ab1544ad731eb7667}}
\index{eusci\_a\_spi\_ex1\_master.c@{eusci\_a\_spi\_ex1\_master.c}!main@{main}}
\index{main@{main}!eusci\_a\_spi\_ex1\_master.c@{eusci\_a\_spi\_ex1\_master.c}}
\doxysubsubsection{\texorpdfstring{main()}{main()}}
{\footnotesize\ttfamily void main (\begin{DoxyParamCaption}\item[{void}]{ }\end{DoxyParamCaption})}
Definition at line 80 of file eusci\+\_\+a\+\_\+spi\+\_\+ex1\+\_\+master.\+c.
References \+\_\+\+\_\+delay\+\_\+cycles(), \+\_\+\+\_\+no\+\_\+operation(), i, param, and TXData.
\mbox{\Hypertarget{_m_s_p430_f_r2xx__4xx_2eusci__a__spi_2eusci__a__spi__ex1__master_8c_a7d5728ccc412d2d610500fa338c2d003}\label{_m_s_p430_f_r2xx__4xx_2eusci__a__spi_2eusci__a__spi__ex1__master_8c_a7d5728ccc412d2d610500fa338c2d003}}
\index{eusci\_a\_spi\_ex1\_master.c@{eusci\_a\_spi\_ex1\_master.c}!USCI\_A0\_ISR@{USCI\_A0\_ISR}}
\index{USCI\_A0\_ISR@{USCI\_A0\_ISR}!eusci\_a\_spi\_ex1\_master.c@{eusci\_a\_spi\_ex1\_master.c}}
\doxysubsubsection{\texorpdfstring{USCI\_A0\_ISR()}{USCI\_A0\_ISR()}}
{\footnotesize\ttfamily void USCI\+\_\+\+A0\+\_\+\+ISR (\begin{DoxyParamCaption}\item[{void}]{ }\end{DoxyParamCaption})}
Definition at line 171 of file eusci\+\_\+a\+\_\+spi\+\_\+ex1\+\_\+master.\+c.
References \+\_\+\+\_\+delay\+\_\+cycles(), RXData, and TXData.
\doxysubsection{Variable Documentation}
\mbox{\Hypertarget{_m_s_p430_f_r2xx__4xx_2eusci__a__spi_2eusci__a__spi__ex1__master_8c_a597ef8ed788642728c57f66b3a21544f}\label{_m_s_p430_f_r2xx__4xx_2eusci__a__spi_2eusci__a__spi__ex1__master_8c_a597ef8ed788642728c57f66b3a21544f}}
\index{eusci\_a\_spi\_ex1\_master.c@{eusci\_a\_spi\_ex1\_master.c}!RXData@{RXData}}
\index{RXData@{RXData}!eusci\_a\_spi\_ex1\_master.c@{eusci\_a\_spi\_ex1\_master.c}}
\doxysubsubsection{\texorpdfstring{RXData}{RXData}}
{\footnotesize\ttfamily uint8\+\_\+t RXData = 0}
USCI\+\_\+\+A0, SPI 3-\/Wire Master Incremented Data This example shows how SPI master talks to SPI slave using 3-\/wire mode. Incrementing data is sent by the master starting at 0x01. Received data is expected to be same as the previous transmission. e\+USCI RX ISR is used to handle communication with the CPU, normally in LPM0. If high, P1.\+0 indicates valid data reception. Because all execution after LPM0 is in ISRs, initialization waits for DCO to stabilize against SMCLK. MCLK = SMCLK = ACLK = $\sim$32.768k\+Hz
Use with SPI Slave Data Echo code example. If slave is in debug mode, P1.\+1 slave reset signal conflicts with slave\textquotesingle{}s JTAG; to work around, use IAR\textquotesingle{}s \char`\"{}\+Release JTAG on Go\char`\"{} on slave device. If breakpoints are set in slave RX ISR, master must stopped also to avoid overrunning slave RXBUF. \begin{DoxyVerb} Tested on MSP430FR4133
-----------------
/|\ | |
| | |
\end{DoxyVerb}
Master---+-\/$>$$\vert$\+RST $\vert$ $\vert$ $\vert$ $\vert$ P1.\+0$\vert$-\/$>$ Data Out (UCA0\+SIMO) $\vert$ $\vert$ $\vert$ P1.\+1$\vert$$<$-\/ Data In (UCA0\+SOMI) $\vert$ $\vert$ $\vert$ P1.\+2$\vert$-\/$>$ Serial Clock Out (UCA0\+CLK)
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 SPI peripheral
\item GPIO Port peripheral (for SPI pins)
\item UCA0\+SIMO
\item UCA0\+SOMI
\item UCA0\+CLK
\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 USCI\+\_\+\+A0\+\_\+\+VECTOR
\end{DoxyItemize}
Definition at line 77 of file eusci\+\_\+a\+\_\+spi\+\_\+ex1\+\_\+master.\+c.
\mbox{\Hypertarget{_m_s_p430_f_r2xx__4xx_2eusci__a__spi_2eusci__a__spi__ex1__master_8c_ae369b896b0180297d61764643f99ba25}\label{_m_s_p430_f_r2xx__4xx_2eusci__a__spi_2eusci__a__spi__ex1__master_8c_ae369b896b0180297d61764643f99ba25}}
\index{eusci\_a\_spi\_ex1\_master.c@{eusci\_a\_spi\_ex1\_master.c}!TXData@{TXData}}
\index{TXData@{TXData}!eusci\_a\_spi\_ex1\_master.c@{eusci\_a\_spi\_ex1\_master.c}}
\doxysubsubsection{\texorpdfstring{TXData}{TXData}}
{\footnotesize\ttfamily uint8\+\_\+t TXData = 0}
Definition at line 78 of file eusci\+\_\+a\+\_\+spi\+\_\+ex1\+\_\+master.\+c.

View File

@@ -0,0 +1,92 @@
\hypertarget{_m_s_p430_f_r2xx__4xx_2eusci__a__spi_2eusci__a__spi__ex1__slave_8c}{}\doxysection{Resources/\+Software/msp430\+\_\+driverlib\+\_\+2\+\_\+91\+\_\+13\+\_\+01/examples/\+MSP430\+FR2xx\+\_\+4xx/eusci\+\_\+a\+\_\+spi/eusci\+\_\+a\+\_\+spi\+\_\+ex1\+\_\+slave.c File Reference}
\label{_m_s_p430_f_r2xx__4xx_2eusci__a__spi_2eusci__a__spi__ex1__slave_8c}\index{Resources/Software/msp430\_driverlib\_2\_91\_13\_01/examples/MSP430FR2xx\_4xx/eusci\_a\_spi/eusci\_a\_spi\_ex1\_slave.c@{Resources/Software/msp430\_driverlib\_2\_91\_13\_01/examples/MSP430FR2xx\_4xx/eusci\_a\_spi/eusci\_a\_spi\_ex1\_slave.c}}
{\ttfamily \#include \char`\"{}driverlib.\+h\char`\"{}}\newline
\doxysubsection*{Functions}
\begin{DoxyCompactItemize}
\item
void \mbox{\hyperlink{_m_s_p430_f_r2xx__4xx_2eusci__a__spi_2eusci__a__spi__ex1__slave_8c_a6288eba0f8e8ad3ab1544ad731eb7667}{main}} (void)
\item
void \mbox{\hyperlink{_m_s_p430_f_r2xx__4xx_2eusci__a__spi_2eusci__a__spi__ex1__slave_8c_a7d5728ccc412d2d610500fa338c2d003}{USCI\+\_\+\+A0\+\_\+\+ISR}} (void)
\end{DoxyCompactItemize}
\doxysubsection*{Variables}
\begin{DoxyCompactItemize}
\item
uint8\+\_\+t \mbox{\hyperlink{_m_s_p430_f_r2xx__4xx_2eusci__a__spi_2eusci__a__spi__ex1__slave_8c_ac23b8f721ac5b7a4315ba2c3409b9e0a}{transmit\+Data}} = 0x01
\item
uint8\+\_\+t \mbox{\hyperlink{_m_s_p430_f_r2xx__4xx_2eusci__a__spi_2eusci__a__spi__ex1__slave_8c_a216001f02f93a2c0b512c1b8724bdc60}{receive\+Data}} = 0x00
\end{DoxyCompactItemize}
\doxysubsection{Function Documentation}
\mbox{\Hypertarget{_m_s_p430_f_r2xx__4xx_2eusci__a__spi_2eusci__a__spi__ex1__slave_8c_a6288eba0f8e8ad3ab1544ad731eb7667}\label{_m_s_p430_f_r2xx__4xx_2eusci__a__spi_2eusci__a__spi__ex1__slave_8c_a6288eba0f8e8ad3ab1544ad731eb7667}}
\index{eusci\_a\_spi\_ex1\_slave.c@{eusci\_a\_spi\_ex1\_slave.c}!main@{main}}
\index{main@{main}!eusci\_a\_spi\_ex1\_slave.c@{eusci\_a\_spi\_ex1\_slave.c}}
\doxysubsubsection{\texorpdfstring{main()}{main()}}
{\footnotesize\ttfamily void main (\begin{DoxyParamCaption}\item[{void}]{ }\end{DoxyParamCaption})}
Definition at line 76 of file eusci\+\_\+a\+\_\+spi\+\_\+ex1\+\_\+slave.\+c.
References param.
\mbox{\Hypertarget{_m_s_p430_f_r2xx__4xx_2eusci__a__spi_2eusci__a__spi__ex1__slave_8c_a7d5728ccc412d2d610500fa338c2d003}\label{_m_s_p430_f_r2xx__4xx_2eusci__a__spi_2eusci__a__spi__ex1__slave_8c_a7d5728ccc412d2d610500fa338c2d003}}
\index{eusci\_a\_spi\_ex1\_slave.c@{eusci\_a\_spi\_ex1\_slave.c}!USCI\_A0\_ISR@{USCI\_A0\_ISR}}
\index{USCI\_A0\_ISR@{USCI\_A0\_ISR}!eusci\_a\_spi\_ex1\_slave.c@{eusci\_a\_spi\_ex1\_slave.c}}
\doxysubsubsection{\texorpdfstring{USCI\_A0\_ISR()}{USCI\_A0\_ISR()}}
{\footnotesize\ttfamily void USCI\+\_\+\+A0\+\_\+\+ISR (\begin{DoxyParamCaption}\item[{void}]{ }\end{DoxyParamCaption})}
Definition at line 146 of file eusci\+\_\+a\+\_\+spi\+\_\+ex1\+\_\+slave.\+c.
References receive\+Data, and transmit\+Data.
\doxysubsection{Variable Documentation}
\mbox{\Hypertarget{_m_s_p430_f_r2xx__4xx_2eusci__a__spi_2eusci__a__spi__ex1__slave_8c_a216001f02f93a2c0b512c1b8724bdc60}\label{_m_s_p430_f_r2xx__4xx_2eusci__a__spi_2eusci__a__spi__ex1__slave_8c_a216001f02f93a2c0b512c1b8724bdc60}}
\index{eusci\_a\_spi\_ex1\_slave.c@{eusci\_a\_spi\_ex1\_slave.c}!receiveData@{receiveData}}
\index{receiveData@{receiveData}!eusci\_a\_spi\_ex1\_slave.c@{eusci\_a\_spi\_ex1\_slave.c}}
\doxysubsubsection{\texorpdfstring{receiveData}{receiveData}}
{\footnotesize\ttfamily uint8\+\_\+t receive\+Data = 0x00}
Definition at line 74 of file eusci\+\_\+a\+\_\+spi\+\_\+ex1\+\_\+slave.\+c.
\mbox{\Hypertarget{_m_s_p430_f_r2xx__4xx_2eusci__a__spi_2eusci__a__spi__ex1__slave_8c_ac23b8f721ac5b7a4315ba2c3409b9e0a}\label{_m_s_p430_f_r2xx__4xx_2eusci__a__spi_2eusci__a__spi__ex1__slave_8c_ac23b8f721ac5b7a4315ba2c3409b9e0a}}
\index{eusci\_a\_spi\_ex1\_slave.c@{eusci\_a\_spi\_ex1\_slave.c}!transmitData@{transmitData}}
\index{transmitData@{transmitData}!eusci\_a\_spi\_ex1\_slave.c@{eusci\_a\_spi\_ex1\_slave.c}}
\doxysubsubsection{\texorpdfstring{transmitData}{transmitData}}
{\footnotesize\ttfamily uint8\+\_\+t transmit\+Data = 0x01}
SPI slave talks to SPI master using 3-\/wire mode. Data is received from master and data from slave is then transmitted back to master. USCI RX ISR is used to handle communication, CPU normally in LPM4. Prior to initial data exchange, master pulses slaves RST for complete reset.
Use with eusci\+\_\+spi\+\_\+ex1\+\_\+master code example. If the slave is in debug mode, the reset signal from the master will conflict with slave\textquotesingle{}s JTAG; to work around, use IAR\textquotesingle{}s \char`\"{}\+Release JTAG on Go\char`\"{} on slave device. If breakpoints are set in slave RX ISR, master must stopped also to avoid overrunning slave RXBUF. \begin{DoxyVerb} Tested on MSP430FR4133
-----------------
/|\ | |
| | |
\end{DoxyVerb}
Master---+-\/$>$$\vert$\+RST $\vert$ $\vert$ $\vert$ $\vert$ P1.\+0$\vert$-\/$>$ Data Out (UCA0\+SIMO) $\vert$ $\vert$ $\vert$ P1.\+1$\vert$$<$-\/ Data In (UCA0\+SOMI) $\vert$ $\vert$ $\vert$ P1.\+2$\vert$-\/$>$ Serial Clock Out (UCA0\+CLK)
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 SPI peripheral
\item GPIO Port peripheral (for SPI pins)
\item UCA0\+SIMO
\item UCA0\+SOMI
\item UCA0\+CLK
\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 USCI\+\_\+\+A0\+\_\+\+VECTOR
\end{DoxyItemize}
Definition at line 74 of file eusci\+\_\+a\+\_\+spi\+\_\+ex1\+\_\+slave.\+c.

View File

@@ -0,0 +1,121 @@
\hypertarget{_m_s_p430_f_r2xx__4xx_2eusci__a__uart_2eusci__a__uart__ex1__loopback_advanced_8c}{}\doxysection{Resources/\+Software/msp430\+\_\+driverlib\+\_\+2\+\_\+91\+\_\+13\+\_\+01/examples/\+MSP430\+FR2xx\+\_\+4xx/eusci\+\_\+a\+\_\+uart/eusci\+\_\+a\+\_\+uart\+\_\+ex1\+\_\+loopback\+Advanced.c File Reference}
\label{_m_s_p430_f_r2xx__4xx_2eusci__a__uart_2eusci__a__uart__ex1__loopback_advanced_8c}\index{Resources/Software/msp430\_driverlib\_2\_91\_13\_01/examples/MSP430FR2xx\_4xx/eusci\_a\_uart/eusci\_a\_uart\_ex1\_loopbackAdvanced.c@{Resources/Software/msp430\_driverlib\_2\_91\_13\_01/examples/MSP430FR2xx\_4xx/eusci\_a\_uart/eusci\_a\_uart\_ex1\_loopbackAdvanced.c}}
{\ttfamily \#include \char`\"{}driverlib.\+h\char`\"{}}\newline
{\ttfamily \#include \char`\"{}Board.\+h\char`\"{}}\newline
\doxysubsection*{Functions}
\begin{DoxyCompactItemize}
\item
void \mbox{\hyperlink{_m_s_p430_f_r2xx__4xx_2eusci__a__uart_2eusci__a__uart__ex1__loopback_advanced_8c_a6288eba0f8e8ad3ab1544ad731eb7667}{main}} (void)
\item
void \mbox{\hyperlink{_m_s_p430_f_r2xx__4xx_2eusci__a__uart_2eusci__a__uart__ex1__loopback_advanced_8c_a06404fa75e5db173d0570112cbb0d39a}{EUSCI\+\_\+\+A0\+\_\+\+ISR}} (void)
\end{DoxyCompactItemize}
\doxysubsection*{Variables}
\begin{DoxyCompactItemize}
\item
uint16\+\_\+t \mbox{\hyperlink{_m_s_p430_f_r2xx__4xx_2eusci__a__uart_2eusci__a__uart__ex1__loopback_advanced_8c_a78f7a37dba921e0b0347b960fb40bc51}{i}}
\item
uint8\+\_\+t \mbox{\hyperlink{_m_s_p430_f_r2xx__4xx_2eusci__a__uart_2eusci__a__uart__ex1__loopback_advanced_8c_a597ef8ed788642728c57f66b3a21544f}{RXData}} = 0
\item
uint8\+\_\+t \mbox{\hyperlink{_m_s_p430_f_r2xx__4xx_2eusci__a__uart_2eusci__a__uart__ex1__loopback_advanced_8c_ae369b896b0180297d61764643f99ba25}{TXData}} = 0
\item
uint8\+\_\+t \mbox{\hyperlink{_m_s_p430_f_r2xx__4xx_2eusci__a__uart_2eusci__a__uart__ex1__loopback_advanced_8c_ad47d5b159b4c95a163edac9d1b659751}{check}} = 0
\end{DoxyCompactItemize}
\doxysubsection{Function Documentation}
\mbox{\Hypertarget{_m_s_p430_f_r2xx__4xx_2eusci__a__uart_2eusci__a__uart__ex1__loopback_advanced_8c_a06404fa75e5db173d0570112cbb0d39a}\label{_m_s_p430_f_r2xx__4xx_2eusci__a__uart_2eusci__a__uart__ex1__loopback_advanced_8c_a06404fa75e5db173d0570112cbb0d39a}}
\index{eusci\_a\_uart\_ex1\_loopbackAdvanced.c@{eusci\_a\_uart\_ex1\_loopbackAdvanced.c}!EUSCI\_A0\_ISR@{EUSCI\_A0\_ISR}}
\index{EUSCI\_A0\_ISR@{EUSCI\_A0\_ISR}!eusci\_a\_uart\_ex1\_loopbackAdvanced.c@{eusci\_a\_uart\_ex1\_loopbackAdvanced.c}}
\doxysubsubsection{\texorpdfstring{EUSCI\_A0\_ISR()}{EUSCI\_A0\_ISR()}}
{\footnotesize\ttfamily void EUSCI\+\_\+\+A0\+\_\+\+ISR (\begin{DoxyParamCaption}\item[{void}]{ }\end{DoxyParamCaption})}
Definition at line 149 of file eusci\+\_\+a\+\_\+uart\+\_\+ex1\+\_\+loopback\+Advanced.\+c.
References check, RXData, and TXData.
\mbox{\Hypertarget{_m_s_p430_f_r2xx__4xx_2eusci__a__uart_2eusci__a__uart__ex1__loopback_advanced_8c_a6288eba0f8e8ad3ab1544ad731eb7667}\label{_m_s_p430_f_r2xx__4xx_2eusci__a__uart_2eusci__a__uart__ex1__loopback_advanced_8c_a6288eba0f8e8ad3ab1544ad731eb7667}}
\index{eusci\_a\_uart\_ex1\_loopbackAdvanced.c@{eusci\_a\_uart\_ex1\_loopbackAdvanced.c}!main@{main}}
\index{main@{main}!eusci\_a\_uart\_ex1\_loopbackAdvanced.c@{eusci\_a\_uart\_ex1\_loopbackAdvanced.c}}
\doxysubsubsection{\texorpdfstring{main()}{main()}}
{\footnotesize\ttfamily void main (\begin{DoxyParamCaption}\item[{void}]{ }\end{DoxyParamCaption})}
Definition at line 69 of file eusci\+\_\+a\+\_\+uart\+\_\+ex1\+\_\+loopback\+Advanced.\+c.
References check, param, STATUS\+\_\+\+FAIL, and TXData.
\doxysubsection{Variable Documentation}
\mbox{\Hypertarget{_m_s_p430_f_r2xx__4xx_2eusci__a__uart_2eusci__a__uart__ex1__loopback_advanced_8c_ad47d5b159b4c95a163edac9d1b659751}\label{_m_s_p430_f_r2xx__4xx_2eusci__a__uart_2eusci__a__uart__ex1__loopback_advanced_8c_ad47d5b159b4c95a163edac9d1b659751}}
\index{eusci\_a\_uart\_ex1\_loopbackAdvanced.c@{eusci\_a\_uart\_ex1\_loopbackAdvanced.c}!check@{check}}
\index{check@{check}!eusci\_a\_uart\_ex1\_loopbackAdvanced.c@{eusci\_a\_uart\_ex1\_loopbackAdvanced.c}}
\doxysubsubsection{\texorpdfstring{check}{check}}
{\footnotesize\ttfamily uint8\+\_\+t check = 0}
Definition at line 67 of file eusci\+\_\+a\+\_\+uart\+\_\+ex1\+\_\+loopback\+Advanced.\+c.
\mbox{\Hypertarget{_m_s_p430_f_r2xx__4xx_2eusci__a__uart_2eusci__a__uart__ex1__loopback_advanced_8c_a78f7a37dba921e0b0347b960fb40bc51}\label{_m_s_p430_f_r2xx__4xx_2eusci__a__uart_2eusci__a__uart__ex1__loopback_advanced_8c_a78f7a37dba921e0b0347b960fb40bc51}}
\index{eusci\_a\_uart\_ex1\_loopbackAdvanced.c@{eusci\_a\_uart\_ex1\_loopbackAdvanced.c}!i@{i}}
\index{i@{i}!eusci\_a\_uart\_ex1\_loopbackAdvanced.c@{eusci\_a\_uart\_ex1\_loopbackAdvanced.c}}
\doxysubsubsection{\texorpdfstring{i}{i}}
{\footnotesize\ttfamily uint16\+\_\+t i}
EUSCI\+\_\+\+A0 External Loopback test using EUSCI\+\_\+\+A\+\_\+\+UART\+\_\+init API
Description\+: This demo connects TX to RX of the MSP430 UART The example code shows proper initialization of registers and interrupts to receive and transmit data.
SMCLK = MCLK = BRCLK = DCOCLKDIV = $\sim$1\+MHz, ACLK = 32.\+768k\+Hz
\begin{DoxyVerb} MSP430FR2xx_4xx Board
-----------------
RST -| UCA0TXD|----|
| | |
| | |
| UCA0RXD|----|
| |
\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 UART peripheral
\item GPIO Port peripheral (for UART pins)
\item UCA0\+TXD
\item UCA0\+RXD
\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 USCI\+\_\+\+A0\+\_\+\+VECTOR.
\end{DoxyItemize}
Definition at line 65 of file eusci\+\_\+a\+\_\+uart\+\_\+ex1\+\_\+loopback\+Advanced.\+c.
\mbox{\Hypertarget{_m_s_p430_f_r2xx__4xx_2eusci__a__uart_2eusci__a__uart__ex1__loopback_advanced_8c_a597ef8ed788642728c57f66b3a21544f}\label{_m_s_p430_f_r2xx__4xx_2eusci__a__uart_2eusci__a__uart__ex1__loopback_advanced_8c_a597ef8ed788642728c57f66b3a21544f}}
\index{eusci\_a\_uart\_ex1\_loopbackAdvanced.c@{eusci\_a\_uart\_ex1\_loopbackAdvanced.c}!RXData@{RXData}}
\index{RXData@{RXData}!eusci\_a\_uart\_ex1\_loopbackAdvanced.c@{eusci\_a\_uart\_ex1\_loopbackAdvanced.c}}
\doxysubsubsection{\texorpdfstring{RXData}{RXData}}
{\footnotesize\ttfamily uint8\+\_\+t RXData = 0}
Definition at line 66 of file eusci\+\_\+a\+\_\+uart\+\_\+ex1\+\_\+loopback\+Advanced.\+c.
\mbox{\Hypertarget{_m_s_p430_f_r2xx__4xx_2eusci__a__uart_2eusci__a__uart__ex1__loopback_advanced_8c_ae369b896b0180297d61764643f99ba25}\label{_m_s_p430_f_r2xx__4xx_2eusci__a__uart_2eusci__a__uart__ex1__loopback_advanced_8c_ae369b896b0180297d61764643f99ba25}}
\index{eusci\_a\_uart\_ex1\_loopbackAdvanced.c@{eusci\_a\_uart\_ex1\_loopbackAdvanced.c}!TXData@{TXData}}
\index{TXData@{TXData}!eusci\_a\_uart\_ex1\_loopbackAdvanced.c@{eusci\_a\_uart\_ex1\_loopbackAdvanced.c}}
\doxysubsubsection{\texorpdfstring{TXData}{TXData}}
{\footnotesize\ttfamily uint8\+\_\+t TXData = 0}
Definition at line 66 of file eusci\+\_\+a\+\_\+uart\+\_\+ex1\+\_\+loopback\+Advanced.\+c.

View File

@@ -0,0 +1,137 @@
\hypertarget{_m_s_p430_f_r2xx__4xx_2eusci__b__i2c_2eusci__b__i2c__ex1__master_rx_multiple_8c}{}\doxysection{Resources/\+Software/msp430\+\_\+driverlib\+\_\+2\+\_\+91\+\_\+13\+\_\+01/examples/\+MSP430\+FR2xx\+\_\+4xx/eusci\+\_\+b\+\_\+i2c/eusci\+\_\+b\+\_\+i2c\+\_\+ex1\+\_\+master\+Rx\+Multiple.c File Reference}
\label{_m_s_p430_f_r2xx__4xx_2eusci__b__i2c_2eusci__b__i2c__ex1__master_rx_multiple_8c}\index{Resources/Software/msp430\_driverlib\_2\_91\_13\_01/examples/MSP430FR2xx\_4xx/eusci\_b\_i2c/eusci\_b\_i2c\_ex1\_masterRxMultiple.c@{Resources/Software/msp430\_driverlib\_2\_91\_13\_01/examples/MSP430FR2xx\_4xx/eusci\_b\_i2c/eusci\_b\_i2c\_ex1\_masterRxMultiple.c}}
{\ttfamily \#include \char`\"{}driverlib.\+h\char`\"{}}\newline
\doxysubsection*{Macros}
\begin{DoxyCompactItemize}
\item
\#define \mbox{\hyperlink{_m_s_p430_f_r2xx__4xx_2eusci__b__i2c_2eusci__b__i2c__ex1__master_rx_multiple_8c_ae2f0ff6faf548539a21b93a034e278e8}{SLAVE\+\_\+\+ADDRESS}}~0x48
\item
\#define \mbox{\hyperlink{_m_s_p430_f_r2xx__4xx_2eusci__b__i2c_2eusci__b__i2c__ex1__master_rx_multiple_8c_a70033793a4008a84a5022c8e8467c71b}{RXCOUNT}}~0x05
\item
\#define \mbox{\hyperlink{_m_s_p430_f_r2xx__4xx_2eusci__b__i2c_2eusci__b__i2c__ex1__master_rx_multiple_8c_abb16bfdd33b9d2ea4f8d121f54e3e6b8}{CS\+\_\+\+SMCLK\+\_\+\+DESIRED\+\_\+\+FREQUENCY\+\_\+\+IN\+\_\+\+KHZ}}~1000
\item
\#define \mbox{\hyperlink{_m_s_p430_f_r2xx__4xx_2eusci__b__i2c_2eusci__b__i2c__ex1__master_rx_multiple_8c_aadaa11d9acd1cd658f32638079eafed6}{CS\+\_\+\+SMCLK\+\_\+\+FLLREF\+\_\+\+RATIO}}~30
\end{DoxyCompactItemize}
\doxysubsection*{Functions}
\begin{DoxyCompactItemize}
\item
void \mbox{\hyperlink{_m_s_p430_f_r2xx__4xx_2eusci__b__i2c_2eusci__b__i2c__ex1__master_rx_multiple_8c_a6288eba0f8e8ad3ab1544ad731eb7667}{main}} (void)
\item
void \mbox{\hyperlink{_m_s_p430_f_r2xx__4xx_2eusci__b__i2c_2eusci__b__i2c__ex1__master_rx_multiple_8c_a600430c0372d4ed0b67dfd6cb63d4560}{USCIB0\+\_\+\+ISR}} (void)
\end{DoxyCompactItemize}
\doxysubsection*{Variables}
\begin{DoxyCompactItemize}
\item
uint8\+\_\+t \mbox{\hyperlink{_m_s_p430_f_r2xx__4xx_2eusci__b__i2c_2eusci__b__i2c__ex1__master_rx_multiple_8c_a597ef8ed788642728c57f66b3a21544f}{RXData}}
\end{DoxyCompactItemize}
\doxysubsection{Macro Definition Documentation}
\mbox{\Hypertarget{_m_s_p430_f_r2xx__4xx_2eusci__b__i2c_2eusci__b__i2c__ex1__master_rx_multiple_8c_abb16bfdd33b9d2ea4f8d121f54e3e6b8}\label{_m_s_p430_f_r2xx__4xx_2eusci__b__i2c_2eusci__b__i2c__ex1__master_rx_multiple_8c_abb16bfdd33b9d2ea4f8d121f54e3e6b8}}
\index{eusci\_b\_i2c\_ex1\_masterRxMultiple.c@{eusci\_b\_i2c\_ex1\_masterRxMultiple.c}!CS\_SMCLK\_DESIRED\_FREQUENCY\_IN\_KHZ@{CS\_SMCLK\_DESIRED\_FREQUENCY\_IN\_KHZ}}
\index{CS\_SMCLK\_DESIRED\_FREQUENCY\_IN\_KHZ@{CS\_SMCLK\_DESIRED\_FREQUENCY\_IN\_KHZ}!eusci\_b\_i2c\_ex1\_masterRxMultiple.c@{eusci\_b\_i2c\_ex1\_masterRxMultiple.c}}
\doxysubsubsection{\texorpdfstring{CS\_SMCLK\_DESIRED\_FREQUENCY\_IN\_KHZ}{CS\_SMCLK\_DESIRED\_FREQUENCY\_IN\_KHZ}}
{\footnotesize\ttfamily \#define CS\+\_\+\+SMCLK\+\_\+\+DESIRED\+\_\+\+FREQUENCY\+\_\+\+IN\+\_\+\+KHZ~1000}
Definition at line 91 of file eusci\+\_\+b\+\_\+i2c\+\_\+ex1\+\_\+master\+Rx\+Multiple.\+c.
\mbox{\Hypertarget{_m_s_p430_f_r2xx__4xx_2eusci__b__i2c_2eusci__b__i2c__ex1__master_rx_multiple_8c_aadaa11d9acd1cd658f32638079eafed6}\label{_m_s_p430_f_r2xx__4xx_2eusci__b__i2c_2eusci__b__i2c__ex1__master_rx_multiple_8c_aadaa11d9acd1cd658f32638079eafed6}}
\index{eusci\_b\_i2c\_ex1\_masterRxMultiple.c@{eusci\_b\_i2c\_ex1\_masterRxMultiple.c}!CS\_SMCLK\_FLLREF\_RATIO@{CS\_SMCLK\_FLLREF\_RATIO}}
\index{CS\_SMCLK\_FLLREF\_RATIO@{CS\_SMCLK\_FLLREF\_RATIO}!eusci\_b\_i2c\_ex1\_masterRxMultiple.c@{eusci\_b\_i2c\_ex1\_masterRxMultiple.c}}
\doxysubsubsection{\texorpdfstring{CS\_SMCLK\_FLLREF\_RATIO}{CS\_SMCLK\_FLLREF\_RATIO}}
{\footnotesize\ttfamily \#define CS\+\_\+\+SMCLK\+\_\+\+FLLREF\+\_\+\+RATIO~30}
Definition at line 98 of file eusci\+\_\+b\+\_\+i2c\+\_\+ex1\+\_\+master\+Rx\+Multiple.\+c.
\mbox{\Hypertarget{_m_s_p430_f_r2xx__4xx_2eusci__b__i2c_2eusci__b__i2c__ex1__master_rx_multiple_8c_a70033793a4008a84a5022c8e8467c71b}\label{_m_s_p430_f_r2xx__4xx_2eusci__b__i2c_2eusci__b__i2c__ex1__master_rx_multiple_8c_a70033793a4008a84a5022c8e8467c71b}}
\index{eusci\_b\_i2c\_ex1\_masterRxMultiple.c@{eusci\_b\_i2c\_ex1\_masterRxMultiple.c}!RXCOUNT@{RXCOUNT}}
\index{RXCOUNT@{RXCOUNT}!eusci\_b\_i2c\_ex1\_masterRxMultiple.c@{eusci\_b\_i2c\_ex1\_masterRxMultiple.c}}
\doxysubsubsection{\texorpdfstring{RXCOUNT}{RXCOUNT}}
{\footnotesize\ttfamily \#define RXCOUNT~0x05}
Definition at line 84 of file eusci\+\_\+b\+\_\+i2c\+\_\+ex1\+\_\+master\+Rx\+Multiple.\+c.
\mbox{\Hypertarget{_m_s_p430_f_r2xx__4xx_2eusci__b__i2c_2eusci__b__i2c__ex1__master_rx_multiple_8c_ae2f0ff6faf548539a21b93a034e278e8}\label{_m_s_p430_f_r2xx__4xx_2eusci__b__i2c_2eusci__b__i2c__ex1__master_rx_multiple_8c_ae2f0ff6faf548539a21b93a034e278e8}}
\index{eusci\_b\_i2c\_ex1\_masterRxMultiple.c@{eusci\_b\_i2c\_ex1\_masterRxMultiple.c}!SLAVE\_ADDRESS@{SLAVE\_ADDRESS}}
\index{SLAVE\_ADDRESS@{SLAVE\_ADDRESS}!eusci\_b\_i2c\_ex1\_masterRxMultiple.c@{eusci\_b\_i2c\_ex1\_masterRxMultiple.c}}
\doxysubsubsection{\texorpdfstring{SLAVE\_ADDRESS}{SLAVE\_ADDRESS}}
{\footnotesize\ttfamily \#define SLAVE\+\_\+\+ADDRESS~0x48}
MSP430\+FR4133 Demo -\/ USCI\+\_\+\+B0 I2C Master RX multiple bytes from MSP430 Slave
Description\+: This demo connects two MSP430\textquotesingle{}s via the I2C bus. The master reads 5 bytes from the slave. This is the MASTER CODE. The data from the slave transmitter begins at 0 and increments with each transfer. The USCI\+\_\+\+B0 RX interrupt is used to know when new data has been received. ACLK = n/a, MCLK = SMCLK = BRCLK = DCO = $\sim$1\+MHz \begin{DoxyVerb} /|\ /|\
MSP430FR4133 10k 10k MSP430FR4133
slave | | master
----------------- | | -----------------
-|XIN P5.2/UCB0SDA|<-|----+->|P5.2/UCB0SDA XIN|-
| | | | | 32kHz
-|XOUT | | | XOUT|-
| P5.3/UCB0SCL|<-+------>|P5.3/UCB0SCL |
| | | P1.0|--> LED
\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 I2C peripheral
\item GPIO Port peripheral (for I2C pins)
\item SCL2
\item SDA
\item CS
\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 USCI\+\_\+\+B0\+\_\+\+VECTOR
\end{DoxyItemize}
Definition at line 77 of file eusci\+\_\+b\+\_\+i2c\+\_\+ex1\+\_\+master\+Rx\+Multiple.\+c.
\doxysubsection{Function Documentation}
\mbox{\Hypertarget{_m_s_p430_f_r2xx__4xx_2eusci__b__i2c_2eusci__b__i2c__ex1__master_rx_multiple_8c_a6288eba0f8e8ad3ab1544ad731eb7667}\label{_m_s_p430_f_r2xx__4xx_2eusci__b__i2c_2eusci__b__i2c__ex1__master_rx_multiple_8c_a6288eba0f8e8ad3ab1544ad731eb7667}}
\index{eusci\_b\_i2c\_ex1\_masterRxMultiple.c@{eusci\_b\_i2c\_ex1\_masterRxMultiple.c}!main@{main}}
\index{main@{main}!eusci\_b\_i2c\_ex1\_masterRxMultiple.c@{eusci\_b\_i2c\_ex1\_masterRxMultiple.c}}
\doxysubsubsection{\texorpdfstring{main()}{main()}}
{\footnotesize\ttfamily void main (\begin{DoxyParamCaption}\item[{void}]{ }\end{DoxyParamCaption})}
Definition at line 101 of file eusci\+\_\+b\+\_\+i2c\+\_\+ex1\+\_\+master\+Rx\+Multiple.\+c.
References \+\_\+\+\_\+delay\+\_\+cycles(), CS\+\_\+\+SMCLK\+\_\+\+DESIRED\+\_\+\+FREQUENCY\+\_\+\+IN\+\_\+\+KHZ, CS\+\_\+\+SMCLK\+\_\+\+FLLREF\+\_\+\+RATIO, param, RXCOUNT, and SLAVE\+\_\+\+ADDRESS.
\mbox{\Hypertarget{_m_s_p430_f_r2xx__4xx_2eusci__b__i2c_2eusci__b__i2c__ex1__master_rx_multiple_8c_a600430c0372d4ed0b67dfd6cb63d4560}\label{_m_s_p430_f_r2xx__4xx_2eusci__b__i2c_2eusci__b__i2c__ex1__master_rx_multiple_8c_a600430c0372d4ed0b67dfd6cb63d4560}}
\index{eusci\_b\_i2c\_ex1\_masterRxMultiple.c@{eusci\_b\_i2c\_ex1\_masterRxMultiple.c}!USCIB0\_ISR@{USCIB0\_ISR}}
\index{USCIB0\_ISR@{USCIB0\_ISR}!eusci\_b\_i2c\_ex1\_masterRxMultiple.c@{eusci\_b\_i2c\_ex1\_masterRxMultiple.c}}
\doxysubsubsection{\texorpdfstring{USCIB0\_ISR()}{USCIB0\_ISR()}}
{\footnotesize\ttfamily void USCIB0\+\_\+\+ISR (\begin{DoxyParamCaption}\item[{void}]{ }\end{DoxyParamCaption})}
Definition at line 214 of file eusci\+\_\+b\+\_\+i2c\+\_\+ex1\+\_\+master\+Rx\+Multiple.\+c.
References \+\_\+\+\_\+bic\+\_\+\+SR\+\_\+register\+\_\+on\+\_\+exit(), RXCOUNT, and RXData.
\doxysubsection{Variable Documentation}
\mbox{\Hypertarget{_m_s_p430_f_r2xx__4xx_2eusci__b__i2c_2eusci__b__i2c__ex1__master_rx_multiple_8c_a597ef8ed788642728c57f66b3a21544f}\label{_m_s_p430_f_r2xx__4xx_2eusci__b__i2c_2eusci__b__i2c__ex1__master_rx_multiple_8c_a597ef8ed788642728c57f66b3a21544f}}
\index{eusci\_b\_i2c\_ex1\_masterRxMultiple.c@{eusci\_b\_i2c\_ex1\_masterRxMultiple.c}!RXData@{RXData}}
\index{RXData@{RXData}!eusci\_b\_i2c\_ex1\_masterRxMultiple.c@{eusci\_b\_i2c\_ex1\_masterRxMultiple.c}}
\doxysubsubsection{\texorpdfstring{RXData}{RXData}}
{\footnotesize\ttfamily uint8\+\_\+t RXData}
Definition at line 100 of file eusci\+\_\+b\+\_\+i2c\+\_\+ex1\+\_\+master\+Rx\+Multiple.\+c.

View File

@@ -0,0 +1,92 @@
\hypertarget{_m_s_p430_f_r2xx__4xx_2eusci__b__i2c_2eusci__b__i2c__ex1__slave_tx_multiple_8c}{}\doxysection{Resources/\+Software/msp430\+\_\+driverlib\+\_\+2\+\_\+91\+\_\+13\+\_\+01/examples/\+MSP430\+FR2xx\+\_\+4xx/eusci\+\_\+b\+\_\+i2c/eusci\+\_\+b\+\_\+i2c\+\_\+ex1\+\_\+slave\+Tx\+Multiple.c File Reference}
\label{_m_s_p430_f_r2xx__4xx_2eusci__b__i2c_2eusci__b__i2c__ex1__slave_tx_multiple_8c}\index{Resources/Software/msp430\_driverlib\_2\_91\_13\_01/examples/MSP430FR2xx\_4xx/eusci\_b\_i2c/eusci\_b\_i2c\_ex1\_slaveTxMultiple.c@{Resources/Software/msp430\_driverlib\_2\_91\_13\_01/examples/MSP430FR2xx\_4xx/eusci\_b\_i2c/eusci\_b\_i2c\_ex1\_slaveTxMultiple.c}}
{\ttfamily \#include \char`\"{}driverlib.\+h\char`\"{}}\newline
\doxysubsection*{Macros}
\begin{DoxyCompactItemize}
\item
\#define \mbox{\hyperlink{_m_s_p430_f_r2xx__4xx_2eusci__b__i2c_2eusci__b__i2c__ex1__slave_tx_multiple_8c_ae2f0ff6faf548539a21b93a034e278e8}{SLAVE\+\_\+\+ADDRESS}}~0x48
\end{DoxyCompactItemize}
\doxysubsection*{Functions}
\begin{DoxyCompactItemize}
\item
void \mbox{\hyperlink{_m_s_p430_f_r2xx__4xx_2eusci__b__i2c_2eusci__b__i2c__ex1__slave_tx_multiple_8c_a6288eba0f8e8ad3ab1544ad731eb7667}{main}} (void)
\item
void \mbox{\hyperlink{_m_s_p430_f_r2xx__4xx_2eusci__b__i2c_2eusci__b__i2c__ex1__slave_tx_multiple_8c_a600430c0372d4ed0b67dfd6cb63d4560}{USCIB0\+\_\+\+ISR}} (void)
\end{DoxyCompactItemize}
\doxysubsection*{Variables}
\begin{DoxyCompactItemize}
\item
uint8\+\_\+t \mbox{\hyperlink{_m_s_p430_f_r2xx__4xx_2eusci__b__i2c_2eusci__b__i2c__ex1__slave_tx_multiple_8c_ae369b896b0180297d61764643f99ba25}{TXData}} = 0
\end{DoxyCompactItemize}
\doxysubsection{Macro Definition Documentation}
\mbox{\Hypertarget{_m_s_p430_f_r2xx__4xx_2eusci__b__i2c_2eusci__b__i2c__ex1__slave_tx_multiple_8c_ae2f0ff6faf548539a21b93a034e278e8}\label{_m_s_p430_f_r2xx__4xx_2eusci__b__i2c_2eusci__b__i2c__ex1__slave_tx_multiple_8c_ae2f0ff6faf548539a21b93a034e278e8}}
\index{eusci\_b\_i2c\_ex1\_slaveTxMultiple.c@{eusci\_b\_i2c\_ex1\_slaveTxMultiple.c}!SLAVE\_ADDRESS@{SLAVE\_ADDRESS}}
\index{SLAVE\_ADDRESS@{SLAVE\_ADDRESS}!eusci\_b\_i2c\_ex1\_slaveTxMultiple.c@{eusci\_b\_i2c\_ex1\_slaveTxMultiple.c}}
\doxysubsubsection{\texorpdfstring{SLAVE\_ADDRESS}{SLAVE\_ADDRESS}}
{\footnotesize\ttfamily \#define SLAVE\+\_\+\+ADDRESS~0x48}
EUSCI\+\_\+\+B0 I2C Slave TX multiple bytes to MSP430 Master
Description\+: This demo connects two MSP430\textquotesingle{}s via the I2C bus. The master reads from the slave. This is the SLAVE code. The TX data begins at 0 and is incremented each time it is sent. A stop condition is used as a trigger to initialize the outgoing data. The USCI\+\_\+\+B0 TX interrupt is used to know when to TX. Tested on MSP430\+FR4133 /$\vert$\textbackslash{} /$\vert$\textbackslash{} MSP430\+FR4133 10k 10k MSP430\+FR4133 slave $\vert$ $\vert$ master -\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/--- $\vert$ $\vert$ -\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/--- -\/$\vert$\+XIN P5.\+2/\+UCB0\+SDA$\vert$$<$-\/$\vert$-\/---+-\/$>$$\vert$\+P5.2/\+UCB0\+SDA XIN$\vert$-\/ $\vert$ $\vert$ $\vert$ $\vert$ $\vert$ 32k\+Hz -\/$\vert$\+XOUT $\vert$ $\vert$ $\vert$ XOUT$\vert$-\/ $\vert$ P5.\+3/\+UCB0\+SCL$\vert$$<$-\/+-\/-\/-\/---$>$$\vert$\+P5.3/\+UCB0\+SCL $\vert$ $\vert$ $\vert$ $\vert$ P1.\+0$\vert$-\/-\/$>$ LED
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 I2C peripheral
\item GPIO Port peripheral (for I2C pins)
\item SCL2
\item SDA
\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 USCI\+\_\+\+B0\+\_\+\+VECTOR.
\end{DoxyItemize}
Definition at line 80 of file eusci\+\_\+b\+\_\+i2c\+\_\+ex1\+\_\+slave\+Tx\+Multiple.\+c.
\doxysubsection{Function Documentation}
\mbox{\Hypertarget{_m_s_p430_f_r2xx__4xx_2eusci__b__i2c_2eusci__b__i2c__ex1__slave_tx_multiple_8c_a6288eba0f8e8ad3ab1544ad731eb7667}\label{_m_s_p430_f_r2xx__4xx_2eusci__b__i2c_2eusci__b__i2c__ex1__slave_tx_multiple_8c_a6288eba0f8e8ad3ab1544ad731eb7667}}
\index{eusci\_b\_i2c\_ex1\_slaveTxMultiple.c@{eusci\_b\_i2c\_ex1\_slaveTxMultiple.c}!main@{main}}
\index{main@{main}!eusci\_b\_i2c\_ex1\_slaveTxMultiple.c@{eusci\_b\_i2c\_ex1\_slaveTxMultiple.c}}
\doxysubsubsection{\texorpdfstring{main()}{main()}}
{\footnotesize\ttfamily void main (\begin{DoxyParamCaption}\item[{void}]{ }\end{DoxyParamCaption})}
Definition at line 84 of file eusci\+\_\+b\+\_\+i2c\+\_\+ex1\+\_\+slave\+Tx\+Multiple.\+c.
References \+\_\+\+\_\+no\+\_\+operation(), and param.
\mbox{\Hypertarget{_m_s_p430_f_r2xx__4xx_2eusci__b__i2c_2eusci__b__i2c__ex1__slave_tx_multiple_8c_a600430c0372d4ed0b67dfd6cb63d4560}\label{_m_s_p430_f_r2xx__4xx_2eusci__b__i2c_2eusci__b__i2c__ex1__slave_tx_multiple_8c_a600430c0372d4ed0b67dfd6cb63d4560}}
\index{eusci\_b\_i2c\_ex1\_slaveTxMultiple.c@{eusci\_b\_i2c\_ex1\_slaveTxMultiple.c}!USCIB0\_ISR@{USCIB0\_ISR}}
\index{USCIB0\_ISR@{USCIB0\_ISR}!eusci\_b\_i2c\_ex1\_slaveTxMultiple.c@{eusci\_b\_i2c\_ex1\_slaveTxMultiple.c}}
\doxysubsubsection{\texorpdfstring{USCIB0\_ISR()}{USCIB0\_ISR()}}
{\footnotesize\ttfamily void USCIB0\+\_\+\+ISR (\begin{DoxyParamCaption}\item[{void}]{ }\end{DoxyParamCaption})}
Definition at line 134 of file eusci\+\_\+b\+\_\+i2c\+\_\+ex1\+\_\+slave\+Tx\+Multiple.\+c.
References TXData.
\doxysubsection{Variable Documentation}
\mbox{\Hypertarget{_m_s_p430_f_r2xx__4xx_2eusci__b__i2c_2eusci__b__i2c__ex1__slave_tx_multiple_8c_ae369b896b0180297d61764643f99ba25}\label{_m_s_p430_f_r2xx__4xx_2eusci__b__i2c_2eusci__b__i2c__ex1__slave_tx_multiple_8c_ae369b896b0180297d61764643f99ba25}}
\index{eusci\_b\_i2c\_ex1\_slaveTxMultiple.c@{eusci\_b\_i2c\_ex1\_slaveTxMultiple.c}!TXData@{TXData}}
\index{TXData@{TXData}!eusci\_b\_i2c\_ex1\_slaveTxMultiple.c@{eusci\_b\_i2c\_ex1\_slaveTxMultiple.c}}
\doxysubsubsection{\texorpdfstring{TXData}{TXData}}
{\footnotesize\ttfamily uint8\+\_\+t TXData = 0}
Definition at line 82 of file eusci\+\_\+b\+\_\+i2c\+\_\+ex1\+\_\+slave\+Tx\+Multiple.\+c.

View File

@@ -0,0 +1,109 @@
\hypertarget{_m_s_p430_f_r2xx__4xx_2eusci__b__i2c_2eusci__b__i2c__ex2__master_rx_single_8c}{}\doxysection{Resources/\+Software/msp430\+\_\+driverlib\+\_\+2\+\_\+91\+\_\+13\+\_\+01/examples/\+MSP430\+FR2xx\+\_\+4xx/eusci\+\_\+b\+\_\+i2c/eusci\+\_\+b\+\_\+i2c\+\_\+ex2\+\_\+master\+Rx\+Single.c File Reference}
\label{_m_s_p430_f_r2xx__4xx_2eusci__b__i2c_2eusci__b__i2c__ex2__master_rx_single_8c}\index{Resources/Software/msp430\_driverlib\_2\_91\_13\_01/examples/MSP430FR2xx\_4xx/eusci\_b\_i2c/eusci\_b\_i2c\_ex2\_masterRxSingle.c@{Resources/Software/msp430\_driverlib\_2\_91\_13\_01/examples/MSP430FR2xx\_4xx/eusci\_b\_i2c/eusci\_b\_i2c\_ex2\_masterRxSingle.c}}
{\ttfamily \#include \char`\"{}driverlib.\+h\char`\"{}}\newline
\doxysubsection*{Macros}
\begin{DoxyCompactItemize}
\item
\#define \mbox{\hyperlink{_m_s_p430_f_r2xx__4xx_2eusci__b__i2c_2eusci__b__i2c__ex2__master_rx_single_8c_ae2f0ff6faf548539a21b93a034e278e8}{SLAVE\+\_\+\+ADDRESS}}~0x48
\item
\#define \mbox{\hyperlink{_m_s_p430_f_r2xx__4xx_2eusci__b__i2c_2eusci__b__i2c__ex2__master_rx_single_8c_abb16bfdd33b9d2ea4f8d121f54e3e6b8}{CS\+\_\+\+SMCLK\+\_\+\+DESIRED\+\_\+\+FREQUENCY\+\_\+\+IN\+\_\+\+KHZ}}~1000
\item
\#define \mbox{\hyperlink{_m_s_p430_f_r2xx__4xx_2eusci__b__i2c_2eusci__b__i2c__ex2__master_rx_single_8c_aadaa11d9acd1cd658f32638079eafed6}{CS\+\_\+\+SMCLK\+\_\+\+FLLREF\+\_\+\+RATIO}}~30
\end{DoxyCompactItemize}
\doxysubsection*{Functions}
\begin{DoxyCompactItemize}
\item
void \mbox{\hyperlink{_m_s_p430_f_r2xx__4xx_2eusci__b__i2c_2eusci__b__i2c__ex2__master_rx_single_8c_a6288eba0f8e8ad3ab1544ad731eb7667}{main}} (void)
\end{DoxyCompactItemize}
\doxysubsection*{Variables}
\begin{DoxyCompactItemize}
\item
uint8\+\_\+t \mbox{\hyperlink{_m_s_p430_f_r2xx__4xx_2eusci__b__i2c_2eusci__b__i2c__ex2__master_rx_single_8c_a597ef8ed788642728c57f66b3a21544f}{RXData}}
\end{DoxyCompactItemize}
\doxysubsection{Macro Definition Documentation}
\mbox{\Hypertarget{_m_s_p430_f_r2xx__4xx_2eusci__b__i2c_2eusci__b__i2c__ex2__master_rx_single_8c_abb16bfdd33b9d2ea4f8d121f54e3e6b8}\label{_m_s_p430_f_r2xx__4xx_2eusci__b__i2c_2eusci__b__i2c__ex2__master_rx_single_8c_abb16bfdd33b9d2ea4f8d121f54e3e6b8}}
\index{eusci\_b\_i2c\_ex2\_masterRxSingle.c@{eusci\_b\_i2c\_ex2\_masterRxSingle.c}!CS\_SMCLK\_DESIRED\_FREQUENCY\_IN\_KHZ@{CS\_SMCLK\_DESIRED\_FREQUENCY\_IN\_KHZ}}
\index{CS\_SMCLK\_DESIRED\_FREQUENCY\_IN\_KHZ@{CS\_SMCLK\_DESIRED\_FREQUENCY\_IN\_KHZ}!eusci\_b\_i2c\_ex2\_masterRxSingle.c@{eusci\_b\_i2c\_ex2\_masterRxSingle.c}}
\doxysubsubsection{\texorpdfstring{CS\_SMCLK\_DESIRED\_FREQUENCY\_IN\_KHZ}{CS\_SMCLK\_DESIRED\_FREQUENCY\_IN\_KHZ}}
{\footnotesize\ttfamily \#define CS\+\_\+\+SMCLK\+\_\+\+DESIRED\+\_\+\+FREQUENCY\+\_\+\+IN\+\_\+\+KHZ~1000}
Definition at line 89 of file eusci\+\_\+b\+\_\+i2c\+\_\+ex2\+\_\+master\+Rx\+Single.\+c.
\mbox{\Hypertarget{_m_s_p430_f_r2xx__4xx_2eusci__b__i2c_2eusci__b__i2c__ex2__master_rx_single_8c_aadaa11d9acd1cd658f32638079eafed6}\label{_m_s_p430_f_r2xx__4xx_2eusci__b__i2c_2eusci__b__i2c__ex2__master_rx_single_8c_aadaa11d9acd1cd658f32638079eafed6}}
\index{eusci\_b\_i2c\_ex2\_masterRxSingle.c@{eusci\_b\_i2c\_ex2\_masterRxSingle.c}!CS\_SMCLK\_FLLREF\_RATIO@{CS\_SMCLK\_FLLREF\_RATIO}}
\index{CS\_SMCLK\_FLLREF\_RATIO@{CS\_SMCLK\_FLLREF\_RATIO}!eusci\_b\_i2c\_ex2\_masterRxSingle.c@{eusci\_b\_i2c\_ex2\_masterRxSingle.c}}
\doxysubsubsection{\texorpdfstring{CS\_SMCLK\_FLLREF\_RATIO}{CS\_SMCLK\_FLLREF\_RATIO}}
{\footnotesize\ttfamily \#define CS\+\_\+\+SMCLK\+\_\+\+FLLREF\+\_\+\+RATIO~30}
Definition at line 96 of file eusci\+\_\+b\+\_\+i2c\+\_\+ex2\+\_\+master\+Rx\+Single.\+c.
\mbox{\Hypertarget{_m_s_p430_f_r2xx__4xx_2eusci__b__i2c_2eusci__b__i2c__ex2__master_rx_single_8c_ae2f0ff6faf548539a21b93a034e278e8}\label{_m_s_p430_f_r2xx__4xx_2eusci__b__i2c_2eusci__b__i2c__ex2__master_rx_single_8c_ae2f0ff6faf548539a21b93a034e278e8}}
\index{eusci\_b\_i2c\_ex2\_masterRxSingle.c@{eusci\_b\_i2c\_ex2\_masterRxSingle.c}!SLAVE\_ADDRESS@{SLAVE\_ADDRESS}}
\index{SLAVE\_ADDRESS@{SLAVE\_ADDRESS}!eusci\_b\_i2c\_ex2\_masterRxSingle.c@{eusci\_b\_i2c\_ex2\_masterRxSingle.c}}
\doxysubsubsection{\texorpdfstring{SLAVE\_ADDRESS}{SLAVE\_ADDRESS}}
{\footnotesize\ttfamily \#define SLAVE\+\_\+\+ADDRESS~0x48}
This example shows how to configure the I2C module as a master for single byte reception in interrupt driven mode. The address of the slave module that the master is communicating with also set in this example.
Description\+: This demo connects two MSP430\textquotesingle{}s via the I2C bus. The master reads from the slave. This is the MASTER CODE. The data from the slave transmitter begins at 0 and increments with each transfer. The USCI\+\_\+\+B0 RX interrupt is used to know when new data has been received. ACLK = n/a, MCLK = SMCLK = BRCLK = DCO = $\sim$1\+MHz \begin{DoxyVerb} /|\ /|\
MSP430FR4133 10k 10k MSP430FR4133
slave | | master
----------------- | | -----------------
-|XIN P5.2/UCB0SDA|<-|----+->|P5.2/UCB0SDA XIN|-
| | | | | 32kHz
-|XOUT | | | XOUT|-
| P5.3/UCB0SCL|<-+------>|P5.3/UCB0SCL |
| | | P1.0|--> LED
\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 I2C peripheral
\item GPIO Port peripheral (for I2C pins)
\item SCL2
\item SDA
\item CS
\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 USCI\+\_\+\+B0\+\_\+\+VECTOR.
\end{DoxyItemize}
Definition at line 82 of file eusci\+\_\+b\+\_\+i2c\+\_\+ex2\+\_\+master\+Rx\+Single.\+c.
\doxysubsection{Function Documentation}
\mbox{\Hypertarget{_m_s_p430_f_r2xx__4xx_2eusci__b__i2c_2eusci__b__i2c__ex2__master_rx_single_8c_a6288eba0f8e8ad3ab1544ad731eb7667}\label{_m_s_p430_f_r2xx__4xx_2eusci__b__i2c_2eusci__b__i2c__ex2__master_rx_single_8c_a6288eba0f8e8ad3ab1544ad731eb7667}}
\index{eusci\_b\_i2c\_ex2\_masterRxSingle.c@{eusci\_b\_i2c\_ex2\_masterRxSingle.c}!main@{main}}
\index{main@{main}!eusci\_b\_i2c\_ex2\_masterRxSingle.c@{eusci\_b\_i2c\_ex2\_masterRxSingle.c}}
\doxysubsubsection{\texorpdfstring{main()}{main()}}
{\footnotesize\ttfamily void main (\begin{DoxyParamCaption}\item[{void}]{ }\end{DoxyParamCaption})}
Definition at line 99 of file eusci\+\_\+b\+\_\+i2c\+\_\+ex2\+\_\+master\+Rx\+Single.\+c.
References \+\_\+\+\_\+delay\+\_\+cycles(), CS\+\_\+\+SMCLK\+\_\+\+DESIRED\+\_\+\+FREQUENCY\+\_\+\+IN\+\_\+\+KHZ, CS\+\_\+\+SMCLK\+\_\+\+FLLREF\+\_\+\+RATIO, param, RXData, and SLAVE\+\_\+\+ADDRESS.
\doxysubsection{Variable Documentation}
\mbox{\Hypertarget{_m_s_p430_f_r2xx__4xx_2eusci__b__i2c_2eusci__b__i2c__ex2__master_rx_single_8c_a597ef8ed788642728c57f66b3a21544f}\label{_m_s_p430_f_r2xx__4xx_2eusci__b__i2c_2eusci__b__i2c__ex2__master_rx_single_8c_a597ef8ed788642728c57f66b3a21544f}}
\index{eusci\_b\_i2c\_ex2\_masterRxSingle.c@{eusci\_b\_i2c\_ex2\_masterRxSingle.c}!RXData@{RXData}}
\index{RXData@{RXData}!eusci\_b\_i2c\_ex2\_masterRxSingle.c@{eusci\_b\_i2c\_ex2\_masterRxSingle.c}}
\doxysubsubsection{\texorpdfstring{RXData}{RXData}}
{\footnotesize\ttfamily uint8\+\_\+t RXData}
Definition at line 98 of file eusci\+\_\+b\+\_\+i2c\+\_\+ex2\+\_\+master\+Rx\+Single.\+c.

View File

@@ -0,0 +1,99 @@
\hypertarget{_m_s_p430_f_r2xx__4xx_2eusci__b__i2c_2eusci__b__i2c__ex2__slave_tx_single_8c}{}\doxysection{Resources/\+Software/msp430\+\_\+driverlib\+\_\+2\+\_\+91\+\_\+13\+\_\+01/examples/\+MSP430\+FR2xx\+\_\+4xx/eusci\+\_\+b\+\_\+i2c/eusci\+\_\+b\+\_\+i2c\+\_\+ex2\+\_\+slave\+Tx\+Single.c File Reference}
\label{_m_s_p430_f_r2xx__4xx_2eusci__b__i2c_2eusci__b__i2c__ex2__slave_tx_single_8c}\index{Resources/Software/msp430\_driverlib\_2\_91\_13\_01/examples/MSP430FR2xx\_4xx/eusci\_b\_i2c/eusci\_b\_i2c\_ex2\_slaveTxSingle.c@{Resources/Software/msp430\_driverlib\_2\_91\_13\_01/examples/MSP430FR2xx\_4xx/eusci\_b\_i2c/eusci\_b\_i2c\_ex2\_slaveTxSingle.c}}
{\ttfamily \#include \char`\"{}driverlib.\+h\char`\"{}}\newline
\doxysubsection*{Macros}
\begin{DoxyCompactItemize}
\item
\#define \mbox{\hyperlink{_m_s_p430_f_r2xx__4xx_2eusci__b__i2c_2eusci__b__i2c__ex2__slave_tx_single_8c_ae2f0ff6faf548539a21b93a034e278e8}{SLAVE\+\_\+\+ADDRESS}}~0x48
\end{DoxyCompactItemize}
\doxysubsection*{Functions}
\begin{DoxyCompactItemize}
\item
void \mbox{\hyperlink{_m_s_p430_f_r2xx__4xx_2eusci__b__i2c_2eusci__b__i2c__ex2__slave_tx_single_8c_a6288eba0f8e8ad3ab1544ad731eb7667}{main}} (void)
\item
void \mbox{\hyperlink{_m_s_p430_f_r2xx__4xx_2eusci__b__i2c_2eusci__b__i2c__ex2__slave_tx_single_8c_a600430c0372d4ed0b67dfd6cb63d4560}{USCIB0\+\_\+\+ISR}} (void)
\end{DoxyCompactItemize}
\doxysubsection*{Variables}
\begin{DoxyCompactItemize}
\item
uint8\+\_\+t \mbox{\hyperlink{_m_s_p430_f_r2xx__4xx_2eusci__b__i2c_2eusci__b__i2c__ex2__slave_tx_single_8c_ae369b896b0180297d61764643f99ba25}{TXData}} = 0x00
\end{DoxyCompactItemize}
\doxysubsection{Macro Definition Documentation}
\mbox{\Hypertarget{_m_s_p430_f_r2xx__4xx_2eusci__b__i2c_2eusci__b__i2c__ex2__slave_tx_single_8c_ae2f0ff6faf548539a21b93a034e278e8}\label{_m_s_p430_f_r2xx__4xx_2eusci__b__i2c_2eusci__b__i2c__ex2__slave_tx_single_8c_ae2f0ff6faf548539a21b93a034e278e8}}
\index{eusci\_b\_i2c\_ex2\_slaveTxSingle.c@{eusci\_b\_i2c\_ex2\_slaveTxSingle.c}!SLAVE\_ADDRESS@{SLAVE\_ADDRESS}}
\index{SLAVE\_ADDRESS@{SLAVE\_ADDRESS}!eusci\_b\_i2c\_ex2\_slaveTxSingle.c@{eusci\_b\_i2c\_ex2\_slaveTxSingle.c}}
\doxysubsubsection{\texorpdfstring{SLAVE\_ADDRESS}{SLAVE\_ADDRESS}}
{\footnotesize\ttfamily \#define SLAVE\+\_\+\+ADDRESS~0x48}
Description\+: This demo connects two MSP430\textquotesingle{}s via the I2C bus. The master reads from the slave. This is the SLAVE code. The TX data begins at 0 and is incremented each time it is sent. A stop condition is used as a trigger to increment the outgoing data. The USCI\+\_\+\+B0 TX interrupt is used to know when to TX. Tested on MSP430\+FR4133 \begin{DoxyVerb} /|\ /|\
MSP430FR4133 10k 10k MSP430FR4133
slave | | master
----------------- | | -----------------
-|XIN P5.2/UCB0SDA|<-|----+->|P5.2/UCB0SDA XIN|-
| | | | | 32kHz
-|XOUT | | | XOUT|-
| P5.3/UCB0SCL|<-+------>|P5.3/UCB0SCL |
| | | P1.0|--> LED
\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 I2C peripheral
\item GPIO Port peripheral (for I2C pins)
\item SCL2
\item SDA
\item CS
\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 USCI\+\_\+\+B0\+\_\+\+VECTOR.
\end{DoxyItemize}
Definition at line 79 of file eusci\+\_\+b\+\_\+i2c\+\_\+ex2\+\_\+slave\+Tx\+Single.\+c.
\doxysubsection{Function Documentation}
\mbox{\Hypertarget{_m_s_p430_f_r2xx__4xx_2eusci__b__i2c_2eusci__b__i2c__ex2__slave_tx_single_8c_a6288eba0f8e8ad3ab1544ad731eb7667}\label{_m_s_p430_f_r2xx__4xx_2eusci__b__i2c_2eusci__b__i2c__ex2__slave_tx_single_8c_a6288eba0f8e8ad3ab1544ad731eb7667}}
\index{eusci\_b\_i2c\_ex2\_slaveTxSingle.c@{eusci\_b\_i2c\_ex2\_slaveTxSingle.c}!main@{main}}
\index{main@{main}!eusci\_b\_i2c\_ex2\_slaveTxSingle.c@{eusci\_b\_i2c\_ex2\_slaveTxSingle.c}}
\doxysubsubsection{\texorpdfstring{main()}{main()}}
{\footnotesize\ttfamily void main (\begin{DoxyParamCaption}\item[{void}]{ }\end{DoxyParamCaption})}
Definition at line 83 of file eusci\+\_\+b\+\_\+i2c\+\_\+ex2\+\_\+slave\+Tx\+Single.\+c.
References \+\_\+\+\_\+no\+\_\+operation(), param, and SLAVE\+\_\+\+ADDRESS.
\mbox{\Hypertarget{_m_s_p430_f_r2xx__4xx_2eusci__b__i2c_2eusci__b__i2c__ex2__slave_tx_single_8c_a600430c0372d4ed0b67dfd6cb63d4560}\label{_m_s_p430_f_r2xx__4xx_2eusci__b__i2c_2eusci__b__i2c__ex2__slave_tx_single_8c_a600430c0372d4ed0b67dfd6cb63d4560}}
\index{eusci\_b\_i2c\_ex2\_slaveTxSingle.c@{eusci\_b\_i2c\_ex2\_slaveTxSingle.c}!USCIB0\_ISR@{USCIB0\_ISR}}
\index{USCIB0\_ISR@{USCIB0\_ISR}!eusci\_b\_i2c\_ex2\_slaveTxSingle.c@{eusci\_b\_i2c\_ex2\_slaveTxSingle.c}}
\doxysubsubsection{\texorpdfstring{USCIB0\_ISR()}{USCIB0\_ISR()}}
{\footnotesize\ttfamily void USCIB0\+\_\+\+ISR (\begin{DoxyParamCaption}\item[{void}]{ }\end{DoxyParamCaption})}
Definition at line 139 of file eusci\+\_\+b\+\_\+i2c\+\_\+ex2\+\_\+slave\+Tx\+Single.\+c.
References TXData.
\doxysubsection{Variable Documentation}
\mbox{\Hypertarget{_m_s_p430_f_r2xx__4xx_2eusci__b__i2c_2eusci__b__i2c__ex2__slave_tx_single_8c_ae369b896b0180297d61764643f99ba25}\label{_m_s_p430_f_r2xx__4xx_2eusci__b__i2c_2eusci__b__i2c__ex2__slave_tx_single_8c_ae369b896b0180297d61764643f99ba25}}
\index{eusci\_b\_i2c\_ex2\_slaveTxSingle.c@{eusci\_b\_i2c\_ex2\_slaveTxSingle.c}!TXData@{TXData}}
\index{TXData@{TXData}!eusci\_b\_i2c\_ex2\_slaveTxSingle.c@{eusci\_b\_i2c\_ex2\_slaveTxSingle.c}}
\doxysubsubsection{\texorpdfstring{TXData}{TXData}}
{\footnotesize\ttfamily uint8\+\_\+t TXData = 0x00}
Definition at line 81 of file eusci\+\_\+b\+\_\+i2c\+\_\+ex2\+\_\+slave\+Tx\+Single.\+c.

View File

@@ -0,0 +1,139 @@
\hypertarget{_m_s_p430_f_r2xx__4xx_2eusci__b__i2c_2eusci__b__i2c__ex3__master_tx_multiple_8c}{}\doxysection{Resources/\+Software/msp430\+\_\+driverlib\+\_\+2\+\_\+91\+\_\+13\+\_\+01/examples/\+MSP430\+FR2xx\+\_\+4xx/eusci\+\_\+b\+\_\+i2c/eusci\+\_\+b\+\_\+i2c\+\_\+ex3\+\_\+master\+Tx\+Multiple.c File Reference}
\label{_m_s_p430_f_r2xx__4xx_2eusci__b__i2c_2eusci__b__i2c__ex3__master_tx_multiple_8c}\index{Resources/Software/msp430\_driverlib\_2\_91\_13\_01/examples/MSP430FR2xx\_4xx/eusci\_b\_i2c/eusci\_b\_i2c\_ex3\_masterTxMultiple.c@{Resources/Software/msp430\_driverlib\_2\_91\_13\_01/examples/MSP430FR2xx\_4xx/eusci\_b\_i2c/eusci\_b\_i2c\_ex3\_masterTxMultiple.c}}
{\ttfamily \#include \char`\"{}driverlib.\+h\char`\"{}}\newline
{\ttfamily \#include \char`\"{}Board.\+h\char`\"{}}\newline
\doxysubsection*{Macros}
\begin{DoxyCompactItemize}
\item
\#define \mbox{\hyperlink{_m_s_p430_f_r2xx__4xx_2eusci__b__i2c_2eusci__b__i2c__ex3__master_tx_multiple_8c_ae2f0ff6faf548539a21b93a034e278e8}{SLAVE\+\_\+\+ADDRESS}}~0x48
\item
\#define \mbox{\hyperlink{_m_s_p430_f_r2xx__4xx_2eusci__b__i2c_2eusci__b__i2c__ex3__master_tx_multiple_8c_abb16bfdd33b9d2ea4f8d121f54e3e6b8}{CS\+\_\+\+SMCLK\+\_\+\+DESIRED\+\_\+\+FREQUENCY\+\_\+\+IN\+\_\+\+KHZ}}~1000
\item
\#define \mbox{\hyperlink{_m_s_p430_f_r2xx__4xx_2eusci__b__i2c_2eusci__b__i2c__ex3__master_tx_multiple_8c_aadaa11d9acd1cd658f32638079eafed6}{CS\+\_\+\+SMCLK\+\_\+\+FLLREF\+\_\+\+RATIO}}~30
\end{DoxyCompactItemize}
\doxysubsection*{Functions}
\begin{DoxyCompactItemize}
\item
void \mbox{\hyperlink{_m_s_p430_f_r2xx__4xx_2eusci__b__i2c_2eusci__b__i2c__ex3__master_tx_multiple_8c_a6288eba0f8e8ad3ab1544ad731eb7667}{main}} (void)
\item
void \mbox{\hyperlink{_m_s_p430_f_r2xx__4xx_2eusci__b__i2c_2eusci__b__i2c__ex3__master_tx_multiple_8c_a600430c0372d4ed0b67dfd6cb63d4560}{USCIB0\+\_\+\+ISR}} (void)
\end{DoxyCompactItemize}
\doxysubsection*{Variables}
\begin{DoxyCompactItemize}
\item
uint8\+\_\+t \mbox{\hyperlink{_m_s_p430_f_r2xx__4xx_2eusci__b__i2c_2eusci__b__i2c__ex3__master_tx_multiple_8c_ae369b896b0180297d61764643f99ba25}{TXData}} = 0
\item
uint8\+\_\+t \mbox{\hyperlink{_m_s_p430_f_r2xx__4xx_2eusci__b__i2c_2eusci__b__i2c__ex3__master_tx_multiple_8c_a442fc7a9731fc8e66469e62429b32219}{TXByte\+Ctr}}
\end{DoxyCompactItemize}
\doxysubsection{Macro Definition Documentation}
\mbox{\Hypertarget{_m_s_p430_f_r2xx__4xx_2eusci__b__i2c_2eusci__b__i2c__ex3__master_tx_multiple_8c_abb16bfdd33b9d2ea4f8d121f54e3e6b8}\label{_m_s_p430_f_r2xx__4xx_2eusci__b__i2c_2eusci__b__i2c__ex3__master_tx_multiple_8c_abb16bfdd33b9d2ea4f8d121f54e3e6b8}}
\index{eusci\_b\_i2c\_ex3\_masterTxMultiple.c@{eusci\_b\_i2c\_ex3\_masterTxMultiple.c}!CS\_SMCLK\_DESIRED\_FREQUENCY\_IN\_KHZ@{CS\_SMCLK\_DESIRED\_FREQUENCY\_IN\_KHZ}}
\index{CS\_SMCLK\_DESIRED\_FREQUENCY\_IN\_KHZ@{CS\_SMCLK\_DESIRED\_FREQUENCY\_IN\_KHZ}!eusci\_b\_i2c\_ex3\_masterTxMultiple.c@{eusci\_b\_i2c\_ex3\_masterTxMultiple.c}}
\doxysubsubsection{\texorpdfstring{CS\_SMCLK\_DESIRED\_FREQUENCY\_IN\_KHZ}{CS\_SMCLK\_DESIRED\_FREQUENCY\_IN\_KHZ}}
{\footnotesize\ttfamily \#define CS\+\_\+\+SMCLK\+\_\+\+DESIRED\+\_\+\+FREQUENCY\+\_\+\+IN\+\_\+\+KHZ~1000}
Definition at line 90 of file eusci\+\_\+b\+\_\+i2c\+\_\+ex3\+\_\+master\+Tx\+Multiple.\+c.
\mbox{\Hypertarget{_m_s_p430_f_r2xx__4xx_2eusci__b__i2c_2eusci__b__i2c__ex3__master_tx_multiple_8c_aadaa11d9acd1cd658f32638079eafed6}\label{_m_s_p430_f_r2xx__4xx_2eusci__b__i2c_2eusci__b__i2c__ex3__master_tx_multiple_8c_aadaa11d9acd1cd658f32638079eafed6}}
\index{eusci\_b\_i2c\_ex3\_masterTxMultiple.c@{eusci\_b\_i2c\_ex3\_masterTxMultiple.c}!CS\_SMCLK\_FLLREF\_RATIO@{CS\_SMCLK\_FLLREF\_RATIO}}
\index{CS\_SMCLK\_FLLREF\_RATIO@{CS\_SMCLK\_FLLREF\_RATIO}!eusci\_b\_i2c\_ex3\_masterTxMultiple.c@{eusci\_b\_i2c\_ex3\_masterTxMultiple.c}}
\doxysubsubsection{\texorpdfstring{CS\_SMCLK\_FLLREF\_RATIO}{CS\_SMCLK\_FLLREF\_RATIO}}
{\footnotesize\ttfamily \#define CS\+\_\+\+SMCLK\+\_\+\+FLLREF\+\_\+\+RATIO~30}
Definition at line 97 of file eusci\+\_\+b\+\_\+i2c\+\_\+ex3\+\_\+master\+Tx\+Multiple.\+c.
\mbox{\Hypertarget{_m_s_p430_f_r2xx__4xx_2eusci__b__i2c_2eusci__b__i2c__ex3__master_tx_multiple_8c_ae2f0ff6faf548539a21b93a034e278e8}\label{_m_s_p430_f_r2xx__4xx_2eusci__b__i2c_2eusci__b__i2c__ex3__master_tx_multiple_8c_ae2f0ff6faf548539a21b93a034e278e8}}
\index{eusci\_b\_i2c\_ex3\_masterTxMultiple.c@{eusci\_b\_i2c\_ex3\_masterTxMultiple.c}!SLAVE\_ADDRESS@{SLAVE\_ADDRESS}}
\index{SLAVE\_ADDRESS@{SLAVE\_ADDRESS}!eusci\_b\_i2c\_ex3\_masterTxMultiple.c@{eusci\_b\_i2c\_ex3\_masterTxMultiple.c}}
\doxysubsubsection{\texorpdfstring{SLAVE\_ADDRESS}{SLAVE\_ADDRESS}}
{\footnotesize\ttfamily \#define SLAVE\+\_\+\+ADDRESS~0x48}
This example shows how to configure the I2C module as a master for multi byte transmission in interrupt driven mode. The address of the slave module is set in this example.
Demo -\/ EUSCI\+\_\+\+B0 I2C Master TX multiple bytes to MSP430 Slave
Description\+: This demo connects two MSP430\textquotesingle{}s via the I2C bus. The master transmits to the slave. This is the MASTER CODE. It cntinuously transmits an array of data and demonstrates how to implement an I2C master transmitter sending multiple bytes using the USCI\+\_\+\+B0 TX interrupt. ACLK = n/a, MCLK = SMCLK = BRCLK = default DCO = $\sim$1\+MHz \begin{DoxyVerb} /|\ /|\
MSP430FR2xx_4xx Board 10k 10k MSP430FR2xx_4xx Board
slave | | master
----------------- | | -----------------
| UCB0SDA|<-|----+->|UCB0SDA |
| | | | |
| | | | |
| UCB0SCL|<-+------>|UCB0SCL |
| | | |
\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 I2C peripheral
\item GPIO Port peripheral (for I2C pins)
\item SCL
\item SDA
\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 USCI\+\_\+\+B0\+\_\+\+VECTOR.
\end{DoxyItemize}
Definition at line 83 of file eusci\+\_\+b\+\_\+i2c\+\_\+ex3\+\_\+master\+Tx\+Multiple.\+c.
\doxysubsection{Function Documentation}
\mbox{\Hypertarget{_m_s_p430_f_r2xx__4xx_2eusci__b__i2c_2eusci__b__i2c__ex3__master_tx_multiple_8c_a6288eba0f8e8ad3ab1544ad731eb7667}\label{_m_s_p430_f_r2xx__4xx_2eusci__b__i2c_2eusci__b__i2c__ex3__master_tx_multiple_8c_a6288eba0f8e8ad3ab1544ad731eb7667}}
\index{eusci\_b\_i2c\_ex3\_masterTxMultiple.c@{eusci\_b\_i2c\_ex3\_masterTxMultiple.c}!main@{main}}
\index{main@{main}!eusci\_b\_i2c\_ex3\_masterTxMultiple.c@{eusci\_b\_i2c\_ex3\_masterTxMultiple.c}}
\doxysubsubsection{\texorpdfstring{main()}{main()}}
{\footnotesize\ttfamily void main (\begin{DoxyParamCaption}\item[{void}]{ }\end{DoxyParamCaption})}
Definition at line 103 of file eusci\+\_\+b\+\_\+i2c\+\_\+ex3\+\_\+master\+Tx\+Multiple.\+c.
References \+\_\+\+\_\+delay\+\_\+cycles(), CS\+\_\+\+SMCLK\+\_\+\+DESIRED\+\_\+\+FREQUENCY\+\_\+\+IN\+\_\+\+KHZ, CS\+\_\+\+SMCLK\+\_\+\+FLLREF\+\_\+\+RATIO, param, SLAVE\+\_\+\+ADDRESS, TXByte\+Ctr, and TXData.
\mbox{\Hypertarget{_m_s_p430_f_r2xx__4xx_2eusci__b__i2c_2eusci__b__i2c__ex3__master_tx_multiple_8c_a600430c0372d4ed0b67dfd6cb63d4560}\label{_m_s_p430_f_r2xx__4xx_2eusci__b__i2c_2eusci__b__i2c__ex3__master_tx_multiple_8c_a600430c0372d4ed0b67dfd6cb63d4560}}
\index{eusci\_b\_i2c\_ex3\_masterTxMultiple.c@{eusci\_b\_i2c\_ex3\_masterTxMultiple.c}!USCIB0\_ISR@{USCIB0\_ISR}}
\index{USCIB0\_ISR@{USCIB0\_ISR}!eusci\_b\_i2c\_ex3\_masterTxMultiple.c@{eusci\_b\_i2c\_ex3\_masterTxMultiple.c}}
\doxysubsubsection{\texorpdfstring{USCIB0\_ISR()}{USCIB0\_ISR()}}
{\footnotesize\ttfamily void USCIB0\+\_\+\+ISR (\begin{DoxyParamCaption}\item[{void}]{ }\end{DoxyParamCaption})}
Definition at line 217 of file eusci\+\_\+b\+\_\+i2c\+\_\+ex3\+\_\+master\+Tx\+Multiple.\+c.
References \+\_\+\+\_\+bic\+\_\+\+SR\+\_\+register\+\_\+on\+\_\+exit(), TXByte\+Ctr, and TXData.
\doxysubsection{Variable Documentation}
\mbox{\Hypertarget{_m_s_p430_f_r2xx__4xx_2eusci__b__i2c_2eusci__b__i2c__ex3__master_tx_multiple_8c_a442fc7a9731fc8e66469e62429b32219}\label{_m_s_p430_f_r2xx__4xx_2eusci__b__i2c_2eusci__b__i2c__ex3__master_tx_multiple_8c_a442fc7a9731fc8e66469e62429b32219}}
\index{eusci\_b\_i2c\_ex3\_masterTxMultiple.c@{eusci\_b\_i2c\_ex3\_masterTxMultiple.c}!TXByteCtr@{TXByteCtr}}
\index{TXByteCtr@{TXByteCtr}!eusci\_b\_i2c\_ex3\_masterTxMultiple.c@{eusci\_b\_i2c\_ex3\_masterTxMultiple.c}}
\doxysubsubsection{\texorpdfstring{TXByteCtr}{TXByteCtr}}
{\footnotesize\ttfamily uint8\+\_\+t TXByte\+Ctr}
Definition at line 101 of file eusci\+\_\+b\+\_\+i2c\+\_\+ex3\+\_\+master\+Tx\+Multiple.\+c.
\mbox{\Hypertarget{_m_s_p430_f_r2xx__4xx_2eusci__b__i2c_2eusci__b__i2c__ex3__master_tx_multiple_8c_ae369b896b0180297d61764643f99ba25}\label{_m_s_p430_f_r2xx__4xx_2eusci__b__i2c_2eusci__b__i2c__ex3__master_tx_multiple_8c_ae369b896b0180297d61764643f99ba25}}
\index{eusci\_b\_i2c\_ex3\_masterTxMultiple.c@{eusci\_b\_i2c\_ex3\_masterTxMultiple.c}!TXData@{TXData}}
\index{TXData@{TXData}!eusci\_b\_i2c\_ex3\_masterTxMultiple.c@{eusci\_b\_i2c\_ex3\_masterTxMultiple.c}}
\doxysubsubsection{\texorpdfstring{TXData}{TXData}}
{\footnotesize\ttfamily uint8\+\_\+t TXData = 0}
Definition at line 100 of file eusci\+\_\+b\+\_\+i2c\+\_\+ex3\+\_\+master\+Tx\+Multiple.\+c.

View File

@@ -0,0 +1,103 @@
\hypertarget{_m_s_p430_f_r2xx__4xx_2eusci__b__i2c_2eusci__b__i2c__ex3__slave_rx_multiple_8c}{}\doxysection{Resources/\+Software/msp430\+\_\+driverlib\+\_\+2\+\_\+91\+\_\+13\+\_\+01/examples/\+MSP430\+FR2xx\+\_\+4xx/eusci\+\_\+b\+\_\+i2c/eusci\+\_\+b\+\_\+i2c\+\_\+ex3\+\_\+slave\+Rx\+Multiple.c File Reference}
\label{_m_s_p430_f_r2xx__4xx_2eusci__b__i2c_2eusci__b__i2c__ex3__slave_rx_multiple_8c}\index{Resources/Software/msp430\_driverlib\_2\_91\_13\_01/examples/MSP430FR2xx\_4xx/eusci\_b\_i2c/eusci\_b\_i2c\_ex3\_slaveRxMultiple.c@{Resources/Software/msp430\_driverlib\_2\_91\_13\_01/examples/MSP430FR2xx\_4xx/eusci\_b\_i2c/eusci\_b\_i2c\_ex3\_slaveRxMultiple.c}}
{\ttfamily \#include \char`\"{}driverlib.\+h\char`\"{}}\newline
{\ttfamily \#include \char`\"{}Board.\+h\char`\"{}}\newline
\doxysubsection*{Macros}
\begin{DoxyCompactItemize}
\item
\#define \mbox{\hyperlink{_m_s_p430_f_r2xx__4xx_2eusci__b__i2c_2eusci__b__i2c__ex3__slave_rx_multiple_8c_ae2f0ff6faf548539a21b93a034e278e8}{SLAVE\+\_\+\+ADDRESS}}~0x48
\end{DoxyCompactItemize}
\doxysubsection*{Functions}
\begin{DoxyCompactItemize}
\item
void \mbox{\hyperlink{_m_s_p430_f_r2xx__4xx_2eusci__b__i2c_2eusci__b__i2c__ex3__slave_rx_multiple_8c_a6288eba0f8e8ad3ab1544ad731eb7667}{main}} (void)
\item
void \mbox{\hyperlink{_m_s_p430_f_r2xx__4xx_2eusci__b__i2c_2eusci__b__i2c__ex3__slave_rx_multiple_8c_a600430c0372d4ed0b67dfd6cb63d4560}{USCIB0\+\_\+\+ISR}} (void)
\end{DoxyCompactItemize}
\doxysubsection*{Variables}
\begin{DoxyCompactItemize}
\item
uint8\+\_\+t \mbox{\hyperlink{_m_s_p430_f_r2xx__4xx_2eusci__b__i2c_2eusci__b__i2c__ex3__slave_rx_multiple_8c_a597ef8ed788642728c57f66b3a21544f}{RXData}}
\end{DoxyCompactItemize}
\doxysubsection{Macro Definition Documentation}
\mbox{\Hypertarget{_m_s_p430_f_r2xx__4xx_2eusci__b__i2c_2eusci__b__i2c__ex3__slave_rx_multiple_8c_ae2f0ff6faf548539a21b93a034e278e8}\label{_m_s_p430_f_r2xx__4xx_2eusci__b__i2c_2eusci__b__i2c__ex3__slave_rx_multiple_8c_ae2f0ff6faf548539a21b93a034e278e8}}
\index{eusci\_b\_i2c\_ex3\_slaveRxMultiple.c@{eusci\_b\_i2c\_ex3\_slaveRxMultiple.c}!SLAVE\_ADDRESS@{SLAVE\_ADDRESS}}
\index{SLAVE\_ADDRESS@{SLAVE\_ADDRESS}!eusci\_b\_i2c\_ex3\_slaveRxMultiple.c@{eusci\_b\_i2c\_ex3\_slaveRxMultiple.c}}
\doxysubsubsection{\texorpdfstring{SLAVE\_ADDRESS}{SLAVE\_ADDRESS}}
{\footnotesize\ttfamily \#define SLAVE\+\_\+\+ADDRESS~0x48}
/$\vert$\textbackslash{} /$\vert$\textbackslash{} MSP430\+FR2xx\+\_\+4xx Board 10k 10k MSP430\+FR2xx\+\_\+4xx Board slave $\vert$ $\vert$ master -\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/--- $\vert$ $\vert$ -\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/--- \tabulinesep=1mm
\begin{longtabu}spread 0pt [c]{*{4}{|X[-1]}|}
\hline
\PBS\centering \cellcolor{\tableheadbgcolor}\textbf{ UCB0\+SDA }&\PBS\centering \cellcolor{\tableheadbgcolor}\textbf{ $<$-\/ }&\PBS\centering \cellcolor{\tableheadbgcolor}\textbf{ -\/---+-\/$>$ }&\PBS\centering \cellcolor{\tableheadbgcolor}\textbf{ UCB0\+SDA }\\\cline{1-4}
\endfirsthead
\hline
\endfoot
\hline
\PBS\centering \cellcolor{\tableheadbgcolor}\textbf{ UCB0\+SDA }&\PBS\centering \cellcolor{\tableheadbgcolor}\textbf{ $<$-\/ }&\PBS\centering \cellcolor{\tableheadbgcolor}\textbf{ -\/---+-\/$>$ }&\PBS\centering \cellcolor{\tableheadbgcolor}\textbf{ UCB0\+SDA }\\\cline{1-4}
\endhead
&&&\\\cline{1-4}
\end{longtabu}
$\vert$ UCB0\+SCL$\vert$$<$-\/+-\/-\/-\/---$>$$\vert$\+UCB0\+SCL $\vert$ $\vert$ $\vert$ $\vert$ $\vert$
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 I2C peripheral
\item GPIO Port peripheral (for I2C pins)
\item SCL
\item SDA
\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 USCI\+\_\+\+B0\+\_\+\+VECTOR.
\end{DoxyItemize}
Definition at line 78 of file eusci\+\_\+b\+\_\+i2c\+\_\+ex3\+\_\+slave\+Rx\+Multiple.\+c.
\doxysubsection{Function Documentation}
\mbox{\Hypertarget{_m_s_p430_f_r2xx__4xx_2eusci__b__i2c_2eusci__b__i2c__ex3__slave_rx_multiple_8c_a6288eba0f8e8ad3ab1544ad731eb7667}\label{_m_s_p430_f_r2xx__4xx_2eusci__b__i2c_2eusci__b__i2c__ex3__slave_rx_multiple_8c_a6288eba0f8e8ad3ab1544ad731eb7667}}
\index{eusci\_b\_i2c\_ex3\_slaveRxMultiple.c@{eusci\_b\_i2c\_ex3\_slaveRxMultiple.c}!main@{main}}
\index{main@{main}!eusci\_b\_i2c\_ex3\_slaveRxMultiple.c@{eusci\_b\_i2c\_ex3\_slaveRxMultiple.c}}
\doxysubsubsection{\texorpdfstring{main()}{main()}}
{\footnotesize\ttfamily void main (\begin{DoxyParamCaption}\item[{void}]{ }\end{DoxyParamCaption})}
Definition at line 82 of file eusci\+\_\+b\+\_\+i2c\+\_\+ex3\+\_\+slave\+Rx\+Multiple.\+c.
References \+\_\+\+\_\+no\+\_\+operation(), param, and SLAVE\+\_\+\+ADDRESS.
\mbox{\Hypertarget{_m_s_p430_f_r2xx__4xx_2eusci__b__i2c_2eusci__b__i2c__ex3__slave_rx_multiple_8c_a600430c0372d4ed0b67dfd6cb63d4560}\label{_m_s_p430_f_r2xx__4xx_2eusci__b__i2c_2eusci__b__i2c__ex3__slave_rx_multiple_8c_a600430c0372d4ed0b67dfd6cb63d4560}}
\index{eusci\_b\_i2c\_ex3\_slaveRxMultiple.c@{eusci\_b\_i2c\_ex3\_slaveRxMultiple.c}!USCIB0\_ISR@{USCIB0\_ISR}}
\index{USCIB0\_ISR@{USCIB0\_ISR}!eusci\_b\_i2c\_ex3\_slaveRxMultiple.c@{eusci\_b\_i2c\_ex3\_slaveRxMultiple.c}}
\doxysubsubsection{\texorpdfstring{USCIB0\_ISR()}{USCIB0\_ISR()}}
{\footnotesize\ttfamily void USCIB0\+\_\+\+ISR (\begin{DoxyParamCaption}\item[{void}]{ }\end{DoxyParamCaption})}
Definition at line 140 of file eusci\+\_\+b\+\_\+i2c\+\_\+ex3\+\_\+slave\+Rx\+Multiple.\+c.
References RXData.
\doxysubsection{Variable Documentation}
\mbox{\Hypertarget{_m_s_p430_f_r2xx__4xx_2eusci__b__i2c_2eusci__b__i2c__ex3__slave_rx_multiple_8c_a597ef8ed788642728c57f66b3a21544f}\label{_m_s_p430_f_r2xx__4xx_2eusci__b__i2c_2eusci__b__i2c__ex3__slave_rx_multiple_8c_a597ef8ed788642728c57f66b3a21544f}}
\index{eusci\_b\_i2c\_ex3\_slaveRxMultiple.c@{eusci\_b\_i2c\_ex3\_slaveRxMultiple.c}!RXData@{RXData}}
\index{RXData@{RXData}!eusci\_b\_i2c\_ex3\_slaveRxMultiple.c@{eusci\_b\_i2c\_ex3\_slaveRxMultiple.c}}
\doxysubsubsection{\texorpdfstring{RXData}{RXData}}
{\footnotesize\ttfamily uint8\+\_\+t RXData}
Definition at line 80 of file eusci\+\_\+b\+\_\+i2c\+\_\+ex3\+\_\+slave\+Rx\+Multiple.\+c.

View File

@@ -0,0 +1,111 @@
\hypertarget{_m_s_p430_f_r2xx__4xx_2eusci__b__i2c_2eusci__b__i2c__ex4__master_tx_single_8c}{}\doxysection{Resources/\+Software/msp430\+\_\+driverlib\+\_\+2\+\_\+91\+\_\+13\+\_\+01/examples/\+MSP430\+FR2xx\+\_\+4xx/eusci\+\_\+b\+\_\+i2c/eusci\+\_\+b\+\_\+i2c\+\_\+ex4\+\_\+master\+Tx\+Single.c File Reference}
\label{_m_s_p430_f_r2xx__4xx_2eusci__b__i2c_2eusci__b__i2c__ex4__master_tx_single_8c}\index{Resources/Software/msp430\_driverlib\_2\_91\_13\_01/examples/MSP430FR2xx\_4xx/eusci\_b\_i2c/eusci\_b\_i2c\_ex4\_masterTxSingle.c@{Resources/Software/msp430\_driverlib\_2\_91\_13\_01/examples/MSP430FR2xx\_4xx/eusci\_b\_i2c/eusci\_b\_i2c\_ex4\_masterTxSingle.c}}
{\ttfamily \#include \char`\"{}driverlib.\+h\char`\"{}}\newline
\doxysubsection*{Macros}
\begin{DoxyCompactItemize}
\item
\#define \mbox{\hyperlink{_m_s_p430_f_r2xx__4xx_2eusci__b__i2c_2eusci__b__i2c__ex4__master_tx_single_8c_ae2f0ff6faf548539a21b93a034e278e8}{SLAVE\+\_\+\+ADDRESS}}~0x48
\item
\#define \mbox{\hyperlink{_m_s_p430_f_r2xx__4xx_2eusci__b__i2c_2eusci__b__i2c__ex4__master_tx_single_8c_abb16bfdd33b9d2ea4f8d121f54e3e6b8}{CS\+\_\+\+SMCLK\+\_\+\+DESIRED\+\_\+\+FREQUENCY\+\_\+\+IN\+\_\+\+KHZ}}~1000
\item
\#define \mbox{\hyperlink{_m_s_p430_f_r2xx__4xx_2eusci__b__i2c_2eusci__b__i2c__ex4__master_tx_single_8c_aadaa11d9acd1cd658f32638079eafed6}{CS\+\_\+\+SMCLK\+\_\+\+FLLREF\+\_\+\+RATIO}}~30
\end{DoxyCompactItemize}
\doxysubsection*{Functions}
\begin{DoxyCompactItemize}
\item
void \mbox{\hyperlink{_m_s_p430_f_r2xx__4xx_2eusci__b__i2c_2eusci__b__i2c__ex4__master_tx_single_8c_a6288eba0f8e8ad3ab1544ad731eb7667}{main}} (void)
\end{DoxyCompactItemize}
\doxysubsection*{Variables}
\begin{DoxyCompactItemize}
\item
uint8\+\_\+t \mbox{\hyperlink{_m_s_p430_f_r2xx__4xx_2eusci__b__i2c_2eusci__b__i2c__ex4__master_tx_single_8c_ac23b8f721ac5b7a4315ba2c3409b9e0a}{transmit\+Data}}
\end{DoxyCompactItemize}
\doxysubsection{Macro Definition Documentation}
\mbox{\Hypertarget{_m_s_p430_f_r2xx__4xx_2eusci__b__i2c_2eusci__b__i2c__ex4__master_tx_single_8c_abb16bfdd33b9d2ea4f8d121f54e3e6b8}\label{_m_s_p430_f_r2xx__4xx_2eusci__b__i2c_2eusci__b__i2c__ex4__master_tx_single_8c_abb16bfdd33b9d2ea4f8d121f54e3e6b8}}
\index{eusci\_b\_i2c\_ex4\_masterTxSingle.c@{eusci\_b\_i2c\_ex4\_masterTxSingle.c}!CS\_SMCLK\_DESIRED\_FREQUENCY\_IN\_KHZ@{CS\_SMCLK\_DESIRED\_FREQUENCY\_IN\_KHZ}}
\index{CS\_SMCLK\_DESIRED\_FREQUENCY\_IN\_KHZ@{CS\_SMCLK\_DESIRED\_FREQUENCY\_IN\_KHZ}!eusci\_b\_i2c\_ex4\_masterTxSingle.c@{eusci\_b\_i2c\_ex4\_masterTxSingle.c}}
\doxysubsubsection{\texorpdfstring{CS\_SMCLK\_DESIRED\_FREQUENCY\_IN\_KHZ}{CS\_SMCLK\_DESIRED\_FREQUENCY\_IN\_KHZ}}
{\footnotesize\ttfamily \#define CS\+\_\+\+SMCLK\+\_\+\+DESIRED\+\_\+\+FREQUENCY\+\_\+\+IN\+\_\+\+KHZ~1000}
Definition at line 90 of file eusci\+\_\+b\+\_\+i2c\+\_\+ex4\+\_\+master\+Tx\+Single.\+c.
\mbox{\Hypertarget{_m_s_p430_f_r2xx__4xx_2eusci__b__i2c_2eusci__b__i2c__ex4__master_tx_single_8c_aadaa11d9acd1cd658f32638079eafed6}\label{_m_s_p430_f_r2xx__4xx_2eusci__b__i2c_2eusci__b__i2c__ex4__master_tx_single_8c_aadaa11d9acd1cd658f32638079eafed6}}
\index{eusci\_b\_i2c\_ex4\_masterTxSingle.c@{eusci\_b\_i2c\_ex4\_masterTxSingle.c}!CS\_SMCLK\_FLLREF\_RATIO@{CS\_SMCLK\_FLLREF\_RATIO}}
\index{CS\_SMCLK\_FLLREF\_RATIO@{CS\_SMCLK\_FLLREF\_RATIO}!eusci\_b\_i2c\_ex4\_masterTxSingle.c@{eusci\_b\_i2c\_ex4\_masterTxSingle.c}}
\doxysubsubsection{\texorpdfstring{CS\_SMCLK\_FLLREF\_RATIO}{CS\_SMCLK\_FLLREF\_RATIO}}
{\footnotesize\ttfamily \#define CS\+\_\+\+SMCLK\+\_\+\+FLLREF\+\_\+\+RATIO~30}
Definition at line 97 of file eusci\+\_\+b\+\_\+i2c\+\_\+ex4\+\_\+master\+Tx\+Single.\+c.
\mbox{\Hypertarget{_m_s_p430_f_r2xx__4xx_2eusci__b__i2c_2eusci__b__i2c__ex4__master_tx_single_8c_ae2f0ff6faf548539a21b93a034e278e8}\label{_m_s_p430_f_r2xx__4xx_2eusci__b__i2c_2eusci__b__i2c__ex4__master_tx_single_8c_ae2f0ff6faf548539a21b93a034e278e8}}
\index{eusci\_b\_i2c\_ex4\_masterTxSingle.c@{eusci\_b\_i2c\_ex4\_masterTxSingle.c}!SLAVE\_ADDRESS@{SLAVE\_ADDRESS}}
\index{SLAVE\_ADDRESS@{SLAVE\_ADDRESS}!eusci\_b\_i2c\_ex4\_masterTxSingle.c@{eusci\_b\_i2c\_ex4\_masterTxSingle.c}}
\doxysubsubsection{\texorpdfstring{SLAVE\_ADDRESS}{SLAVE\_ADDRESS}}
{\footnotesize\ttfamily \#define SLAVE\+\_\+\+ADDRESS~0x48}
This example shows how to configure the I2C module as a master for single byte transmission in interrupt mode. The address of the slave module that the master is communicating with also set in this example.
Demo -\/ EUSCI\+\_\+\+B0 I2C Master TX single bytes to MSP430 Slave
Description\+: This demo connects two MSP430\textquotesingle{}s via the I2C bus. The master transmits to the slave. This is the master code. It continuously transmits 00h, 01h, ..., 0ffh and demonstrates how to implement an I2C master transmitter sending a single byte using the USCI\+\_\+\+B0 TX interrupt. ACLK = n/a, MCLK = SMCLK = BRCLK = default DCO = $\sim$1\+MHz \begin{DoxyVerb} /|\ /|\
MSP430FR4133 10k 10k MSP430FR4133
slave | | master
----------------- | | -----------------
-|XIN P5.2/UCB0SDA|<-|----+->|P5.2/UCB0SDA XIN|-
| | | | | 32kHz
-|XOUT | | | XOUT|-
| P5.3/UCB0SCL|<-+------>|P5.3/UCB0SCL |
| | | P1.0|--> LED
\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 I2C peripheral
\item GPIO Port peripheral (for I2C pins)
\item SCL2
\item SDA
\item CS
\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 USCI\+\_\+\+B0\+\_\+\+VECTOR.
\end{DoxyItemize}
Definition at line 83 of file eusci\+\_\+b\+\_\+i2c\+\_\+ex4\+\_\+master\+Tx\+Single.\+c.
\doxysubsection{Function Documentation}
\mbox{\Hypertarget{_m_s_p430_f_r2xx__4xx_2eusci__b__i2c_2eusci__b__i2c__ex4__master_tx_single_8c_a6288eba0f8e8ad3ab1544ad731eb7667}\label{_m_s_p430_f_r2xx__4xx_2eusci__b__i2c_2eusci__b__i2c__ex4__master_tx_single_8c_a6288eba0f8e8ad3ab1544ad731eb7667}}
\index{eusci\_b\_i2c\_ex4\_masterTxSingle.c@{eusci\_b\_i2c\_ex4\_masterTxSingle.c}!main@{main}}
\index{main@{main}!eusci\_b\_i2c\_ex4\_masterTxSingle.c@{eusci\_b\_i2c\_ex4\_masterTxSingle.c}}
\doxysubsubsection{\texorpdfstring{main()}{main()}}
{\footnotesize\ttfamily void main (\begin{DoxyParamCaption}\item[{void}]{ }\end{DoxyParamCaption})}
Definition at line 101 of file eusci\+\_\+b\+\_\+i2c\+\_\+ex4\+\_\+master\+Tx\+Single.\+c.
References \+\_\+\+\_\+delay\+\_\+cycles(), CS\+\_\+\+SMCLK\+\_\+\+DESIRED\+\_\+\+FREQUENCY\+\_\+\+IN\+\_\+\+KHZ, CS\+\_\+\+SMCLK\+\_\+\+FLLREF\+\_\+\+RATIO, param, SLAVE\+\_\+\+ADDRESS, and transmit\+Data.
\doxysubsection{Variable Documentation}
\mbox{\Hypertarget{_m_s_p430_f_r2xx__4xx_2eusci__b__i2c_2eusci__b__i2c__ex4__master_tx_single_8c_ac23b8f721ac5b7a4315ba2c3409b9e0a}\label{_m_s_p430_f_r2xx__4xx_2eusci__b__i2c_2eusci__b__i2c__ex4__master_tx_single_8c_ac23b8f721ac5b7a4315ba2c3409b9e0a}}
\index{eusci\_b\_i2c\_ex4\_masterTxSingle.c@{eusci\_b\_i2c\_ex4\_masterTxSingle.c}!transmitData@{transmitData}}
\index{transmitData@{transmitData}!eusci\_b\_i2c\_ex4\_masterTxSingle.c@{eusci\_b\_i2c\_ex4\_masterTxSingle.c}}
\doxysubsubsection{\texorpdfstring{transmitData}{transmitData}}
{\footnotesize\ttfamily uint8\+\_\+t transmit\+Data}
Definition at line 99 of file eusci\+\_\+b\+\_\+i2c\+\_\+ex4\+\_\+master\+Tx\+Single.\+c.

View File

@@ -0,0 +1,103 @@
\hypertarget{_m_s_p430_f_r2xx__4xx_2eusci__b__i2c_2eusci__b__i2c__ex4__slave_rx_single_8c}{}\doxysection{Resources/\+Software/msp430\+\_\+driverlib\+\_\+2\+\_\+91\+\_\+13\+\_\+01/examples/\+MSP430\+FR2xx\+\_\+4xx/eusci\+\_\+b\+\_\+i2c/eusci\+\_\+b\+\_\+i2c\+\_\+ex4\+\_\+slave\+Rx\+Single.c File Reference}
\label{_m_s_p430_f_r2xx__4xx_2eusci__b__i2c_2eusci__b__i2c__ex4__slave_rx_single_8c}\index{Resources/Software/msp430\_driverlib\_2\_91\_13\_01/examples/MSP430FR2xx\_4xx/eusci\_b\_i2c/eusci\_b\_i2c\_ex4\_slaveRxSingle.c@{Resources/Software/msp430\_driverlib\_2\_91\_13\_01/examples/MSP430FR2xx\_4xx/eusci\_b\_i2c/eusci\_b\_i2c\_ex4\_slaveRxSingle.c}}
{\ttfamily \#include \char`\"{}driverlib.\+h\char`\"{}}\newline
\doxysubsection*{Macros}
\begin{DoxyCompactItemize}
\item
\#define \mbox{\hyperlink{_m_s_p430_f_r2xx__4xx_2eusci__b__i2c_2eusci__b__i2c__ex4__slave_rx_single_8c_ae2f0ff6faf548539a21b93a034e278e8}{SLAVE\+\_\+\+ADDRESS}}~0x48
\end{DoxyCompactItemize}
\doxysubsection*{Functions}
\begin{DoxyCompactItemize}
\item
void \mbox{\hyperlink{_m_s_p430_f_r2xx__4xx_2eusci__b__i2c_2eusci__b__i2c__ex4__slave_rx_single_8c_a6288eba0f8e8ad3ab1544ad731eb7667}{main}} (void)
\item
void \mbox{\hyperlink{_m_s_p430_f_r2xx__4xx_2eusci__b__i2c_2eusci__b__i2c__ex4__slave_rx_single_8c_a600430c0372d4ed0b67dfd6cb63d4560}{USCIB0\+\_\+\+ISR}} (void)
\end{DoxyCompactItemize}
\doxysubsection*{Variables}
\begin{DoxyCompactItemize}
\item
uint8\+\_\+t \mbox{\hyperlink{_m_s_p430_f_r2xx__4xx_2eusci__b__i2c_2eusci__b__i2c__ex4__slave_rx_single_8c_a597ef8ed788642728c57f66b3a21544f}{RXData}}
\end{DoxyCompactItemize}
\doxysubsection{Macro Definition Documentation}
\mbox{\Hypertarget{_m_s_p430_f_r2xx__4xx_2eusci__b__i2c_2eusci__b__i2c__ex4__slave_rx_single_8c_ae2f0ff6faf548539a21b93a034e278e8}\label{_m_s_p430_f_r2xx__4xx_2eusci__b__i2c_2eusci__b__i2c__ex4__slave_rx_single_8c_ae2f0ff6faf548539a21b93a034e278e8}}
\index{eusci\_b\_i2c\_ex4\_slaveRxSingle.c@{eusci\_b\_i2c\_ex4\_slaveRxSingle.c}!SLAVE\_ADDRESS@{SLAVE\_ADDRESS}}
\index{SLAVE\_ADDRESS@{SLAVE\_ADDRESS}!eusci\_b\_i2c\_ex4\_slaveRxSingle.c@{eusci\_b\_i2c\_ex4\_slaveRxSingle.c}}
\doxysubsubsection{\texorpdfstring{SLAVE\_ADDRESS}{SLAVE\_ADDRESS}}
{\footnotesize\ttfamily \#define SLAVE\+\_\+\+ADDRESS~0x48}
This example shows how to configure the I2C module as a slave for single byte reception in interrupt driven mode. The address of the slave module is set in this example. EUSCI\+\_\+\+B0 I2C Slave RX single bytes from MSP430 Master
Description\+: This demo connects two MSP430\textquotesingle{}s via the I2C bus. The master transmits to the slave. This is the slave code. The interrupt driven data receiption is demonstrated using the USCI\+\_\+\+B0 RX interrupt.
Tested on MSP430\+FR4133 \begin{DoxyVerb} /|\ /|\
MSP430FR4133 10k 10k MSP430FR4133
slave | | master
----------------- | | -----------------
-|XIN P5.2/UCB0SDA|<-|----+->|P5.2/UCB0SDA XIN|-
| | | | | 32kHz
-|XOUT | | | XOUT|-
| P5.3/UCB0SCL|<-+------>|P5.3/UCB0SCL |
| | | P1.0|--> LED
\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 I2C peripheral
\item GPIO Port peripheral (for I2C pins)
\item SCL
\item SDA
\item CS
\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 USCI\+\_\+\+B0\+\_\+\+VECTOR.
\end{DoxyItemize}
Definition at line 82 of file eusci\+\_\+b\+\_\+i2c\+\_\+ex4\+\_\+slave\+Rx\+Single.\+c.
\doxysubsection{Function Documentation}
\mbox{\Hypertarget{_m_s_p430_f_r2xx__4xx_2eusci__b__i2c_2eusci__b__i2c__ex4__slave_rx_single_8c_a6288eba0f8e8ad3ab1544ad731eb7667}\label{_m_s_p430_f_r2xx__4xx_2eusci__b__i2c_2eusci__b__i2c__ex4__slave_rx_single_8c_a6288eba0f8e8ad3ab1544ad731eb7667}}
\index{eusci\_b\_i2c\_ex4\_slaveRxSingle.c@{eusci\_b\_i2c\_ex4\_slaveRxSingle.c}!main@{main}}
\index{main@{main}!eusci\_b\_i2c\_ex4\_slaveRxSingle.c@{eusci\_b\_i2c\_ex4\_slaveRxSingle.c}}
\doxysubsubsection{\texorpdfstring{main()}{main()}}
{\footnotesize\ttfamily void main (\begin{DoxyParamCaption}\item[{void}]{ }\end{DoxyParamCaption})}
Definition at line 86 of file eusci\+\_\+b\+\_\+i2c\+\_\+ex4\+\_\+slave\+Rx\+Single.\+c.
References \+\_\+\+\_\+no\+\_\+operation(), and param.
\mbox{\Hypertarget{_m_s_p430_f_r2xx__4xx_2eusci__b__i2c_2eusci__b__i2c__ex4__slave_rx_single_8c_a600430c0372d4ed0b67dfd6cb63d4560}\label{_m_s_p430_f_r2xx__4xx_2eusci__b__i2c_2eusci__b__i2c__ex4__slave_rx_single_8c_a600430c0372d4ed0b67dfd6cb63d4560}}
\index{eusci\_b\_i2c\_ex4\_slaveRxSingle.c@{eusci\_b\_i2c\_ex4\_slaveRxSingle.c}!USCIB0\_ISR@{USCIB0\_ISR}}
\index{USCIB0\_ISR@{USCIB0\_ISR}!eusci\_b\_i2c\_ex4\_slaveRxSingle.c@{eusci\_b\_i2c\_ex4\_slaveRxSingle.c}}
\doxysubsubsection{\texorpdfstring{USCIB0\_ISR()}{USCIB0\_ISR()}}
{\footnotesize\ttfamily void USCIB0\+\_\+\+ISR (\begin{DoxyParamCaption}\item[{void}]{ }\end{DoxyParamCaption})}
Definition at line 134 of file eusci\+\_\+b\+\_\+i2c\+\_\+ex4\+\_\+slave\+Rx\+Single.\+c.
References RXData.
\doxysubsection{Variable Documentation}
\mbox{\Hypertarget{_m_s_p430_f_r2xx__4xx_2eusci__b__i2c_2eusci__b__i2c__ex4__slave_rx_single_8c_a597ef8ed788642728c57f66b3a21544f}\label{_m_s_p430_f_r2xx__4xx_2eusci__b__i2c_2eusci__b__i2c__ex4__slave_rx_single_8c_a597ef8ed788642728c57f66b3a21544f}}
\index{eusci\_b\_i2c\_ex4\_slaveRxSingle.c@{eusci\_b\_i2c\_ex4\_slaveRxSingle.c}!RXData@{RXData}}
\index{RXData@{RXData}!eusci\_b\_i2c\_ex4\_slaveRxSingle.c@{eusci\_b\_i2c\_ex4\_slaveRxSingle.c}}
\doxysubsubsection{\texorpdfstring{RXData}{RXData}}
{\footnotesize\ttfamily uint8\+\_\+t RXData}
Definition at line 84 of file eusci\+\_\+b\+\_\+i2c\+\_\+ex4\+\_\+slave\+Rx\+Single.\+c.

View File

@@ -0,0 +1,125 @@
\hypertarget{_m_s_p430_f_r2xx__4xx_2eusci__b__i2c_2eusci__b__i2c__ex5__master_multiple_slave_8c}{}\doxysection{Resources/\+Software/msp430\+\_\+driverlib\+\_\+2\+\_\+91\+\_\+13\+\_\+01/examples/\+MSP430\+FR2xx\+\_\+4xx/eusci\+\_\+b\+\_\+i2c/eusci\+\_\+b\+\_\+i2c\+\_\+ex5\+\_\+master\+Multiple\+Slave.c File Reference}
\label{_m_s_p430_f_r2xx__4xx_2eusci__b__i2c_2eusci__b__i2c__ex5__master_multiple_slave_8c}\index{Resources/Software/msp430\_driverlib\_2\_91\_13\_01/examples/MSP430FR2xx\_4xx/eusci\_b\_i2c/eusci\_b\_i2c\_ex5\_masterMultipleSlave.c@{Resources/Software/msp430\_driverlib\_2\_91\_13\_01/examples/MSP430FR2xx\_4xx/eusci\_b\_i2c/eusci\_b\_i2c\_ex5\_masterMultipleSlave.c}}
{\ttfamily \#include \char`\"{}driverlib.\+h\char`\"{}}\newline
\doxysubsection*{Macros}
\begin{DoxyCompactItemize}
\item
\#define \mbox{\hyperlink{_m_s_p430_f_r2xx__4xx_2eusci__b__i2c_2eusci__b__i2c__ex5__master_multiple_slave_8c_abb16bfdd33b9d2ea4f8d121f54e3e6b8}{CS\+\_\+\+SMCLK\+\_\+\+DESIRED\+\_\+\+FREQUENCY\+\_\+\+IN\+\_\+\+KHZ}}~1000
\item
\#define \mbox{\hyperlink{_m_s_p430_f_r2xx__4xx_2eusci__b__i2c_2eusci__b__i2c__ex5__master_multiple_slave_8c_aadaa11d9acd1cd658f32638079eafed6}{CS\+\_\+\+SMCLK\+\_\+\+FLLREF\+\_\+\+RATIO}}~30
\end{DoxyCompactItemize}
\doxysubsection*{Functions}
\begin{DoxyCompactItemize}
\item
void \mbox{\hyperlink{_m_s_p430_f_r2xx__4xx_2eusci__b__i2c_2eusci__b__i2c__ex5__master_multiple_slave_8c_a6288eba0f8e8ad3ab1544ad731eb7667}{main}} (void)
\item
void \mbox{\hyperlink{_m_s_p430_f_r2xx__4xx_2eusci__b__i2c_2eusci__b__i2c__ex5__master_multiple_slave_8c_a600430c0372d4ed0b67dfd6cb63d4560}{USCIB0\+\_\+\+ISR}} (void)
\end{DoxyCompactItemize}
\doxysubsection*{Variables}
\begin{DoxyCompactItemize}
\item
uint8\+\_\+t \mbox{\hyperlink{_m_s_p430_f_r2xx__4xx_2eusci__b__i2c_2eusci__b__i2c__ex5__master_multiple_slave_8c_adb697e8622bce2ab592d2ee2395bd672}{TXData}} \mbox{[}$\,$\mbox{]} = \{0x\+A1,0x\+B1,0x\+C1,0x\+D1\}
\item
uint8\+\_\+t \mbox{\hyperlink{_m_s_p430_f_r2xx__4xx_2eusci__b__i2c_2eusci__b__i2c__ex5__master_multiple_slave_8c_acab914ed25efe33c5ff39bffa442b25f}{Slave\+Address}} \mbox{[}$\,$\mbox{]} = \{0x0A,0x0B,0x0C,0x0D\}
\item
uint8\+\_\+t \mbox{\hyperlink{_m_s_p430_f_r2xx__4xx_2eusci__b__i2c_2eusci__b__i2c__ex5__master_multiple_slave_8c_a442fc7a9731fc8e66469e62429b32219}{TXByte\+Ctr}}
\item
uint8\+\_\+t \mbox{\hyperlink{_m_s_p430_f_r2xx__4xx_2eusci__b__i2c_2eusci__b__i2c__ex5__master_multiple_slave_8c_a8400431f2b4b75fc33a2b9d755be8796}{Slave\+Flag}} = 0
\end{DoxyCompactItemize}
\doxysubsection{Macro Definition Documentation}
\mbox{\Hypertarget{_m_s_p430_f_r2xx__4xx_2eusci__b__i2c_2eusci__b__i2c__ex5__master_multiple_slave_8c_abb16bfdd33b9d2ea4f8d121f54e3e6b8}\label{_m_s_p430_f_r2xx__4xx_2eusci__b__i2c_2eusci__b__i2c__ex5__master_multiple_slave_8c_abb16bfdd33b9d2ea4f8d121f54e3e6b8}}
\index{eusci\_b\_i2c\_ex5\_masterMultipleSlave.c@{eusci\_b\_i2c\_ex5\_masterMultipleSlave.c}!CS\_SMCLK\_DESIRED\_FREQUENCY\_IN\_KHZ@{CS\_SMCLK\_DESIRED\_FREQUENCY\_IN\_KHZ}}
\index{CS\_SMCLK\_DESIRED\_FREQUENCY\_IN\_KHZ@{CS\_SMCLK\_DESIRED\_FREQUENCY\_IN\_KHZ}!eusci\_b\_i2c\_ex5\_masterMultipleSlave.c@{eusci\_b\_i2c\_ex5\_masterMultipleSlave.c}}
\doxysubsubsection{\texorpdfstring{CS\_SMCLK\_DESIRED\_FREQUENCY\_IN\_KHZ}{CS\_SMCLK\_DESIRED\_FREQUENCY\_IN\_KHZ}}
{\footnotesize\ttfamily \#define CS\+\_\+\+SMCLK\+\_\+\+DESIRED\+\_\+\+FREQUENCY\+\_\+\+IN\+\_\+\+KHZ~1000}
/$\vert$\textbackslash{} /$\vert$\textbackslash{} MSP430\+FR4133 10k 10k MSP430\+FR4133 slave $\vert$ $\vert$ master -\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/--- $\vert$ $\vert$ -\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/--- -\/$\vert$\+XIN P5.\+2/\+UCB0\+SDA$\vert$$<$-\/$\vert$-\/---+-\/$>$$\vert$\+P5.2/\+UCB0\+SDA XIN$\vert$-\/ $\vert$ $\vert$ $\vert$ $\vert$ $\vert$ 32k\+Hz -\/$\vert$\+XOUT $\vert$ $\vert$ $\vert$ XOUT$\vert$-\/ $\vert$ P5.\+3/\+UCB0\+SCL$\vert$$<$-\/+-\/-\/-\/---$>$$\vert$\+P5.3/\+UCB0\+SCL $\vert$ $\vert$ $\vert$ $\vert$ P1.\+0$\vert$-\/-\/$>$ LED
Definition at line 60 of file eusci\+\_\+b\+\_\+i2c\+\_\+ex5\+\_\+master\+Multiple\+Slave.\+c.
\mbox{\Hypertarget{_m_s_p430_f_r2xx__4xx_2eusci__b__i2c_2eusci__b__i2c__ex5__master_multiple_slave_8c_aadaa11d9acd1cd658f32638079eafed6}\label{_m_s_p430_f_r2xx__4xx_2eusci__b__i2c_2eusci__b__i2c__ex5__master_multiple_slave_8c_aadaa11d9acd1cd658f32638079eafed6}}
\index{eusci\_b\_i2c\_ex5\_masterMultipleSlave.c@{eusci\_b\_i2c\_ex5\_masterMultipleSlave.c}!CS\_SMCLK\_FLLREF\_RATIO@{CS\_SMCLK\_FLLREF\_RATIO}}
\index{CS\_SMCLK\_FLLREF\_RATIO@{CS\_SMCLK\_FLLREF\_RATIO}!eusci\_b\_i2c\_ex5\_masterMultipleSlave.c@{eusci\_b\_i2c\_ex5\_masterMultipleSlave.c}}
\doxysubsubsection{\texorpdfstring{CS\_SMCLK\_FLLREF\_RATIO}{CS\_SMCLK\_FLLREF\_RATIO}}
{\footnotesize\ttfamily \#define CS\+\_\+\+SMCLK\+\_\+\+FLLREF\+\_\+\+RATIO~30}
Definition at line 67 of file eusci\+\_\+b\+\_\+i2c\+\_\+ex5\+\_\+master\+Multiple\+Slave.\+c.
\doxysubsection{Function Documentation}
\mbox{\Hypertarget{_m_s_p430_f_r2xx__4xx_2eusci__b__i2c_2eusci__b__i2c__ex5__master_multiple_slave_8c_a6288eba0f8e8ad3ab1544ad731eb7667}\label{_m_s_p430_f_r2xx__4xx_2eusci__b__i2c_2eusci__b__i2c__ex5__master_multiple_slave_8c_a6288eba0f8e8ad3ab1544ad731eb7667}}
\index{eusci\_b\_i2c\_ex5\_masterMultipleSlave.c@{eusci\_b\_i2c\_ex5\_masterMultipleSlave.c}!main@{main}}
\index{main@{main}!eusci\_b\_i2c\_ex5\_masterMultipleSlave.c@{eusci\_b\_i2c\_ex5\_masterMultipleSlave.c}}
\doxysubsubsection{\texorpdfstring{main()}{main()}}
{\footnotesize\ttfamily void main (\begin{DoxyParamCaption}\item[{void}]{ }\end{DoxyParamCaption})}
Definition at line 74 of file eusci\+\_\+b\+\_\+i2c\+\_\+ex5\+\_\+master\+Multiple\+Slave.\+c.
References \+\_\+\+\_\+delay\+\_\+cycles(), CS\+\_\+\+SMCLK\+\_\+\+DESIRED\+\_\+\+FREQUENCY\+\_\+\+IN\+\_\+\+KHZ, CS\+\_\+\+SMCLK\+\_\+\+FLLREF\+\_\+\+RATIO, param, Slave\+Address, Slave\+Flag, and TXByte\+Ctr.
\mbox{\Hypertarget{_m_s_p430_f_r2xx__4xx_2eusci__b__i2c_2eusci__b__i2c__ex5__master_multiple_slave_8c_a600430c0372d4ed0b67dfd6cb63d4560}\label{_m_s_p430_f_r2xx__4xx_2eusci__b__i2c_2eusci__b__i2c__ex5__master_multiple_slave_8c_a600430c0372d4ed0b67dfd6cb63d4560}}
\index{eusci\_b\_i2c\_ex5\_masterMultipleSlave.c@{eusci\_b\_i2c\_ex5\_masterMultipleSlave.c}!USCIB0\_ISR@{USCIB0\_ISR}}
\index{USCIB0\_ISR@{USCIB0\_ISR}!eusci\_b\_i2c\_ex5\_masterMultipleSlave.c@{eusci\_b\_i2c\_ex5\_masterMultipleSlave.c}}
\doxysubsubsection{\texorpdfstring{USCIB0\_ISR()}{USCIB0\_ISR()}}
{\footnotesize\ttfamily void USCIB0\+\_\+\+ISR (\begin{DoxyParamCaption}\item[{void}]{ }\end{DoxyParamCaption})}
Definition at line 179 of file eusci\+\_\+b\+\_\+i2c\+\_\+ex5\+\_\+master\+Multiple\+Slave.\+c.
References \+\_\+\+\_\+bic\+\_\+\+SR\+\_\+register\+\_\+on\+\_\+exit(), Slave\+Flag, TXByte\+Ctr, and TXData.
\doxysubsection{Variable Documentation}
\mbox{\Hypertarget{_m_s_p430_f_r2xx__4xx_2eusci__b__i2c_2eusci__b__i2c__ex5__master_multiple_slave_8c_acab914ed25efe33c5ff39bffa442b25f}\label{_m_s_p430_f_r2xx__4xx_2eusci__b__i2c_2eusci__b__i2c__ex5__master_multiple_slave_8c_acab914ed25efe33c5ff39bffa442b25f}}
\index{eusci\_b\_i2c\_ex5\_masterMultipleSlave.c@{eusci\_b\_i2c\_ex5\_masterMultipleSlave.c}!SlaveAddress@{SlaveAddress}}
\index{SlaveAddress@{SlaveAddress}!eusci\_b\_i2c\_ex5\_masterMultipleSlave.c@{eusci\_b\_i2c\_ex5\_masterMultipleSlave.c}}
\doxysubsubsection{\texorpdfstring{SlaveAddress}{SlaveAddress}}
{\footnotesize\ttfamily uint8\+\_\+t Slave\+Address\mbox{[}$\,$\mbox{]} = \{0x0A,0x0B,0x0C,0x0D\}}
Definition at line 70 of file eusci\+\_\+b\+\_\+i2c\+\_\+ex5\+\_\+master\+Multiple\+Slave.\+c.
\mbox{\Hypertarget{_m_s_p430_f_r2xx__4xx_2eusci__b__i2c_2eusci__b__i2c__ex5__master_multiple_slave_8c_a8400431f2b4b75fc33a2b9d755be8796}\label{_m_s_p430_f_r2xx__4xx_2eusci__b__i2c_2eusci__b__i2c__ex5__master_multiple_slave_8c_a8400431f2b4b75fc33a2b9d755be8796}}
\index{eusci\_b\_i2c\_ex5\_masterMultipleSlave.c@{eusci\_b\_i2c\_ex5\_masterMultipleSlave.c}!SlaveFlag@{SlaveFlag}}
\index{SlaveFlag@{SlaveFlag}!eusci\_b\_i2c\_ex5\_masterMultipleSlave.c@{eusci\_b\_i2c\_ex5\_masterMultipleSlave.c}}
\doxysubsubsection{\texorpdfstring{SlaveFlag}{SlaveFlag}}
{\footnotesize\ttfamily uint8\+\_\+t Slave\+Flag = 0}
Definition at line 72 of file eusci\+\_\+b\+\_\+i2c\+\_\+ex5\+\_\+master\+Multiple\+Slave.\+c.
\mbox{\Hypertarget{_m_s_p430_f_r2xx__4xx_2eusci__b__i2c_2eusci__b__i2c__ex5__master_multiple_slave_8c_a442fc7a9731fc8e66469e62429b32219}\label{_m_s_p430_f_r2xx__4xx_2eusci__b__i2c_2eusci__b__i2c__ex5__master_multiple_slave_8c_a442fc7a9731fc8e66469e62429b32219}}
\index{eusci\_b\_i2c\_ex5\_masterMultipleSlave.c@{eusci\_b\_i2c\_ex5\_masterMultipleSlave.c}!TXByteCtr@{TXByteCtr}}
\index{TXByteCtr@{TXByteCtr}!eusci\_b\_i2c\_ex5\_masterMultipleSlave.c@{eusci\_b\_i2c\_ex5\_masterMultipleSlave.c}}
\doxysubsubsection{\texorpdfstring{TXByteCtr}{TXByteCtr}}
{\footnotesize\ttfamily uint8\+\_\+t TXByte\+Ctr}
Definition at line 71 of file eusci\+\_\+b\+\_\+i2c\+\_\+ex5\+\_\+master\+Multiple\+Slave.\+c.
\mbox{\Hypertarget{_m_s_p430_f_r2xx__4xx_2eusci__b__i2c_2eusci__b__i2c__ex5__master_multiple_slave_8c_adb697e8622bce2ab592d2ee2395bd672}\label{_m_s_p430_f_r2xx__4xx_2eusci__b__i2c_2eusci__b__i2c__ex5__master_multiple_slave_8c_adb697e8622bce2ab592d2ee2395bd672}}
\index{eusci\_b\_i2c\_ex5\_masterMultipleSlave.c@{eusci\_b\_i2c\_ex5\_masterMultipleSlave.c}!TXData@{TXData}}
\index{TXData@{TXData}!eusci\_b\_i2c\_ex5\_masterMultipleSlave.c@{eusci\_b\_i2c\_ex5\_masterMultipleSlave.c}}
\doxysubsubsection{\texorpdfstring{TXData}{TXData}}
{\footnotesize\ttfamily uint8\+\_\+t TXData\mbox{[}$\,$\mbox{]} = \{0x\+A1,0x\+B1,0x\+C1,0x\+D1\}}
Definition at line 69 of file eusci\+\_\+b\+\_\+i2c\+\_\+ex5\+\_\+master\+Multiple\+Slave.\+c.

View File

@@ -0,0 +1,95 @@
\hypertarget{_m_s_p430_f_r2xx__4xx_2eusci__b__i2c_2eusci__b__i2c__ex5__slave_multiple_slave_8c}{}\doxysection{Resources/\+Software/msp430\+\_\+driverlib\+\_\+2\+\_\+91\+\_\+13\+\_\+01/examples/\+MSP430\+FR2xx\+\_\+4xx/eusci\+\_\+b\+\_\+i2c/eusci\+\_\+b\+\_\+i2c\+\_\+ex5\+\_\+slave\+Multiple\+Slave.c File Reference}
\label{_m_s_p430_f_r2xx__4xx_2eusci__b__i2c_2eusci__b__i2c__ex5__slave_multiple_slave_8c}\index{Resources/Software/msp430\_driverlib\_2\_91\_13\_01/examples/MSP430FR2xx\_4xx/eusci\_b\_i2c/eusci\_b\_i2c\_ex5\_slaveMultipleSlave.c@{Resources/Software/msp430\_driverlib\_2\_91\_13\_01/examples/MSP430FR2xx\_4xx/eusci\_b\_i2c/eusci\_b\_i2c\_ex5\_slaveMultipleSlave.c}}
{\ttfamily \#include \char`\"{}driverlib.\+h\char`\"{}}\newline
\doxysubsection*{Functions}
\begin{DoxyCompactItemize}
\item
void \mbox{\hyperlink{_m_s_p430_f_r2xx__4xx_2eusci__b__i2c_2eusci__b__i2c__ex5__slave_multiple_slave_8c_a6288eba0f8e8ad3ab1544ad731eb7667}{main}} (void)
\item
void \mbox{\hyperlink{_m_s_p430_f_r2xx__4xx_2eusci__b__i2c_2eusci__b__i2c__ex5__slave_multiple_slave_8c_a600430c0372d4ed0b67dfd6cb63d4560}{USCIB0\+\_\+\+ISR}} (void)
\end{DoxyCompactItemize}
\doxysubsection*{Variables}
\begin{DoxyCompactItemize}
\item
uint8\+\_\+t \mbox{\hyperlink{_m_s_p430_f_r2xx__4xx_2eusci__b__i2c_2eusci__b__i2c__ex5__slave_multiple_slave_8c_ad8363a0fe210b31eb7174491f478dd02}{RXData0}} = 0
\item
uint8\+\_\+t \mbox{\hyperlink{_m_s_p430_f_r2xx__4xx_2eusci__b__i2c_2eusci__b__i2c__ex5__slave_multiple_slave_8c_afd0f3a79374491b2736c8448c3b85e3a}{RXData1}} = 0
\item
uint8\+\_\+t \mbox{\hyperlink{_m_s_p430_f_r2xx__4xx_2eusci__b__i2c_2eusci__b__i2c__ex5__slave_multiple_slave_8c_ad490477b6b68af21a68dcde8035a0f61}{RXData2}} = 0
\item
uint8\+\_\+t \mbox{\hyperlink{_m_s_p430_f_r2xx__4xx_2eusci__b__i2c_2eusci__b__i2c__ex5__slave_multiple_slave_8c_af6a6cccb6c28ae3621d22627201ff981}{RXData3}} = 0
\end{DoxyCompactItemize}
\doxysubsection{Function Documentation}
\mbox{\Hypertarget{_m_s_p430_f_r2xx__4xx_2eusci__b__i2c_2eusci__b__i2c__ex5__slave_multiple_slave_8c_a6288eba0f8e8ad3ab1544ad731eb7667}\label{_m_s_p430_f_r2xx__4xx_2eusci__b__i2c_2eusci__b__i2c__ex5__slave_multiple_slave_8c_a6288eba0f8e8ad3ab1544ad731eb7667}}
\index{eusci\_b\_i2c\_ex5\_slaveMultipleSlave.c@{eusci\_b\_i2c\_ex5\_slaveMultipleSlave.c}!main@{main}}
\index{main@{main}!eusci\_b\_i2c\_ex5\_slaveMultipleSlave.c@{eusci\_b\_i2c\_ex5\_slaveMultipleSlave.c}}
\doxysubsubsection{\texorpdfstring{main()}{main()}}
{\footnotesize\ttfamily void main (\begin{DoxyParamCaption}\item[{void}]{ }\end{DoxyParamCaption})}
Definition at line 59 of file eusci\+\_\+b\+\_\+i2c\+\_\+ex5\+\_\+slave\+Multiple\+Slave.\+c.
References \+\_\+\+\_\+no\+\_\+operation().
\mbox{\Hypertarget{_m_s_p430_f_r2xx__4xx_2eusci__b__i2c_2eusci__b__i2c__ex5__slave_multiple_slave_8c_a600430c0372d4ed0b67dfd6cb63d4560}\label{_m_s_p430_f_r2xx__4xx_2eusci__b__i2c_2eusci__b__i2c__ex5__slave_multiple_slave_8c_a600430c0372d4ed0b67dfd6cb63d4560}}
\index{eusci\_b\_i2c\_ex5\_slaveMultipleSlave.c@{eusci\_b\_i2c\_ex5\_slaveMultipleSlave.c}!USCIB0\_ISR@{USCIB0\_ISR}}
\index{USCIB0\_ISR@{USCIB0\_ISR}!eusci\_b\_i2c\_ex5\_slaveMultipleSlave.c@{eusci\_b\_i2c\_ex5\_slaveMultipleSlave.c}}
\doxysubsubsection{\texorpdfstring{USCIB0\_ISR()}{USCIB0\_ISR()}}
{\footnotesize\ttfamily void USCIB0\+\_\+\+ISR (\begin{DoxyParamCaption}\item[{void}]{ }\end{DoxyParamCaption})}
Definition at line 137 of file eusci\+\_\+b\+\_\+i2c\+\_\+ex5\+\_\+slave\+Multiple\+Slave.\+c.
References RXData0, RXData1, RXData2, and RXData3.
\doxysubsection{Variable Documentation}
\mbox{\Hypertarget{_m_s_p430_f_r2xx__4xx_2eusci__b__i2c_2eusci__b__i2c__ex5__slave_multiple_slave_8c_ad8363a0fe210b31eb7174491f478dd02}\label{_m_s_p430_f_r2xx__4xx_2eusci__b__i2c_2eusci__b__i2c__ex5__slave_multiple_slave_8c_ad8363a0fe210b31eb7174491f478dd02}}
\index{eusci\_b\_i2c\_ex5\_slaveMultipleSlave.c@{eusci\_b\_i2c\_ex5\_slaveMultipleSlave.c}!RXData0@{RXData0}}
\index{RXData0@{RXData0}!eusci\_b\_i2c\_ex5\_slaveMultipleSlave.c@{eusci\_b\_i2c\_ex5\_slaveMultipleSlave.c}}
\doxysubsubsection{\texorpdfstring{RXData0}{RXData0}}
{\footnotesize\ttfamily uint8\+\_\+t RXData0 = 0}
/$\vert$\textbackslash{} /$\vert$\textbackslash{} MSP430\+FR4133 10k 10k MSP430\+FR4133 slave $\vert$ $\vert$ master -\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/--- $\vert$ $\vert$ -\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/-\/--- -\/$\vert$\+XIN P5.\+2/\+UCB0\+SDA$\vert$$<$-\/$\vert$-\/---+-\/$>$$\vert$\+P5.2/\+UCB0\+SDA XIN$\vert$-\/ $\vert$ $\vert$ $\vert$ $\vert$ $\vert$ 32k\+Hz -\/$\vert$\+XOUT $\vert$ $\vert$ $\vert$ XOUT$\vert$-\/ $\vert$ P5.\+3/\+UCB0\+SCL$\vert$$<$-\/+-\/-\/-\/---$>$$\vert$\+P5.3/\+UCB0\+SCL $\vert$ $\vert$ $\vert$ $\vert$ P1.\+0$\vert$-\/-\/$>$ LED
Definition at line 54 of file eusci\+\_\+b\+\_\+i2c\+\_\+ex5\+\_\+slave\+Multiple\+Slave.\+c.
\mbox{\Hypertarget{_m_s_p430_f_r2xx__4xx_2eusci__b__i2c_2eusci__b__i2c__ex5__slave_multiple_slave_8c_afd0f3a79374491b2736c8448c3b85e3a}\label{_m_s_p430_f_r2xx__4xx_2eusci__b__i2c_2eusci__b__i2c__ex5__slave_multiple_slave_8c_afd0f3a79374491b2736c8448c3b85e3a}}
\index{eusci\_b\_i2c\_ex5\_slaveMultipleSlave.c@{eusci\_b\_i2c\_ex5\_slaveMultipleSlave.c}!RXData1@{RXData1}}
\index{RXData1@{RXData1}!eusci\_b\_i2c\_ex5\_slaveMultipleSlave.c@{eusci\_b\_i2c\_ex5\_slaveMultipleSlave.c}}
\doxysubsubsection{\texorpdfstring{RXData1}{RXData1}}
{\footnotesize\ttfamily uint8\+\_\+t RXData1 = 0}
Definition at line 55 of file eusci\+\_\+b\+\_\+i2c\+\_\+ex5\+\_\+slave\+Multiple\+Slave.\+c.
\mbox{\Hypertarget{_m_s_p430_f_r2xx__4xx_2eusci__b__i2c_2eusci__b__i2c__ex5__slave_multiple_slave_8c_ad490477b6b68af21a68dcde8035a0f61}\label{_m_s_p430_f_r2xx__4xx_2eusci__b__i2c_2eusci__b__i2c__ex5__slave_multiple_slave_8c_ad490477b6b68af21a68dcde8035a0f61}}
\index{eusci\_b\_i2c\_ex5\_slaveMultipleSlave.c@{eusci\_b\_i2c\_ex5\_slaveMultipleSlave.c}!RXData2@{RXData2}}
\index{RXData2@{RXData2}!eusci\_b\_i2c\_ex5\_slaveMultipleSlave.c@{eusci\_b\_i2c\_ex5\_slaveMultipleSlave.c}}
\doxysubsubsection{\texorpdfstring{RXData2}{RXData2}}
{\footnotesize\ttfamily uint8\+\_\+t RXData2 = 0}
Definition at line 56 of file eusci\+\_\+b\+\_\+i2c\+\_\+ex5\+\_\+slave\+Multiple\+Slave.\+c.
\mbox{\Hypertarget{_m_s_p430_f_r2xx__4xx_2eusci__b__i2c_2eusci__b__i2c__ex5__slave_multiple_slave_8c_af6a6cccb6c28ae3621d22627201ff981}\label{_m_s_p430_f_r2xx__4xx_2eusci__b__i2c_2eusci__b__i2c__ex5__slave_multiple_slave_8c_af6a6cccb6c28ae3621d22627201ff981}}
\index{eusci\_b\_i2c\_ex5\_slaveMultipleSlave.c@{eusci\_b\_i2c\_ex5\_slaveMultipleSlave.c}!RXData3@{RXData3}}
\index{RXData3@{RXData3}!eusci\_b\_i2c\_ex5\_slaveMultipleSlave.c@{eusci\_b\_i2c\_ex5\_slaveMultipleSlave.c}}
\doxysubsubsection{\texorpdfstring{RXData3}{RXData3}}
{\footnotesize\ttfamily uint8\+\_\+t RXData3 = 0}
Definition at line 57 of file eusci\+\_\+b\+\_\+i2c\+\_\+ex5\+\_\+slave\+Multiple\+Slave.\+c.

View File

@@ -0,0 +1,92 @@
\hypertarget{_m_s_p430_f_r2xx__4xx_2eusci__b__spi_2eusci__b__spi__ex1__master_8c}{}\doxysection{Resources/\+Software/msp430\+\_\+driverlib\+\_\+2\+\_\+91\+\_\+13\+\_\+01/examples/\+MSP430\+FR2xx\+\_\+4xx/eusci\+\_\+b\+\_\+spi/eusci\+\_\+b\+\_\+spi\+\_\+ex1\+\_\+master.c File Reference}
\label{_m_s_p430_f_r2xx__4xx_2eusci__b__spi_2eusci__b__spi__ex1__master_8c}\index{Resources/Software/msp430\_driverlib\_2\_91\_13\_01/examples/MSP430FR2xx\_4xx/eusci\_b\_spi/eusci\_b\_spi\_ex1\_master.c@{Resources/Software/msp430\_driverlib\_2\_91\_13\_01/examples/MSP430FR2xx\_4xx/eusci\_b\_spi/eusci\_b\_spi\_ex1\_master.c}}
{\ttfamily \#include \char`\"{}driverlib.\+h\char`\"{}}\newline
\doxysubsection*{Functions}
\begin{DoxyCompactItemize}
\item
void \mbox{\hyperlink{_m_s_p430_f_r2xx__4xx_2eusci__b__spi_2eusci__b__spi__ex1__master_8c_a6288eba0f8e8ad3ab1544ad731eb7667}{main}} (void)
\item
void \mbox{\hyperlink{_m_s_p430_f_r2xx__4xx_2eusci__b__spi_2eusci__b__spi__ex1__master_8c_abb8ec2e0335e1b8389161437129cc39a}{USCI\+\_\+\+B0\+\_\+\+ISR}} (void)
\end{DoxyCompactItemize}
\doxysubsection*{Variables}
\begin{DoxyCompactItemize}
\item
uint8\+\_\+t \mbox{\hyperlink{_m_s_p430_f_r2xx__4xx_2eusci__b__spi_2eusci__b__spi__ex1__master_8c_a597ef8ed788642728c57f66b3a21544f}{RXData}} = 0
\item
uint8\+\_\+t \mbox{\hyperlink{_m_s_p430_f_r2xx__4xx_2eusci__b__spi_2eusci__b__spi__ex1__master_8c_ae369b896b0180297d61764643f99ba25}{TXData}} = 0
\end{DoxyCompactItemize}
\doxysubsection{Function Documentation}
\mbox{\Hypertarget{_m_s_p430_f_r2xx__4xx_2eusci__b__spi_2eusci__b__spi__ex1__master_8c_a6288eba0f8e8ad3ab1544ad731eb7667}\label{_m_s_p430_f_r2xx__4xx_2eusci__b__spi_2eusci__b__spi__ex1__master_8c_a6288eba0f8e8ad3ab1544ad731eb7667}}
\index{eusci\_b\_spi\_ex1\_master.c@{eusci\_b\_spi\_ex1\_master.c}!main@{main}}
\index{main@{main}!eusci\_b\_spi\_ex1\_master.c@{eusci\_b\_spi\_ex1\_master.c}}
\doxysubsubsection{\texorpdfstring{main()}{main()}}
{\footnotesize\ttfamily void main (\begin{DoxyParamCaption}\item[{void}]{ }\end{DoxyParamCaption})}
Definition at line 80 of file eusci\+\_\+b\+\_\+spi\+\_\+ex1\+\_\+master.\+c.
References \+\_\+\+\_\+delay\+\_\+cycles(), \+\_\+\+\_\+no\+\_\+operation(), GPIO\+\_\+set\+Output\+Low\+On\+Pin(), i, param, and TXData.
\mbox{\Hypertarget{_m_s_p430_f_r2xx__4xx_2eusci__b__spi_2eusci__b__spi__ex1__master_8c_abb8ec2e0335e1b8389161437129cc39a}\label{_m_s_p430_f_r2xx__4xx_2eusci__b__spi_2eusci__b__spi__ex1__master_8c_abb8ec2e0335e1b8389161437129cc39a}}
\index{eusci\_b\_spi\_ex1\_master.c@{eusci\_b\_spi\_ex1\_master.c}!USCI\_B0\_ISR@{USCI\_B0\_ISR}}
\index{USCI\_B0\_ISR@{USCI\_B0\_ISR}!eusci\_b\_spi\_ex1\_master.c@{eusci\_b\_spi\_ex1\_master.c}}
\doxysubsubsection{\texorpdfstring{USCI\_B0\_ISR()}{USCI\_B0\_ISR()}}
{\footnotesize\ttfamily void USCI\+\_\+\+B0\+\_\+\+ISR (\begin{DoxyParamCaption}\item[{void}]{ }\end{DoxyParamCaption})}
Definition at line 194 of file eusci\+\_\+b\+\_\+spi\+\_\+ex1\+\_\+master.\+c.
References \+\_\+\+\_\+delay\+\_\+cycles(), RXData, and TXData.
\doxysubsection{Variable Documentation}
\mbox{\Hypertarget{_m_s_p430_f_r2xx__4xx_2eusci__b__spi_2eusci__b__spi__ex1__master_8c_a597ef8ed788642728c57f66b3a21544f}\label{_m_s_p430_f_r2xx__4xx_2eusci__b__spi_2eusci__b__spi__ex1__master_8c_a597ef8ed788642728c57f66b3a21544f}}
\index{eusci\_b\_spi\_ex1\_master.c@{eusci\_b\_spi\_ex1\_master.c}!RXData@{RXData}}
\index{RXData@{RXData}!eusci\_b\_spi\_ex1\_master.c@{eusci\_b\_spi\_ex1\_master.c}}
\doxysubsubsection{\texorpdfstring{RXData}{RXData}}
{\footnotesize\ttfamily uint8\+\_\+t RXData = 0}
USCI\+\_\+\+B0, SPI 3-\/Wire Master Incremented Data This example shows how SPI master talks to SPI slave using 3-\/wire mode. Incrementing data is sent by the master starting at 0x01. Received data is expected to be same as the previous transmission. e\+USCI RX ISR is used to handle communication with the CPU, normally in LPM0. If high, P1.\+0 indicates valid data reception. Because all execution after LPM0 is in ISRs, initialization waits for DCO to stabilize against SMCLK. MCLK = SMCLK = ACLK = $\sim$32.768k\+Hz
Use with SPI Slave Data Echo code example. If slave is in debug mode, P1.\+1 slave reset signal conflicts with slave\textquotesingle{}s JTAG; to work around, use IAR\textquotesingle{}s \char`\"{}\+Release JTAG on Go\char`\"{} on slave device. If breakpoints are set in slave RX ISR, master must stopped also to avoid overrunning slave RXBUF. \begin{DoxyVerb} Tested on MSP430FR4133
-----------------
/|\ | |
| | |
\end{DoxyVerb}
Master---+-\/$>$$\vert$\+RST $\vert$ $\vert$ $\vert$ $\vert$ P5.\+2$\vert$-\/$>$ Data Out (UCB0\+SIMO) $\vert$ $\vert$ $\vert$ P5.\+3$\vert$$<$-\/ Data In (UCB0\+SOMI) $\vert$ $\vert$ $\vert$ P5.\+1$\vert$-\/$>$ Serial Clock Out (UCB0\+CLK)
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 SPI peripheral
\item GPIO Port peripheral (for SPI pins)
\item UCB0\+SIMO
\item UCB0\+SOMI
\item UCB0\+CLK
\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 USCI\+\_\+\+B0\+\_\+\+VECTOR
\end{DoxyItemize}
Definition at line 77 of file eusci\+\_\+b\+\_\+spi\+\_\+ex1\+\_\+master.\+c.
\mbox{\Hypertarget{_m_s_p430_f_r2xx__4xx_2eusci__b__spi_2eusci__b__spi__ex1__master_8c_ae369b896b0180297d61764643f99ba25}\label{_m_s_p430_f_r2xx__4xx_2eusci__b__spi_2eusci__b__spi__ex1__master_8c_ae369b896b0180297d61764643f99ba25}}
\index{eusci\_b\_spi\_ex1\_master.c@{eusci\_b\_spi\_ex1\_master.c}!TXData@{TXData}}
\index{TXData@{TXData}!eusci\_b\_spi\_ex1\_master.c@{eusci\_b\_spi\_ex1\_master.c}}
\doxysubsubsection{\texorpdfstring{TXData}{TXData}}
{\footnotesize\ttfamily uint8\+\_\+t TXData = 0}
Definition at line 78 of file eusci\+\_\+b\+\_\+spi\+\_\+ex1\+\_\+master.\+c.

View File

@@ -0,0 +1,92 @@
\hypertarget{_m_s_p430_f_r2xx__4xx_2eusci__b__spi_2eusci__b__spi__ex1__slave_8c}{}\doxysection{Resources/\+Software/msp430\+\_\+driverlib\+\_\+2\+\_\+91\+\_\+13\+\_\+01/examples/\+MSP430\+FR2xx\+\_\+4xx/eusci\+\_\+b\+\_\+spi/eusci\+\_\+b\+\_\+spi\+\_\+ex1\+\_\+slave.c File Reference}
\label{_m_s_p430_f_r2xx__4xx_2eusci__b__spi_2eusci__b__spi__ex1__slave_8c}\index{Resources/Software/msp430\_driverlib\_2\_91\_13\_01/examples/MSP430FR2xx\_4xx/eusci\_b\_spi/eusci\_b\_spi\_ex1\_slave.c@{Resources/Software/msp430\_driverlib\_2\_91\_13\_01/examples/MSP430FR2xx\_4xx/eusci\_b\_spi/eusci\_b\_spi\_ex1\_slave.c}}
{\ttfamily \#include \char`\"{}driverlib.\+h\char`\"{}}\newline
\doxysubsection*{Functions}
\begin{DoxyCompactItemize}
\item
void \mbox{\hyperlink{_m_s_p430_f_r2xx__4xx_2eusci__b__spi_2eusci__b__spi__ex1__slave_8c_a6288eba0f8e8ad3ab1544ad731eb7667}{main}} (void)
\item
void \mbox{\hyperlink{_m_s_p430_f_r2xx__4xx_2eusci__b__spi_2eusci__b__spi__ex1__slave_8c_abb8ec2e0335e1b8389161437129cc39a}{USCI\+\_\+\+B0\+\_\+\+ISR}} (void)
\end{DoxyCompactItemize}
\doxysubsection*{Variables}
\begin{DoxyCompactItemize}
\item
uint8\+\_\+t \mbox{\hyperlink{_m_s_p430_f_r2xx__4xx_2eusci__b__spi_2eusci__b__spi__ex1__slave_8c_ac23b8f721ac5b7a4315ba2c3409b9e0a}{transmit\+Data}} = 0x01
\item
uint8\+\_\+t \mbox{\hyperlink{_m_s_p430_f_r2xx__4xx_2eusci__b__spi_2eusci__b__spi__ex1__slave_8c_a216001f02f93a2c0b512c1b8724bdc60}{receive\+Data}} = 0x00
\end{DoxyCompactItemize}
\doxysubsection{Function Documentation}
\mbox{\Hypertarget{_m_s_p430_f_r2xx__4xx_2eusci__b__spi_2eusci__b__spi__ex1__slave_8c_a6288eba0f8e8ad3ab1544ad731eb7667}\label{_m_s_p430_f_r2xx__4xx_2eusci__b__spi_2eusci__b__spi__ex1__slave_8c_a6288eba0f8e8ad3ab1544ad731eb7667}}
\index{eusci\_b\_spi\_ex1\_slave.c@{eusci\_b\_spi\_ex1\_slave.c}!main@{main}}
\index{main@{main}!eusci\_b\_spi\_ex1\_slave.c@{eusci\_b\_spi\_ex1\_slave.c}}
\doxysubsubsection{\texorpdfstring{main()}{main()}}
{\footnotesize\ttfamily void main (\begin{DoxyParamCaption}\item[{void}]{ }\end{DoxyParamCaption})}
Definition at line 76 of file eusci\+\_\+b\+\_\+spi\+\_\+ex1\+\_\+slave.\+c.
References param.
\mbox{\Hypertarget{_m_s_p430_f_r2xx__4xx_2eusci__b__spi_2eusci__b__spi__ex1__slave_8c_abb8ec2e0335e1b8389161437129cc39a}\label{_m_s_p430_f_r2xx__4xx_2eusci__b__spi_2eusci__b__spi__ex1__slave_8c_abb8ec2e0335e1b8389161437129cc39a}}
\index{eusci\_b\_spi\_ex1\_slave.c@{eusci\_b\_spi\_ex1\_slave.c}!USCI\_B0\_ISR@{USCI\_B0\_ISR}}
\index{USCI\_B0\_ISR@{USCI\_B0\_ISR}!eusci\_b\_spi\_ex1\_slave.c@{eusci\_b\_spi\_ex1\_slave.c}}
\doxysubsubsection{\texorpdfstring{USCI\_B0\_ISR()}{USCI\_B0\_ISR()}}
{\footnotesize\ttfamily void USCI\+\_\+\+B0\+\_\+\+ISR (\begin{DoxyParamCaption}\item[{void}]{ }\end{DoxyParamCaption})}
Definition at line 133 of file eusci\+\_\+b\+\_\+spi\+\_\+ex1\+\_\+slave.\+c.
References receive\+Data, and transmit\+Data.
\doxysubsection{Variable Documentation}
\mbox{\Hypertarget{_m_s_p430_f_r2xx__4xx_2eusci__b__spi_2eusci__b__spi__ex1__slave_8c_a216001f02f93a2c0b512c1b8724bdc60}\label{_m_s_p430_f_r2xx__4xx_2eusci__b__spi_2eusci__b__spi__ex1__slave_8c_a216001f02f93a2c0b512c1b8724bdc60}}
\index{eusci\_b\_spi\_ex1\_slave.c@{eusci\_b\_spi\_ex1\_slave.c}!receiveData@{receiveData}}
\index{receiveData@{receiveData}!eusci\_b\_spi\_ex1\_slave.c@{eusci\_b\_spi\_ex1\_slave.c}}
\doxysubsubsection{\texorpdfstring{receiveData}{receiveData}}
{\footnotesize\ttfamily uint8\+\_\+t receive\+Data = 0x00}
Definition at line 74 of file eusci\+\_\+b\+\_\+spi\+\_\+ex1\+\_\+slave.\+c.
\mbox{\Hypertarget{_m_s_p430_f_r2xx__4xx_2eusci__b__spi_2eusci__b__spi__ex1__slave_8c_ac23b8f721ac5b7a4315ba2c3409b9e0a}\label{_m_s_p430_f_r2xx__4xx_2eusci__b__spi_2eusci__b__spi__ex1__slave_8c_ac23b8f721ac5b7a4315ba2c3409b9e0a}}
\index{eusci\_b\_spi\_ex1\_slave.c@{eusci\_b\_spi\_ex1\_slave.c}!transmitData@{transmitData}}
\index{transmitData@{transmitData}!eusci\_b\_spi\_ex1\_slave.c@{eusci\_b\_spi\_ex1\_slave.c}}
\doxysubsubsection{\texorpdfstring{transmitData}{transmitData}}
{\footnotesize\ttfamily uint8\+\_\+t transmit\+Data = 0x01}
SPI slave talks to SPI master using 3-\/wire mode. Data is received from master and data from slave is then transmitted back to master. USCI RX ISR is used to handle communication, CPU normally in LPM4. Prior to initial data exchange, master pulses slaves RST for complete reset.
Use with eusci\+\_\+spi\+\_\+ex1\+\_\+master code example. If the slave is in debug mode, the reset signal from the master will conflict with slave\textquotesingle{}s JTAG; to work around, use IAR\textquotesingle{}s \char`\"{}\+Release JTAG on Go\char`\"{} on slave device. If breakpoints are set in slave RX ISR, master must stopped also to avoid overrunning slave RXBUF. \begin{DoxyVerb} Tested on MSP430FR4133
-----------------
/|\ | |
| | |
\end{DoxyVerb}
Master---+-\/$>$$\vert$\+RST $\vert$ $\vert$ $\vert$ $\vert$ P5.\+2$\vert$-\/$>$ Data Out (UCB0\+SIMO) $\vert$ $\vert$ $\vert$ P5.\+3$\vert$$<$-\/ Data In (UCB0\+SOMI) $\vert$ $\vert$ $\vert$ P5.\+1$\vert$-\/$>$ Serial Clock Out (UCB0\+CLK)
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 SPI peripheral
\item GPIO Port peripheral (for SPI pins)
\item UCB0\+SIMO
\item UCB0\+SOMI
\item UCB0\+CLK
\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 USCI\+\_\+\+B0\+\_\+\+VECTOR
\end{DoxyItemize}
Definition at line 74 of file eusci\+\_\+b\+\_\+spi\+\_\+ex1\+\_\+slave.\+c.

View File

@@ -0,0 +1,56 @@
\hypertarget{_m_s_p430_f_r2xx__4xx_2framctl_2framctl__ex1__write_8c}{}\doxysection{Resources/\+Software/msp430\+\_\+driverlib\+\_\+2\+\_\+91\+\_\+13\+\_\+01/examples/\+MSP430\+FR2xx\+\_\+4xx/framctl/framctl\+\_\+ex1\+\_\+write.c File Reference}
\label{_m_s_p430_f_r2xx__4xx_2framctl_2framctl__ex1__write_8c}\index{Resources/Software/msp430\_driverlib\_2\_91\_13\_01/examples/MSP430FR2xx\_4xx/framctl/framctl\_ex1\_write.c@{Resources/Software/msp430\_driverlib\_2\_91\_13\_01/examples/MSP430FR2xx\_4xx/framctl/framctl\_ex1\_write.c}}
{\ttfamily \#include \char`\"{}driverlib.\+h\char`\"{}}\newline
{\ttfamily \#include \char`\"{}Board.\+h\char`\"{}}\newline
\doxysubsection*{Macros}
\begin{DoxyCompactItemize}
\item
\#define \mbox{\hyperlink{_m_s_p430_f_r2xx__4xx_2framctl_2framctl__ex1__write_8c_a4776f26339da4e54480825286f6a55c2}{FRAM\+\_\+\+TEST\+\_\+\+START}}~0x\+CABA
\end{DoxyCompactItemize}
\doxysubsection*{Functions}
\begin{DoxyCompactItemize}
\item
void \mbox{\hyperlink{_m_s_p430_f_r2xx__4xx_2framctl_2framctl__ex1__write_8c_a6288eba0f8e8ad3ab1544ad731eb7667}{main}} (void)
\end{DoxyCompactItemize}
\doxysubsection{Macro Definition Documentation}
\mbox{\Hypertarget{_m_s_p430_f_r2xx__4xx_2framctl_2framctl__ex1__write_8c_a4776f26339da4e54480825286f6a55c2}\label{_m_s_p430_f_r2xx__4xx_2framctl_2framctl__ex1__write_8c_a4776f26339da4e54480825286f6a55c2}}
\index{framctl\_ex1\_write.c@{framctl\_ex1\_write.c}!FRAM\_TEST\_START@{FRAM\_TEST\_START}}
\index{FRAM\_TEST\_START@{FRAM\_TEST\_START}!framctl\_ex1\_write.c@{framctl\_ex1\_write.c}}
\doxysubsubsection{\texorpdfstring{FRAM\_TEST\_START}{FRAM\_TEST\_START}}
{\footnotesize\ttfamily \#define FRAM\+\_\+\+TEST\+\_\+\+START~0x\+CABA}
Long word writes to FRAM
Description\+: Use long word write to write to 512 byte blocks of FRAM. Toggle LEDs after every 100 writes. NOTE\+: Running this example for extended periods will impact the FRAM endurance. ACLK = VLO, MCLK = SMCLK = $\sim$1.048MHz \begin{DoxyVerb} MSP430FR2xx_4xx Board
---------------
/|\| |
| | |
--|RST |
| |
| |
| |-->LED1
| |-->LED2
\end{DoxyVerb}
Definition at line 55 of file framctl\+\_\+ex1\+\_\+write.\+c.
\doxysubsection{Function Documentation}
\mbox{\Hypertarget{_m_s_p430_f_r2xx__4xx_2framctl_2framctl__ex1__write_8c_a6288eba0f8e8ad3ab1544ad731eb7667}\label{_m_s_p430_f_r2xx__4xx_2framctl_2framctl__ex1__write_8c_a6288eba0f8e8ad3ab1544ad731eb7667}}
\index{framctl\_ex1\_write.c@{framctl\_ex1\_write.c}!main@{main}}
\index{main@{main}!framctl\_ex1\_write.c@{framctl\_ex1\_write.c}}
\doxysubsubsection{\texorpdfstring{main()}{main()}}
{\footnotesize\ttfamily void main (\begin{DoxyParamCaption}\item[{void}]{ }\end{DoxyParamCaption})}
Definition at line 57 of file framctl\+\_\+ex1\+\_\+write.\+c.
References FRAM\+\_\+\+TEST\+\_\+\+START.

View File

@@ -0,0 +1,25 @@
\hypertarget{_m_s_p430_f_r2xx__4xx_2gpio_2gpio__ex1__output_hi_8c}{}\doxysection{Resources/\+Software/msp430\+\_\+driverlib\+\_\+2\+\_\+91\+\_\+13\+\_\+01/examples/\+MSP430\+FR2xx\+\_\+4xx/gpio/gpio\+\_\+ex1\+\_\+output\+Hi.c File Reference}
\label{_m_s_p430_f_r2xx__4xx_2gpio_2gpio__ex1__output_hi_8c}\index{Resources/Software/msp430\_driverlib\_2\_91\_13\_01/examples/MSP430FR2xx\_4xx/gpio/gpio\_ex1\_outputHi.c@{Resources/Software/msp430\_driverlib\_2\_91\_13\_01/examples/MSP430FR2xx\_4xx/gpio/gpio\_ex1\_outputHi.c}}
{\ttfamily \#include \char`\"{}driverlib.\+h\char`\"{}}\newline
\doxysubsection*{Functions}
\begin{DoxyCompactItemize}
\item
void \mbox{\hyperlink{_m_s_p430_f_r2xx__4xx_2gpio_2gpio__ex1__output_hi_8c_a6288eba0f8e8ad3ab1544ad731eb7667}{main}} (void)
\end{DoxyCompactItemize}
\doxysubsection{Function Documentation}
\mbox{\Hypertarget{_m_s_p430_f_r2xx__4xx_2gpio_2gpio__ex1__output_hi_8c_a6288eba0f8e8ad3ab1544ad731eb7667}\label{_m_s_p430_f_r2xx__4xx_2gpio_2gpio__ex1__output_hi_8c_a6288eba0f8e8ad3ab1544ad731eb7667}}
\index{gpio\_ex1\_outputHi.c@{gpio\_ex1\_outputHi.c}!main@{main}}
\index{main@{main}!gpio\_ex1\_outputHi.c@{gpio\_ex1\_outputHi.c}}
\doxysubsubsection{\texorpdfstring{main()}{main()}}
{\footnotesize\ttfamily void main (\begin{DoxyParamCaption}\item[{void}]{ }\end{DoxyParamCaption})}
Definition at line 58 of file gpio\+\_\+ex1\+\_\+output\+Hi.\+c.
References \+\_\+\+\_\+no\+\_\+operation(), and GPIO\+\_\+set\+Output\+High\+On\+Pin().

View File

@@ -0,0 +1,42 @@
\hypertarget{_m_s_p430_f_r2xx__4xx_2gpio_2gpio__ex2__input_capture_8c}{}\doxysection{Resources/\+Software/msp430\+\_\+driverlib\+\_\+2\+\_\+91\+\_\+13\+\_\+01/examples/\+MSP430\+FR2xx\+\_\+4xx/gpio/gpio\+\_\+ex2\+\_\+input\+Capture.c File Reference}
\label{_m_s_p430_f_r2xx__4xx_2gpio_2gpio__ex2__input_capture_8c}\index{Resources/Software/msp430\_driverlib\_2\_91\_13\_01/examples/MSP430FR2xx\_4xx/gpio/gpio\_ex2\_inputCapture.c@{Resources/Software/msp430\_driverlib\_2\_91\_13\_01/examples/MSP430FR2xx\_4xx/gpio/gpio\_ex2\_inputCapture.c}}
{\ttfamily \#include \char`\"{}driverlib.\+h\char`\"{}}\newline
{\ttfamily \#include \char`\"{}Board.\+h\char`\"{}}\newline
\doxysubsection*{Functions}
\begin{DoxyCompactItemize}
\item
void \mbox{\hyperlink{_m_s_p430_f_r2xx__4xx_2gpio_2gpio__ex2__input_capture_8c_a6288eba0f8e8ad3ab1544ad731eb7667}{main}} (void)
\begin{DoxyCompactList}\small\item\em MSP430\+FR2xx\+\_\+4xx Board. \end{DoxyCompactList}\item
void \mbox{\hyperlink{_m_s_p430_f_r2xx__4xx_2gpio_2gpio__ex2__input_capture_8c_a1c48a061477784865d41fd1fbcd76419}{P1\+\_\+\+ISR}} (void)
\end{DoxyCompactItemize}
\doxysubsection{Function Documentation}
\mbox{\Hypertarget{_m_s_p430_f_r2xx__4xx_2gpio_2gpio__ex2__input_capture_8c_a6288eba0f8e8ad3ab1544ad731eb7667}\label{_m_s_p430_f_r2xx__4xx_2gpio_2gpio__ex2__input_capture_8c_a6288eba0f8e8ad3ab1544ad731eb7667}}
\index{gpio\_ex2\_inputCapture.c@{gpio\_ex2\_inputCapture.c}!main@{main}}
\index{main@{main}!gpio\_ex2\_inputCapture.c@{gpio\_ex2\_inputCapture.c}}
\doxysubsubsection{\texorpdfstring{main()}{main()}}
{\footnotesize\ttfamily void main (\begin{DoxyParamCaption}\item[{void}]{ }\end{DoxyParamCaption})}
MSP430\+FR2xx\+\_\+4xx Board.
Definition at line 63 of file gpio\+\_\+ex2\+\_\+input\+Capture.\+c.
References \+\_\+\+\_\+no\+\_\+operation().
\mbox{\Hypertarget{_m_s_p430_f_r2xx__4xx_2gpio_2gpio__ex2__input_capture_8c_a1c48a061477784865d41fd1fbcd76419}\label{_m_s_p430_f_r2xx__4xx_2gpio_2gpio__ex2__input_capture_8c_a1c48a061477784865d41fd1fbcd76419}}
\index{gpio\_ex2\_inputCapture.c@{gpio\_ex2\_inputCapture.c}!P1\_ISR@{P1\_ISR}}
\index{P1\_ISR@{P1\_ISR}!gpio\_ex2\_inputCapture.c@{gpio\_ex2\_inputCapture.c}}
\doxysubsubsection{\texorpdfstring{P1\_ISR()}{P1\_ISR()}}
{\footnotesize\ttfamily void P1\+\_\+\+ISR (\begin{DoxyParamCaption}\item[{void}]{ }\end{DoxyParamCaption})}
Definition at line 121 of file gpio\+\_\+ex2\+\_\+input\+Capture.\+c.

View File

@@ -0,0 +1,46 @@
\hypertarget{_m_s_p430_f_r2xx__4xx_2gpio_2gpio__ex3__software_poll_8c}{}\doxysection{Resources/\+Software/msp430\+\_\+driverlib\+\_\+2\+\_\+91\+\_\+13\+\_\+01/examples/\+MSP430\+FR2xx\+\_\+4xx/gpio/gpio\+\_\+ex3\+\_\+software\+Poll.c File Reference}
\label{_m_s_p430_f_r2xx__4xx_2gpio_2gpio__ex3__software_poll_8c}\index{Resources/Software/msp430\_driverlib\_2\_91\_13\_01/examples/MSP430FR2xx\_4xx/gpio/gpio\_ex3\_softwarePoll.c@{Resources/Software/msp430\_driverlib\_2\_91\_13\_01/examples/MSP430FR2xx\_4xx/gpio/gpio\_ex3\_softwarePoll.c}}
{\ttfamily \#include \char`\"{}driverlib.\+h\char`\"{}}\newline
{\ttfamily \#include \char`\"{}Board.\+h\char`\"{}}\newline
\doxysubsection*{Functions}
\begin{DoxyCompactItemize}
\item
void \mbox{\hyperlink{_m_s_p430_f_r2xx__4xx_2gpio_2gpio__ex3__software_poll_8c_a6288eba0f8e8ad3ab1544ad731eb7667}{main}} (void)
\end{DoxyCompactItemize}
\doxysubsection{Function Documentation}
\mbox{\Hypertarget{_m_s_p430_f_r2xx__4xx_2gpio_2gpio__ex3__software_poll_8c_a6288eba0f8e8ad3ab1544ad731eb7667}\label{_m_s_p430_f_r2xx__4xx_2gpio_2gpio__ex3__software_poll_8c_a6288eba0f8e8ad3ab1544ad731eb7667}}
\index{gpio\_ex3\_softwarePoll.c@{gpio\_ex3\_softwarePoll.c}!main@{main}}
\index{main@{main}!gpio\_ex3\_softwarePoll.c@{gpio\_ex3\_softwarePoll.c}}
\doxysubsubsection{\texorpdfstring{main()}{main()}}
{\footnotesize\ttfamily void main (\begin{DoxyParamCaption}\item[{void}]{ }\end{DoxyParamCaption})}
Software Poll S1, Set LED1 if S1 =1
Poll S1 in a loop, if hi LED1 is set, if low, LED1 reset. ACLK = n/a, MCLK = SMCLK = default DCO \begin{DoxyVerb} MSP430FR2xx_4xx Board
-----------------
/|\| |
| | |
--|RST |
| |
S1-->| |-->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 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 None
\end{DoxyItemize}
Definition at line 60 of file gpio\+\_\+ex3\+\_\+software\+Poll.\+c.
References GPIO\+\_\+set\+Output\+High\+On\+Pin(), and GPIO\+\_\+set\+Output\+Low\+On\+Pin().

View File

@@ -0,0 +1,44 @@
\hypertarget{_m_s_p430_f_r2xx__4xx_2gpio_2gpio__ex4__write_to_port1_8c}{}\doxysection{Resources/\+Software/msp430\+\_\+driverlib\+\_\+2\+\_\+91\+\_\+13\+\_\+01/examples/\+MSP430\+FR2xx\+\_\+4xx/gpio/gpio\+\_\+ex4\+\_\+write\+To\+Port1.c File Reference}
\label{_m_s_p430_f_r2xx__4xx_2gpio_2gpio__ex4__write_to_port1_8c}\index{Resources/Software/msp430\_driverlib\_2\_91\_13\_01/examples/MSP430FR2xx\_4xx/gpio/gpio\_ex4\_writeToPort1.c@{Resources/Software/msp430\_driverlib\_2\_91\_13\_01/examples/MSP430FR2xx\_4xx/gpio/gpio\_ex4\_writeToPort1.c}}
{\ttfamily \#include \char`\"{}driverlib.\+h\char`\"{}}\newline
\doxysubsection*{Functions}
\begin{DoxyCompactItemize}
\item
void \mbox{\hyperlink{_m_s_p430_f_r2xx__4xx_2gpio_2gpio__ex4__write_to_port1_8c_a6288eba0f8e8ad3ab1544ad731eb7667}{main}} (void)
\end{DoxyCompactItemize}
\doxysubsection{Function Documentation}
\mbox{\Hypertarget{_m_s_p430_f_r2xx__4xx_2gpio_2gpio__ex4__write_to_port1_8c_a6288eba0f8e8ad3ab1544ad731eb7667}\label{_m_s_p430_f_r2xx__4xx_2gpio_2gpio__ex4__write_to_port1_8c_a6288eba0f8e8ad3ab1544ad731eb7667}}
\index{gpio\_ex4\_writeToPort1.c@{gpio\_ex4\_writeToPort1.c}!main@{main}}
\index{main@{main}!gpio\_ex4\_writeToPort1.c@{gpio\_ex4\_writeToPort1.c}}
\doxysubsubsection{\texorpdfstring{main()}{main()}}
{\footnotesize\ttfamily void main (\begin{DoxyParamCaption}\item[{void}]{ }\end{DoxyParamCaption})}
Write a byte to Port 1
Description\+: Writes a byte(0x\+FF) to Port 1 and stays in LPM4 mode ACLK = n/a, MCLK = SMCLK = default DCO \begin{DoxyVerb} MSP430FR4133
-----------------
/|\| |
| | |
--|RST |
| P1.x|-->HI
| |
| |
\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 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 None.
\end{DoxyItemize}
Definition at line 59 of file gpio\+\_\+ex4\+\_\+write\+To\+Port1.\+c.
References \+\_\+\+\_\+no\+\_\+operation(), and GPIO\+\_\+set\+Output\+High\+On\+Pin().

View File

@@ -0,0 +1,52 @@
\hypertarget{_m_s_p430_f_r2xx__4xx_2mpy32_2mpy32__ex10__32bit_signed_multiply_8c}{}\doxysection{Resources/\+Software/msp430\+\_\+driverlib\+\_\+2\+\_\+91\+\_\+13\+\_\+01/examples/\+MSP430\+FR2xx\+\_\+4xx/mpy32/mpy32\+\_\+ex10\+\_\+32bit\+Signed\+Multiply.c File Reference}
\label{_m_s_p430_f_r2xx__4xx_2mpy32_2mpy32__ex10__32bit_signed_multiply_8c}\index{Resources/Software/msp430\_driverlib\_2\_91\_13\_01/examples/MSP430FR2xx\_4xx/mpy32/mpy32\_ex10\_32bitSignedMultiply.c@{Resources/Software/msp430\_driverlib\_2\_91\_13\_01/examples/MSP430FR2xx\_4xx/mpy32/mpy32\_ex10\_32bitSignedMultiply.c}}
{\ttfamily \#include \char`\"{}driverlib.\+h\char`\"{}}\newline
\doxysubsection*{Functions}
\begin{DoxyCompactItemize}
\item
void \mbox{\hyperlink{_m_s_p430_f_r2xx__4xx_2mpy32_2mpy32__ex10__32bit_signed_multiply_8c_a6288eba0f8e8ad3ab1544ad731eb7667}{main}} (void)
\end{DoxyCompactItemize}
\doxysubsection{Function Documentation}
\mbox{\Hypertarget{_m_s_p430_f_r2xx__4xx_2mpy32_2mpy32__ex10__32bit_signed_multiply_8c_a6288eba0f8e8ad3ab1544ad731eb7667}\label{_m_s_p430_f_r2xx__4xx_2mpy32_2mpy32__ex10__32bit_signed_multiply_8c_a6288eba0f8e8ad3ab1544ad731eb7667}}
\index{mpy32\_ex10\_32bitSignedMultiply.c@{mpy32\_ex10\_32bitSignedMultiply.c}!main@{main}}
\index{main@{main}!mpy32\_ex10\_32bitSignedMultiply.c@{mpy32\_ex10\_32bitSignedMultiply.c}}
\doxysubsubsection{\texorpdfstring{main()}{main()}}
{\footnotesize\ttfamily void main (\begin{DoxyParamCaption}\item[{void}]{ }\end{DoxyParamCaption})}
MPY -\/ 32x32 Signed Multiply
Hardware multiplier is used to multiply two numbers. The calculation is automatically initiated after the second operand is loaded. Results are stored in RES0, RES1, RES2 and RES3.
ACLK = 32.\+768k\+Hz, MCLK = SMCLK = default DCO\hypertarget{_m_s_p430_f_r2xx__4xx_2mpy32_2mpy32__ex10__32bit_signed_multiply_8c_autotoc_md84}{}\doxysubsubsection{Tested On\+: MSP430\+F5438\+A,\+MSP430\+FR5739,\+MSP430\+FR5969,\+MSP430\+FR2433}\label{_m_s_p430_f_r2xx__4xx_2mpy32_2mpy32__ex10__32bit_signed_multiply_8c_autotoc_md84}
\tabulinesep=1mm
\begin{longtabu}spread 0pt [c]{*{2}{|X[-1]}|}
\hline
\PBS\centering \cellcolor{\tableheadbgcolor}\textbf{ / }&\PBS\centering \cellcolor{\tableheadbgcolor}\textbf{ $|$ }\\\cline{1-2}
\endfirsthead
\hline
\endfoot
\hline
\PBS\centering \cellcolor{\tableheadbgcolor}\textbf{ / }&\PBS\centering \cellcolor{\tableheadbgcolor}\textbf{ $|$ }\\\cline{1-2}
\endhead
-- &RST \\\cline{1-2}
\end{longtabu}
$\vert$ $\vert$ $\vert$ $\vert$
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 MPY 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 NONE
\end{DoxyItemize}
Definition at line 63 of file mpy32\+\_\+ex10\+\_\+32bit\+Signed\+Multiply.\+c.
References \+\_\+\+\_\+no\+\_\+operation().

View File

@@ -0,0 +1,52 @@
\hypertarget{_m_s_p430_f_r2xx__4xx_2mpy32_2mpy32__ex11__32bit_signed_multiply_accum_8c}{}\doxysection{Resources/\+Software/msp430\+\_\+driverlib\+\_\+2\+\_\+91\+\_\+13\+\_\+01/examples/\+MSP430\+FR2xx\+\_\+4xx/mpy32/mpy32\+\_\+ex11\+\_\+32bit\+Signed\+Multiply\+Accum.c File Reference}
\label{_m_s_p430_f_r2xx__4xx_2mpy32_2mpy32__ex11__32bit_signed_multiply_accum_8c}\index{Resources/Software/msp430\_driverlib\_2\_91\_13\_01/examples/MSP430FR2xx\_4xx/mpy32/mpy32\_ex11\_32bitSignedMultiplyAccum.c@{Resources/Software/msp430\_driverlib\_2\_91\_13\_01/examples/MSP430FR2xx\_4xx/mpy32/mpy32\_ex11\_32bitSignedMultiplyAccum.c}}
{\ttfamily \#include \char`\"{}driverlib.\+h\char`\"{}}\newline
\doxysubsection*{Functions}
\begin{DoxyCompactItemize}
\item
void \mbox{\hyperlink{_m_s_p430_f_r2xx__4xx_2mpy32_2mpy32__ex11__32bit_signed_multiply_accum_8c_a6288eba0f8e8ad3ab1544ad731eb7667}{main}} (void)
\end{DoxyCompactItemize}
\doxysubsection{Function Documentation}
\mbox{\Hypertarget{_m_s_p430_f_r2xx__4xx_2mpy32_2mpy32__ex11__32bit_signed_multiply_accum_8c_a6288eba0f8e8ad3ab1544ad731eb7667}\label{_m_s_p430_f_r2xx__4xx_2mpy32_2mpy32__ex11__32bit_signed_multiply_accum_8c_a6288eba0f8e8ad3ab1544ad731eb7667}}
\index{mpy32\_ex11\_32bitSignedMultiplyAccum.c@{mpy32\_ex11\_32bitSignedMultiplyAccum.c}!main@{main}}
\index{main@{main}!mpy32\_ex11\_32bitSignedMultiplyAccum.c@{mpy32\_ex11\_32bitSignedMultiplyAccum.c}}
\doxysubsubsection{\texorpdfstring{main()}{main()}}
{\footnotesize\ttfamily void main (\begin{DoxyParamCaption}\item[{void}]{ }\end{DoxyParamCaption})}
MPY -\/ 32x32 Signed Multiply Accumalate
Hardware multiplier is used to multiply-\/accumalate a set of numbers. The first calculation is automatically initiated after the second operand is loaded. A second multiply-\/accumulate operation is performed next. Results are stored in RES0, RES1, RES2 and RES3. SUMEXT contains the extended sign of the result.
ACLK = 32.\+768k\+Hz, MCLK = SMCLK = default DCO\hypertarget{_m_s_p430_f_r2xx__4xx_2mpy32_2mpy32__ex11__32bit_signed_multiply_accum_8c_autotoc_md85}{}\doxysubsubsection{Tested On\+: MSP430\+F5438\+A,\+MSP430\+FR5739,\+MSP430\+FR5969,\+MSP430\+FR2433}\label{_m_s_p430_f_r2xx__4xx_2mpy32_2mpy32__ex11__32bit_signed_multiply_accum_8c_autotoc_md85}
\tabulinesep=1mm
\begin{longtabu}spread 0pt [c]{*{2}{|X[-1]}|}
\hline
\PBS\centering \cellcolor{\tableheadbgcolor}\textbf{ / }&\PBS\centering \cellcolor{\tableheadbgcolor}\textbf{ $|$ }\\\cline{1-2}
\endfirsthead
\hline
\endfoot
\hline
\PBS\centering \cellcolor{\tableheadbgcolor}\textbf{ / }&\PBS\centering \cellcolor{\tableheadbgcolor}\textbf{ $|$ }\\\cline{1-2}
\endhead
-- &RST \\\cline{1-2}
\end{longtabu}
$\vert$ $\vert$ $\vert$ $\vert$
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 MPY 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 NONE
\end{DoxyItemize}
Definition at line 66 of file mpy32\+\_\+ex11\+\_\+32bit\+Signed\+Multiply\+Accum.\+c.
References \+\_\+\+\_\+no\+\_\+operation().

View File

@@ -0,0 +1,52 @@
\hypertarget{_m_s_p430_f_r2xx__4xx_2mpy32_2mpy32__ex12__32bit_unsigned_multiply_accum_8c}{}\doxysection{Resources/\+Software/msp430\+\_\+driverlib\+\_\+2\+\_\+91\+\_\+13\+\_\+01/examples/\+MSP430\+FR2xx\+\_\+4xx/mpy32/mpy32\+\_\+ex12\+\_\+32bit\+Unsigned\+Multiply\+Accum.c File Reference}
\label{_m_s_p430_f_r2xx__4xx_2mpy32_2mpy32__ex12__32bit_unsigned_multiply_accum_8c}\index{Resources/Software/msp430\_driverlib\_2\_91\_13\_01/examples/MSP430FR2xx\_4xx/mpy32/mpy32\_ex12\_32bitUnsignedMultiplyAccum.c@{Resources/Software/msp430\_driverlib\_2\_91\_13\_01/examples/MSP430FR2xx\_4xx/mpy32/mpy32\_ex12\_32bitUnsignedMultiplyAccum.c}}
{\ttfamily \#include \char`\"{}driverlib.\+h\char`\"{}}\newline
\doxysubsection*{Functions}
\begin{DoxyCompactItemize}
\item
void \mbox{\hyperlink{_m_s_p430_f_r2xx__4xx_2mpy32_2mpy32__ex12__32bit_unsigned_multiply_accum_8c_a6288eba0f8e8ad3ab1544ad731eb7667}{main}} (void)
\end{DoxyCompactItemize}
\doxysubsection{Function Documentation}
\mbox{\Hypertarget{_m_s_p430_f_r2xx__4xx_2mpy32_2mpy32__ex12__32bit_unsigned_multiply_accum_8c_a6288eba0f8e8ad3ab1544ad731eb7667}\label{_m_s_p430_f_r2xx__4xx_2mpy32_2mpy32__ex12__32bit_unsigned_multiply_accum_8c_a6288eba0f8e8ad3ab1544ad731eb7667}}
\index{mpy32\_ex12\_32bitUnsignedMultiplyAccum.c@{mpy32\_ex12\_32bitUnsignedMultiplyAccum.c}!main@{main}}
\index{main@{main}!mpy32\_ex12\_32bitUnsignedMultiplyAccum.c@{mpy32\_ex12\_32bitUnsignedMultiplyAccum.c}}
\doxysubsubsection{\texorpdfstring{main()}{main()}}
{\footnotesize\ttfamily void main (\begin{DoxyParamCaption}\item[{void}]{ }\end{DoxyParamCaption})}
MPY -\/ 32x32 Unsigned Multiply Accumalate
Hardware multiplier is used to multiply-\/accumalate a set of numbers. The first calculation is automatically initiated after the second operand is loaded. A second multiply-\/accumulate operation is performed next. Results are stored in RES0, RES1, RES2 and RES3. SUMEXT contains the extended sign of the result.
ACLK = 32.\+768k\+Hz, MCLK = SMCLK = default DCO\hypertarget{_m_s_p430_f_r2xx__4xx_2mpy32_2mpy32__ex12__32bit_unsigned_multiply_accum_8c_autotoc_md86}{}\doxysubsubsection{Tested On\+: MSP430\+F5438\+A,\+MSP430\+FR5739,\+MSP430\+FR5969,\+MSP430\+FR2433}\label{_m_s_p430_f_r2xx__4xx_2mpy32_2mpy32__ex12__32bit_unsigned_multiply_accum_8c_autotoc_md86}
\tabulinesep=1mm
\begin{longtabu}spread 0pt [c]{*{2}{|X[-1]}|}
\hline
\PBS\centering \cellcolor{\tableheadbgcolor}\textbf{ / }&\PBS\centering \cellcolor{\tableheadbgcolor}\textbf{ $|$ }\\\cline{1-2}
\endfirsthead
\hline
\endfoot
\hline
\PBS\centering \cellcolor{\tableheadbgcolor}\textbf{ / }&\PBS\centering \cellcolor{\tableheadbgcolor}\textbf{ $|$ }\\\cline{1-2}
\endhead
-- &RST \\\cline{1-2}
\end{longtabu}
$\vert$ $\vert$ $\vert$ $\vert$
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 MPY 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 NONE
\end{DoxyItemize}
Definition at line 65 of file mpy32\+\_\+ex12\+\_\+32bit\+Unsigned\+Multiply\+Accum.\+c.
References \+\_\+\+\_\+no\+\_\+operation().

View File

@@ -0,0 +1,94 @@
\hypertarget{_m_s_p430_f_r2xx__4xx_2mpy32_2mpy32__ex13__saturation_underflow_8c}{}\doxysection{Resources/\+Software/msp430\+\_\+driverlib\+\_\+2\+\_\+91\+\_\+13\+\_\+01/examples/\+MSP430\+FR2xx\+\_\+4xx/mpy32/mpy32\+\_\+ex13\+\_\+saturation\+Underflow.c File Reference}
\label{_m_s_p430_f_r2xx__4xx_2mpy32_2mpy32__ex13__saturation_underflow_8c}\index{Resources/Software/msp430\_driverlib\_2\_91\_13\_01/examples/MSP430FR2xx\_4xx/mpy32/mpy32\_ex13\_saturationUnderflow.c@{Resources/Software/msp430\_driverlib\_2\_91\_13\_01/examples/MSP430FR2xx\_4xx/mpy32/mpy32\_ex13\_saturationUnderflow.c}}
{\ttfamily \#include \char`\"{}driverlib.\+h\char`\"{}}\newline
\doxysubsection*{Functions}
\begin{DoxyCompactItemize}
\item
void \mbox{\hyperlink{_m_s_p430_f_r2xx__4xx_2mpy32_2mpy32__ex13__saturation_underflow_8c_a6288eba0f8e8ad3ab1544ad731eb7667}{main}} (void)
\end{DoxyCompactItemize}
\doxysubsection*{Variables}
\begin{DoxyCompactItemize}
\item
uint32\+\_\+t \mbox{\hyperlink{_m_s_p430_f_r2xx__4xx_2mpy32_2mpy32__ex13__saturation_underflow_8c_a393f0b6791aa78cf29746a1877494247}{Result}}
\item
uint16\+\_\+t \mbox{\hyperlink{_m_s_p430_f_r2xx__4xx_2mpy32_2mpy32__ex13__saturation_underflow_8c_a9763beb1d3667cef32e0da3789b01e13}{Result\+\_\+lower16}}
\item
uint16\+\_\+t \mbox{\hyperlink{_m_s_p430_f_r2xx__4xx_2mpy32_2mpy32__ex13__saturation_underflow_8c_afbdc37ba5018f94d28647a31a235b701}{Result\+\_\+upper16}}
\end{DoxyCompactItemize}
\doxysubsection{Function Documentation}
\mbox{\Hypertarget{_m_s_p430_f_r2xx__4xx_2mpy32_2mpy32__ex13__saturation_underflow_8c_a6288eba0f8e8ad3ab1544ad731eb7667}\label{_m_s_p430_f_r2xx__4xx_2mpy32_2mpy32__ex13__saturation_underflow_8c_a6288eba0f8e8ad3ab1544ad731eb7667}}
\index{mpy32\_ex13\_saturationUnderflow.c@{mpy32\_ex13\_saturationUnderflow.c}!main@{main}}
\index{main@{main}!mpy32\_ex13\_saturationUnderflow.c@{mpy32\_ex13\_saturationUnderflow.c}}
\doxysubsubsection{\texorpdfstring{main()}{main()}}
{\footnotesize\ttfamily void main (\begin{DoxyParamCaption}\item[{void}]{ }\end{DoxyParamCaption})}
Definition at line 69 of file mpy32\+\_\+ex13\+\_\+saturation\+Underflow.\+c.
References \+\_\+\+\_\+no\+\_\+operation(), Result, Result\+\_\+lower16, and Result\+\_\+upper16.
\doxysubsection{Variable Documentation}
\mbox{\Hypertarget{_m_s_p430_f_r2xx__4xx_2mpy32_2mpy32__ex13__saturation_underflow_8c_a393f0b6791aa78cf29746a1877494247}\label{_m_s_p430_f_r2xx__4xx_2mpy32_2mpy32__ex13__saturation_underflow_8c_a393f0b6791aa78cf29746a1877494247}}
\index{mpy32\_ex13\_saturationUnderflow.c@{mpy32\_ex13\_saturationUnderflow.c}!Result@{Result}}
\index{Result@{Result}!mpy32\_ex13\_saturationUnderflow.c@{mpy32\_ex13\_saturationUnderflow.c}}
\doxysubsubsection{\texorpdfstring{Result}{Result}}
{\footnotesize\ttfamily uint32\+\_\+t Result}
MPY -\/ Saturation Mpode Underflow Test
Description\+: The example illustrates a special case showing underflow. Underflow occurs when adding 2 negative numbers yields a positive result. By having the saturation mode enabled, the result if rounded off to the highest negative number (0x8000.\+0000 for 16 bit). Results can be viewed in the debugger window.
ACLK = 32.\+768k\+Hz, MCLK = SMCLK = default DCO\hypertarget{_m_s_p430_f_r2xx__4xx_2mpy32_2mpy32__ex13__saturation_underflow_8c_autotoc_md87}{}\doxysubsubsection{Tested On\+: MSP430\+F5438\+A,\+MSP430\+FR5739,\+MSP430\+FR5969,\+MSP430\+FR2433}\label{_m_s_p430_f_r2xx__4xx_2mpy32_2mpy32__ex13__saturation_underflow_8c_autotoc_md87}
\tabulinesep=1mm
\begin{longtabu}spread 0pt [c]{*{2}{|X[-1]}|}
\hline
\PBS\centering \cellcolor{\tableheadbgcolor}\textbf{ / }&\PBS\centering \cellcolor{\tableheadbgcolor}\textbf{ $|$ }\\\cline{1-2}
\endfirsthead
\hline
\endfoot
\hline
\PBS\centering \cellcolor{\tableheadbgcolor}\textbf{ / }&\PBS\centering \cellcolor{\tableheadbgcolor}\textbf{ $|$ }\\\cline{1-2}
\endhead
-- &RST \\\cline{1-2}
\end{longtabu}
$\vert$ $\vert$ $\vert$ $\vert$
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 MPY 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 NONE
\end{DoxyItemize}
Definition at line 65 of file mpy32\+\_\+ex13\+\_\+saturation\+Underflow.\+c.
\mbox{\Hypertarget{_m_s_p430_f_r2xx__4xx_2mpy32_2mpy32__ex13__saturation_underflow_8c_a9763beb1d3667cef32e0da3789b01e13}\label{_m_s_p430_f_r2xx__4xx_2mpy32_2mpy32__ex13__saturation_underflow_8c_a9763beb1d3667cef32e0da3789b01e13}}
\index{mpy32\_ex13\_saturationUnderflow.c@{mpy32\_ex13\_saturationUnderflow.c}!Result\_lower16@{Result\_lower16}}
\index{Result\_lower16@{Result\_lower16}!mpy32\_ex13\_saturationUnderflow.c@{mpy32\_ex13\_saturationUnderflow.c}}
\doxysubsubsection{\texorpdfstring{Result\_lower16}{Result\_lower16}}
{\footnotesize\ttfamily uint16\+\_\+t Result\+\_\+lower16}
Definition at line 66 of file mpy32\+\_\+ex13\+\_\+saturation\+Underflow.\+c.
\mbox{\Hypertarget{_m_s_p430_f_r2xx__4xx_2mpy32_2mpy32__ex13__saturation_underflow_8c_afbdc37ba5018f94d28647a31a235b701}\label{_m_s_p430_f_r2xx__4xx_2mpy32_2mpy32__ex13__saturation_underflow_8c_afbdc37ba5018f94d28647a31a235b701}}
\index{mpy32\_ex13\_saturationUnderflow.c@{mpy32\_ex13\_saturationUnderflow.c}!Result\_upper16@{Result\_upper16}}
\index{Result\_upper16@{Result\_upper16}!mpy32\_ex13\_saturationUnderflow.c@{mpy32\_ex13\_saturationUnderflow.c}}
\doxysubsubsection{\texorpdfstring{Result\_upper16}{Result\_upper16}}
{\footnotesize\ttfamily uint16\+\_\+t Result\+\_\+upper16}
Definition at line 67 of file mpy32\+\_\+ex13\+\_\+saturation\+Underflow.\+c.

View File

@@ -0,0 +1,94 @@
\hypertarget{_m_s_p430_f_r2xx__4xx_2mpy32_2mpy32__ex14__saturation_overflow_8c}{}\doxysection{Resources/\+Software/msp430\+\_\+driverlib\+\_\+2\+\_\+91\+\_\+13\+\_\+01/examples/\+MSP430\+FR2xx\+\_\+4xx/mpy32/mpy32\+\_\+ex14\+\_\+saturation\+Overflow.c File Reference}
\label{_m_s_p430_f_r2xx__4xx_2mpy32_2mpy32__ex14__saturation_overflow_8c}\index{Resources/Software/msp430\_driverlib\_2\_91\_13\_01/examples/MSP430FR2xx\_4xx/mpy32/mpy32\_ex14\_saturationOverflow.c@{Resources/Software/msp430\_driverlib\_2\_91\_13\_01/examples/MSP430FR2xx\_4xx/mpy32/mpy32\_ex14\_saturationOverflow.c}}
{\ttfamily \#include \char`\"{}driverlib.\+h\char`\"{}}\newline
\doxysubsection*{Functions}
\begin{DoxyCompactItemize}
\item
void \mbox{\hyperlink{_m_s_p430_f_r2xx__4xx_2mpy32_2mpy32__ex14__saturation_overflow_8c_a6288eba0f8e8ad3ab1544ad731eb7667}{main}} (void)
\end{DoxyCompactItemize}
\doxysubsection*{Variables}
\begin{DoxyCompactItemize}
\item
uint32\+\_\+t \mbox{\hyperlink{_m_s_p430_f_r2xx__4xx_2mpy32_2mpy32__ex14__saturation_overflow_8c_a393f0b6791aa78cf29746a1877494247}{Result}}
\item
uint16\+\_\+t \mbox{\hyperlink{_m_s_p430_f_r2xx__4xx_2mpy32_2mpy32__ex14__saturation_overflow_8c_a9763beb1d3667cef32e0da3789b01e13}{Result\+\_\+lower16}}
\item
uint16\+\_\+t \mbox{\hyperlink{_m_s_p430_f_r2xx__4xx_2mpy32_2mpy32__ex14__saturation_overflow_8c_afbdc37ba5018f94d28647a31a235b701}{Result\+\_\+upper16}}
\end{DoxyCompactItemize}
\doxysubsection{Function Documentation}
\mbox{\Hypertarget{_m_s_p430_f_r2xx__4xx_2mpy32_2mpy32__ex14__saturation_overflow_8c_a6288eba0f8e8ad3ab1544ad731eb7667}\label{_m_s_p430_f_r2xx__4xx_2mpy32_2mpy32__ex14__saturation_overflow_8c_a6288eba0f8e8ad3ab1544ad731eb7667}}
\index{mpy32\_ex14\_saturationOverflow.c@{mpy32\_ex14\_saturationOverflow.c}!main@{main}}
\index{main@{main}!mpy32\_ex14\_saturationOverflow.c@{mpy32\_ex14\_saturationOverflow.c}}
\doxysubsubsection{\texorpdfstring{main()}{main()}}
{\footnotesize\ttfamily void main (\begin{DoxyParamCaption}\item[{void}]{ }\end{DoxyParamCaption})}
Definition at line 70 of file mpy32\+\_\+ex14\+\_\+saturation\+Overflow.\+c.
References \+\_\+\+\_\+no\+\_\+operation(), Result, Result\+\_\+lower16, and Result\+\_\+upper16.
\doxysubsection{Variable Documentation}
\mbox{\Hypertarget{_m_s_p430_f_r2xx__4xx_2mpy32_2mpy32__ex14__saturation_overflow_8c_a393f0b6791aa78cf29746a1877494247}\label{_m_s_p430_f_r2xx__4xx_2mpy32_2mpy32__ex14__saturation_overflow_8c_a393f0b6791aa78cf29746a1877494247}}
\index{mpy32\_ex14\_saturationOverflow.c@{mpy32\_ex14\_saturationOverflow.c}!Result@{Result}}
\index{Result@{Result}!mpy32\_ex14\_saturationOverflow.c@{mpy32\_ex14\_saturationOverflow.c}}
\doxysubsubsection{\texorpdfstring{Result}{Result}}
{\footnotesize\ttfamily uint32\+\_\+t Result}
MPY -\/ Saturation Mode Overflow Test
The example illustrates a special case showing overflow. The addition result of 2 positive numbers may exceed the highest positive number (0x7\+FFF FFFF for 32 bit result) due to overflow indicating a negative result. By having the saturation mode enabled, this result can be truncated off to this highest positive number. Results with and without saturation mode are shown.
ACLK = 32.\+768k\+Hz, MCLK = SMCLK = default DCO\hypertarget{_m_s_p430_f_r2xx__4xx_2mpy32_2mpy32__ex14__saturation_overflow_8c_autotoc_md88}{}\doxysubsubsection{Tested On\+: MSP430\+F5438\+A,\+MSP430\+FR5739,\+MSP430\+FR5969,\+MSP430\+FR2433}\label{_m_s_p430_f_r2xx__4xx_2mpy32_2mpy32__ex14__saturation_overflow_8c_autotoc_md88}
\tabulinesep=1mm
\begin{longtabu}spread 0pt [c]{*{2}{|X[-1]}|}
\hline
\PBS\centering \cellcolor{\tableheadbgcolor}\textbf{ / }&\PBS\centering \cellcolor{\tableheadbgcolor}\textbf{ $|$ }\\\cline{1-2}
\endfirsthead
\hline
\endfoot
\hline
\PBS\centering \cellcolor{\tableheadbgcolor}\textbf{ / }&\PBS\centering \cellcolor{\tableheadbgcolor}\textbf{ $|$ }\\\cline{1-2}
\endhead
-- &RST \\\cline{1-2}
\end{longtabu}
$\vert$ $\vert$ $\vert$ $\vert$
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 MPY 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 NONE
\end{DoxyItemize}
Definition at line 66 of file mpy32\+\_\+ex14\+\_\+saturation\+Overflow.\+c.
\mbox{\Hypertarget{_m_s_p430_f_r2xx__4xx_2mpy32_2mpy32__ex14__saturation_overflow_8c_a9763beb1d3667cef32e0da3789b01e13}\label{_m_s_p430_f_r2xx__4xx_2mpy32_2mpy32__ex14__saturation_overflow_8c_a9763beb1d3667cef32e0da3789b01e13}}
\index{mpy32\_ex14\_saturationOverflow.c@{mpy32\_ex14\_saturationOverflow.c}!Result\_lower16@{Result\_lower16}}
\index{Result\_lower16@{Result\_lower16}!mpy32\_ex14\_saturationOverflow.c@{mpy32\_ex14\_saturationOverflow.c}}
\doxysubsubsection{\texorpdfstring{Result\_lower16}{Result\_lower16}}
{\footnotesize\ttfamily uint16\+\_\+t Result\+\_\+lower16}
Definition at line 67 of file mpy32\+\_\+ex14\+\_\+saturation\+Overflow.\+c.
\mbox{\Hypertarget{_m_s_p430_f_r2xx__4xx_2mpy32_2mpy32__ex14__saturation_overflow_8c_afbdc37ba5018f94d28647a31a235b701}\label{_m_s_p430_f_r2xx__4xx_2mpy32_2mpy32__ex14__saturation_overflow_8c_afbdc37ba5018f94d28647a31a235b701}}
\index{mpy32\_ex14\_saturationOverflow.c@{mpy32\_ex14\_saturationOverflow.c}!Result\_upper16@{Result\_upper16}}
\index{Result\_upper16@{Result\_upper16}!mpy32\_ex14\_saturationOverflow.c@{mpy32\_ex14\_saturationOverflow.c}}
\doxysubsubsection{\texorpdfstring{Result\_upper16}{Result\_upper16}}
{\footnotesize\ttfamily uint16\+\_\+t Result\+\_\+upper16}
Definition at line 68 of file mpy32\+\_\+ex14\+\_\+saturation\+Overflow.\+c.

View File

@@ -0,0 +1,82 @@
\hypertarget{_m_s_p430_f_r2xx__4xx_2mpy32_2mpy32__ex15__fraction_mode_8c}{}\doxysection{Resources/\+Software/msp430\+\_\+driverlib\+\_\+2\+\_\+91\+\_\+13\+\_\+01/examples/\+MSP430\+FR2xx\+\_\+4xx/mpy32/mpy32\+\_\+ex15\+\_\+fraction\+Mode.c File Reference}
\label{_m_s_p430_f_r2xx__4xx_2mpy32_2mpy32__ex15__fraction_mode_8c}\index{Resources/Software/msp430\_driverlib\_2\_91\_13\_01/examples/MSP430FR2xx\_4xx/mpy32/mpy32\_ex15\_fractionMode.c@{Resources/Software/msp430\_driverlib\_2\_91\_13\_01/examples/MSP430FR2xx\_4xx/mpy32/mpy32\_ex15\_fractionMode.c}}
{\ttfamily \#include \char`\"{}driverlib.\+h\char`\"{}}\newline
\doxysubsection*{Functions}
\begin{DoxyCompactItemize}
\item
void \mbox{\hyperlink{_m_s_p430_f_r2xx__4xx_2mpy32_2mpy32__ex15__fraction_mode_8c_a6288eba0f8e8ad3ab1544ad731eb7667}{main}} (void)
\end{DoxyCompactItemize}
\doxysubsection*{Variables}
\begin{DoxyCompactItemize}
\item
uint32\+\_\+t \mbox{\hyperlink{_m_s_p430_f_r2xx__4xx_2mpy32_2mpy32__ex15__fraction_mode_8c_a393f0b6791aa78cf29746a1877494247}{Result}}
\item
uint16\+\_\+t \mbox{\hyperlink{_m_s_p430_f_r2xx__4xx_2mpy32_2mpy32__ex15__fraction_mode_8c_a92e9913f091bda690c6dbc95a2319102}{Result\+\_\+\+Q15}}
\end{DoxyCompactItemize}
\doxysubsection{Function Documentation}
\mbox{\Hypertarget{_m_s_p430_f_r2xx__4xx_2mpy32_2mpy32__ex15__fraction_mode_8c_a6288eba0f8e8ad3ab1544ad731eb7667}\label{_m_s_p430_f_r2xx__4xx_2mpy32_2mpy32__ex15__fraction_mode_8c_a6288eba0f8e8ad3ab1544ad731eb7667}}
\index{mpy32\_ex15\_fractionMode.c@{mpy32\_ex15\_fractionMode.c}!main@{main}}
\index{main@{main}!mpy32\_ex15\_fractionMode.c@{mpy32\_ex15\_fractionMode.c}}
\doxysubsubsection{\texorpdfstring{main()}{main()}}
{\footnotesize\ttfamily void main (\begin{DoxyParamCaption}\item[{void}]{ }\end{DoxyParamCaption})}
Definition at line 66 of file mpy32\+\_\+ex15\+\_\+fraction\+Mode.\+c.
References \+\_\+\+\_\+no\+\_\+operation(), Result, and Result\+\_\+\+Q15.
\doxysubsection{Variable Documentation}
\mbox{\Hypertarget{_m_s_p430_f_r2xx__4xx_2mpy32_2mpy32__ex15__fraction_mode_8c_a393f0b6791aa78cf29746a1877494247}\label{_m_s_p430_f_r2xx__4xx_2mpy32_2mpy32__ex15__fraction_mode_8c_a393f0b6791aa78cf29746a1877494247}}
\index{mpy32\_ex15\_fractionMode.c@{mpy32\_ex15\_fractionMode.c}!Result@{Result}}
\index{Result@{Result}!mpy32\_ex15\_fractionMode.c@{mpy32\_ex15\_fractionMode.c}}
\doxysubsubsection{\texorpdfstring{Result}{Result}}
{\footnotesize\ttfamily uint32\+\_\+t Result}
MPY -\/ Fractional mode, Q15 multiplication
The example illustrates multiplication of 2 Q15 numbers in fractional mode. The result is a Q15 (15 bit) number stored in the RES1 register. It can be viewed in the debugger window.
ACLK = 32.\+768k\+Hz, MCLK = SMCLK = default DCO\hypertarget{_m_s_p430_f_r2xx__4xx_2mpy32_2mpy32__ex15__fraction_mode_8c_autotoc_md89}{}\doxysubsubsection{Tested On\+: MSP430\+F5438\+A,\+MSP430\+FR5739,\+MSP430\+FR5969,\+MSP430\+FR2433}\label{_m_s_p430_f_r2xx__4xx_2mpy32_2mpy32__ex15__fraction_mode_8c_autotoc_md89}
\tabulinesep=1mm
\begin{longtabu}spread 0pt [c]{*{2}{|X[-1]}|}
\hline
\PBS\centering \cellcolor{\tableheadbgcolor}\textbf{ / }&\PBS\centering \cellcolor{\tableheadbgcolor}\textbf{ $|$ }\\\cline{1-2}
\endfirsthead
\hline
\endfoot
\hline
\PBS\centering \cellcolor{\tableheadbgcolor}\textbf{ / }&\PBS\centering \cellcolor{\tableheadbgcolor}\textbf{ $|$ }\\\cline{1-2}
\endhead
-- &RST \\\cline{1-2}
\end{longtabu}
$\vert$ $\vert$ $\vert$ $\vert$
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 MPY 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 NONE
\end{DoxyItemize}
Definition at line 63 of file mpy32\+\_\+ex15\+\_\+fraction\+Mode.\+c.
\mbox{\Hypertarget{_m_s_p430_f_r2xx__4xx_2mpy32_2mpy32__ex15__fraction_mode_8c_a92e9913f091bda690c6dbc95a2319102}\label{_m_s_p430_f_r2xx__4xx_2mpy32_2mpy32__ex15__fraction_mode_8c_a92e9913f091bda690c6dbc95a2319102}}
\index{mpy32\_ex15\_fractionMode.c@{mpy32\_ex15\_fractionMode.c}!Result\_Q15@{Result\_Q15}}
\index{Result\_Q15@{Result\_Q15}!mpy32\_ex15\_fractionMode.c@{mpy32\_ex15\_fractionMode.c}}
\doxysubsubsection{\texorpdfstring{Result\_Q15}{Result\_Q15}}
{\footnotesize\ttfamily uint16\+\_\+t Result\+\_\+\+Q15}
Definition at line 64 of file mpy32\+\_\+ex15\+\_\+fraction\+Mode.\+c.

View File

@@ -0,0 +1,52 @@
\hypertarget{_m_s_p430_f_r2xx__4xx_2mpy32_2mpy32__ex1__16bit_unsigned_multiply_8c}{}\doxysection{Resources/\+Software/msp430\+\_\+driverlib\+\_\+2\+\_\+91\+\_\+13\+\_\+01/examples/\+MSP430\+FR2xx\+\_\+4xx/mpy32/mpy32\+\_\+ex1\+\_\+16bit\+Unsigned\+Multiply.c File Reference}
\label{_m_s_p430_f_r2xx__4xx_2mpy32_2mpy32__ex1__16bit_unsigned_multiply_8c}\index{Resources/Software/msp430\_driverlib\_2\_91\_13\_01/examples/MSP430FR2xx\_4xx/mpy32/mpy32\_ex1\_16bitUnsignedMultiply.c@{Resources/Software/msp430\_driverlib\_2\_91\_13\_01/examples/MSP430FR2xx\_4xx/mpy32/mpy32\_ex1\_16bitUnsignedMultiply.c}}
{\ttfamily \#include \char`\"{}driverlib.\+h\char`\"{}}\newline
\doxysubsection*{Functions}
\begin{DoxyCompactItemize}
\item
void \mbox{\hyperlink{_m_s_p430_f_r2xx__4xx_2mpy32_2mpy32__ex1__16bit_unsigned_multiply_8c_a6288eba0f8e8ad3ab1544ad731eb7667}{main}} (void)
\end{DoxyCompactItemize}
\doxysubsection{Function Documentation}
\mbox{\Hypertarget{_m_s_p430_f_r2xx__4xx_2mpy32_2mpy32__ex1__16bit_unsigned_multiply_8c_a6288eba0f8e8ad3ab1544ad731eb7667}\label{_m_s_p430_f_r2xx__4xx_2mpy32_2mpy32__ex1__16bit_unsigned_multiply_8c_a6288eba0f8e8ad3ab1544ad731eb7667}}
\index{mpy32\_ex1\_16bitUnsignedMultiply.c@{mpy32\_ex1\_16bitUnsignedMultiply.c}!main@{main}}
\index{main@{main}!mpy32\_ex1\_16bitUnsignedMultiply.c@{mpy32\_ex1\_16bitUnsignedMultiply.c}}
\doxysubsubsection{\texorpdfstring{main()}{main()}}
{\footnotesize\ttfamily void main (\begin{DoxyParamCaption}\item[{void}]{ }\end{DoxyParamCaption})}
MPY -\/ 16x16 Unsigned Multiply
Hardware multiplier is used to multiply two numbers. The calculation is automatically initiated after the second operand is loaded. Results are stored in RESLO and RESHI.
ACLK = 32.\+768k\+Hz, MCLK = SMCLK = default DCO\hypertarget{_m_s_p430_f_r2xx__4xx_2mpy32_2mpy32__ex1__16bit_unsigned_multiply_8c_autotoc_md90}{}\doxysubsubsection{Tested On\+: MSP430\+F5438\+A,\+MSP430\+FR5739,\+MSP430\+FR5969,\+MSP430\+FR2433}\label{_m_s_p430_f_r2xx__4xx_2mpy32_2mpy32__ex1__16bit_unsigned_multiply_8c_autotoc_md90}
\tabulinesep=1mm
\begin{longtabu}spread 0pt [c]{*{2}{|X[-1]}|}
\hline
\PBS\centering \cellcolor{\tableheadbgcolor}\textbf{ / }&\PBS\centering \cellcolor{\tableheadbgcolor}\textbf{ $|$ }\\\cline{1-2}
\endfirsthead
\hline
\endfoot
\hline
\PBS\centering \cellcolor{\tableheadbgcolor}\textbf{ / }&\PBS\centering \cellcolor{\tableheadbgcolor}\textbf{ $|$ }\\\cline{1-2}
\endhead
-- &RST \\\cline{1-2}
\end{longtabu}
$\vert$ $\vert$ $\vert$ $\vert$
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 MPY 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 NONE
\end{DoxyItemize}
Definition at line 63 of file mpy32\+\_\+ex1\+\_\+16bit\+Unsigned\+Multiply.\+c.
References \+\_\+\+\_\+no\+\_\+operation().

View File

@@ -0,0 +1,52 @@
\hypertarget{_m_s_p430_f_r2xx__4xx_2mpy32_2mpy32__ex2__8bit_unsigned_multiply_8c}{}\doxysection{Resources/\+Software/msp430\+\_\+driverlib\+\_\+2\+\_\+91\+\_\+13\+\_\+01/examples/\+MSP430\+FR2xx\+\_\+4xx/mpy32/mpy32\+\_\+ex2\+\_\+8bit\+Unsigned\+Multiply.c File Reference}
\label{_m_s_p430_f_r2xx__4xx_2mpy32_2mpy32__ex2__8bit_unsigned_multiply_8c}\index{Resources/Software/msp430\_driverlib\_2\_91\_13\_01/examples/MSP430FR2xx\_4xx/mpy32/mpy32\_ex2\_8bitUnsignedMultiply.c@{Resources/Software/msp430\_driverlib\_2\_91\_13\_01/examples/MSP430FR2xx\_4xx/mpy32/mpy32\_ex2\_8bitUnsignedMultiply.c}}
{\ttfamily \#include \char`\"{}driverlib.\+h\char`\"{}}\newline
\doxysubsection*{Functions}
\begin{DoxyCompactItemize}
\item
void \mbox{\hyperlink{_m_s_p430_f_r2xx__4xx_2mpy32_2mpy32__ex2__8bit_unsigned_multiply_8c_a6288eba0f8e8ad3ab1544ad731eb7667}{main}} (void)
\end{DoxyCompactItemize}
\doxysubsection{Function Documentation}
\mbox{\Hypertarget{_m_s_p430_f_r2xx__4xx_2mpy32_2mpy32__ex2__8bit_unsigned_multiply_8c_a6288eba0f8e8ad3ab1544ad731eb7667}\label{_m_s_p430_f_r2xx__4xx_2mpy32_2mpy32__ex2__8bit_unsigned_multiply_8c_a6288eba0f8e8ad3ab1544ad731eb7667}}
\index{mpy32\_ex2\_8bitUnsignedMultiply.c@{mpy32\_ex2\_8bitUnsignedMultiply.c}!main@{main}}
\index{main@{main}!mpy32\_ex2\_8bitUnsignedMultiply.c@{mpy32\_ex2\_8bitUnsignedMultiply.c}}
\doxysubsubsection{\texorpdfstring{main()}{main()}}
{\footnotesize\ttfamily void main (\begin{DoxyParamCaption}\item[{void}]{ }\end{DoxyParamCaption})}
MPY -\/ 8x8 Unsigned Multiply
Hardware multiplier is used to multiply two numbers. The calculation is automatically initiated after the second operand is loaded. Results are stored in RESLO and RESHI.
ACLK = 32.\+768k\+Hz, MCLK = SMCLK = default DCO\hypertarget{_m_s_p430_f_r2xx__4xx_2mpy32_2mpy32__ex2__8bit_unsigned_multiply_8c_autotoc_md91}{}\doxysubsubsection{Tested On\+: MSP430\+F5438\+A,\+MSP430\+FR5739,\+MSP430\+FR5969,\+MSP430\+FR2433}\label{_m_s_p430_f_r2xx__4xx_2mpy32_2mpy32__ex2__8bit_unsigned_multiply_8c_autotoc_md91}
\tabulinesep=1mm
\begin{longtabu}spread 0pt [c]{*{2}{|X[-1]}|}
\hline
\PBS\centering \cellcolor{\tableheadbgcolor}\textbf{ / }&\PBS\centering \cellcolor{\tableheadbgcolor}\textbf{ $|$ }\\\cline{1-2}
\endfirsthead
\hline
\endfoot
\hline
\PBS\centering \cellcolor{\tableheadbgcolor}\textbf{ / }&\PBS\centering \cellcolor{\tableheadbgcolor}\textbf{ $|$ }\\\cline{1-2}
\endhead
-- &RST \\\cline{1-2}
\end{longtabu}
$\vert$ $\vert$ $\vert$ $\vert$
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 MPY 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 NONE
\end{DoxyItemize}
Definition at line 63 of file mpy32\+\_\+ex2\+\_\+8bit\+Unsigned\+Multiply.\+c.
References \+\_\+\+\_\+no\+\_\+operation().

View File

@@ -0,0 +1,94 @@
\hypertarget{_m_s_p430_f_r2xx__4xx_2mpy32_2mpy32__ex3__16bit_signed_multiply_8c}{}\doxysection{Resources/\+Software/msp430\+\_\+driverlib\+\_\+2\+\_\+91\+\_\+13\+\_\+01/examples/\+MSP430\+FR2xx\+\_\+4xx/mpy32/mpy32\+\_\+ex3\+\_\+16bit\+Signed\+Multiply.c File Reference}
\label{_m_s_p430_f_r2xx__4xx_2mpy32_2mpy32__ex3__16bit_signed_multiply_8c}\index{Resources/Software/msp430\_driverlib\_2\_91\_13\_01/examples/MSP430FR2xx\_4xx/mpy32/mpy32\_ex3\_16bitSignedMultiply.c@{Resources/Software/msp430\_driverlib\_2\_91\_13\_01/examples/MSP430FR2xx\_4xx/mpy32/mpy32\_ex3\_16bitSignedMultiply.c}}
{\ttfamily \#include \char`\"{}driverlib.\+h\char`\"{}}\newline
\doxysubsection*{Functions}
\begin{DoxyCompactItemize}
\item
void \mbox{\hyperlink{_m_s_p430_f_r2xx__4xx_2mpy32_2mpy32__ex3__16bit_signed_multiply_8c_a6288eba0f8e8ad3ab1544ad731eb7667}{main}} (void)
\end{DoxyCompactItemize}
\doxysubsection*{Variables}
\begin{DoxyCompactItemize}
\item
int16\+\_\+t \mbox{\hyperlink{_m_s_p430_f_r2xx__4xx_2mpy32_2mpy32__ex3__16bit_signed_multiply_8c_a3b6affddfe426e29d8e6f98049e8a9f2}{multiplier}} = 0x1234
\item
int16\+\_\+t \mbox{\hyperlink{_m_s_p430_f_r2xx__4xx_2mpy32_2mpy32__ex3__16bit_signed_multiply_8c_a917f1d27bc92d7287c57835107470d07}{operand}} = -\/6578
\item
int64\+\_\+t \mbox{\hyperlink{_m_s_p430_f_r2xx__4xx_2mpy32_2mpy32__ex3__16bit_signed_multiply_8c_af5df517f0190d126def9ba83a94ef595}{Result}}
\end{DoxyCompactItemize}
\doxysubsection{Function Documentation}
\mbox{\Hypertarget{_m_s_p430_f_r2xx__4xx_2mpy32_2mpy32__ex3__16bit_signed_multiply_8c_a6288eba0f8e8ad3ab1544ad731eb7667}\label{_m_s_p430_f_r2xx__4xx_2mpy32_2mpy32__ex3__16bit_signed_multiply_8c_a6288eba0f8e8ad3ab1544ad731eb7667}}
\index{mpy32\_ex3\_16bitSignedMultiply.c@{mpy32\_ex3\_16bitSignedMultiply.c}!main@{main}}
\index{main@{main}!mpy32\_ex3\_16bitSignedMultiply.c@{mpy32\_ex3\_16bitSignedMultiply.c}}
\doxysubsubsection{\texorpdfstring{main()}{main()}}
{\footnotesize\ttfamily void main (\begin{DoxyParamCaption}\item[{void}]{ }\end{DoxyParamCaption})}
Definition at line 68 of file mpy32\+\_\+ex3\+\_\+16bit\+Signed\+Multiply.\+c.
References \+\_\+\+\_\+no\+\_\+operation(), multiplier, operand, and Result.
\doxysubsection{Variable Documentation}
\mbox{\Hypertarget{_m_s_p430_f_r2xx__4xx_2mpy32_2mpy32__ex3__16bit_signed_multiply_8c_a3b6affddfe426e29d8e6f98049e8a9f2}\label{_m_s_p430_f_r2xx__4xx_2mpy32_2mpy32__ex3__16bit_signed_multiply_8c_a3b6affddfe426e29d8e6f98049e8a9f2}}
\index{mpy32\_ex3\_16bitSignedMultiply.c@{mpy32\_ex3\_16bitSignedMultiply.c}!multiplier@{multiplier}}
\index{multiplier@{multiplier}!mpy32\_ex3\_16bitSignedMultiply.c@{mpy32\_ex3\_16bitSignedMultiply.c}}
\doxysubsubsection{\texorpdfstring{multiplier}{multiplier}}
{\footnotesize\ttfamily int16\+\_\+t multiplier = 0x1234}
MPY -\/ 16x16 Signed Multiply
Hardware multiplier is used to multiply two numbers. The calculation is automatically initiated after the second operand is loaded. Results are stored in RESLO, RESHI and SUMEXT = FFFF if result is negative, SUMEXT = 0 otherwise. Result is also stored as Result variable.
ACLK = 32.\+768k\+Hz, MCLK = SMCLK = default DCO\hypertarget{_m_s_p430_f_r2xx__4xx_2mpy32_2mpy32__ex3__16bit_signed_multiply_8c_autotoc_md92}{}\doxysubsubsection{Tested On\+: MSP430\+F5438\+A,\+MSP430\+FR5739,\+MSP430\+FR5969,\+MSP430\+FR2433}\label{_m_s_p430_f_r2xx__4xx_2mpy32_2mpy32__ex3__16bit_signed_multiply_8c_autotoc_md92}
\tabulinesep=1mm
\begin{longtabu}spread 0pt [c]{*{2}{|X[-1]}|}
\hline
\PBS\centering \cellcolor{\tableheadbgcolor}\textbf{ / }&\PBS\centering \cellcolor{\tableheadbgcolor}\textbf{ $|$ }\\\cline{1-2}
\endfirsthead
\hline
\endfoot
\hline
\PBS\centering \cellcolor{\tableheadbgcolor}\textbf{ / }&\PBS\centering \cellcolor{\tableheadbgcolor}\textbf{ $|$ }\\\cline{1-2}
\endhead
-- &RST \\\cline{1-2}
\end{longtabu}
$\vert$ $\vert$ $\vert$ $\vert$
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 MPY 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 NONE
\end{DoxyItemize}
Definition at line 64 of file mpy32\+\_\+ex3\+\_\+16bit\+Signed\+Multiply.\+c.
\mbox{\Hypertarget{_m_s_p430_f_r2xx__4xx_2mpy32_2mpy32__ex3__16bit_signed_multiply_8c_a917f1d27bc92d7287c57835107470d07}\label{_m_s_p430_f_r2xx__4xx_2mpy32_2mpy32__ex3__16bit_signed_multiply_8c_a917f1d27bc92d7287c57835107470d07}}
\index{mpy32\_ex3\_16bitSignedMultiply.c@{mpy32\_ex3\_16bitSignedMultiply.c}!operand@{operand}}
\index{operand@{operand}!mpy32\_ex3\_16bitSignedMultiply.c@{mpy32\_ex3\_16bitSignedMultiply.c}}
\doxysubsubsection{\texorpdfstring{operand}{operand}}
{\footnotesize\ttfamily int16\+\_\+t operand = -\/6578}
Definition at line 65 of file mpy32\+\_\+ex3\+\_\+16bit\+Signed\+Multiply.\+c.
\mbox{\Hypertarget{_m_s_p430_f_r2xx__4xx_2mpy32_2mpy32__ex3__16bit_signed_multiply_8c_af5df517f0190d126def9ba83a94ef595}\label{_m_s_p430_f_r2xx__4xx_2mpy32_2mpy32__ex3__16bit_signed_multiply_8c_af5df517f0190d126def9ba83a94ef595}}
\index{mpy32\_ex3\_16bitSignedMultiply.c@{mpy32\_ex3\_16bitSignedMultiply.c}!Result@{Result}}
\index{Result@{Result}!mpy32\_ex3\_16bitSignedMultiply.c@{mpy32\_ex3\_16bitSignedMultiply.c}}
\doxysubsubsection{\texorpdfstring{Result}{Result}}
{\footnotesize\ttfamily int64\+\_\+t Result}
Definition at line 66 of file mpy32\+\_\+ex3\+\_\+16bit\+Signed\+Multiply.\+c.

View File

@@ -0,0 +1,52 @@
\hypertarget{_m_s_p430_f_r2xx__4xx_2mpy32_2mpy32__ex4__8bit_signed_multiply_8c}{}\doxysection{Resources/\+Software/msp430\+\_\+driverlib\+\_\+2\+\_\+91\+\_\+13\+\_\+01/examples/\+MSP430\+FR2xx\+\_\+4xx/mpy32/mpy32\+\_\+ex4\+\_\+8bit\+Signed\+Multiply.c File Reference}
\label{_m_s_p430_f_r2xx__4xx_2mpy32_2mpy32__ex4__8bit_signed_multiply_8c}\index{Resources/Software/msp430\_driverlib\_2\_91\_13\_01/examples/MSP430FR2xx\_4xx/mpy32/mpy32\_ex4\_8bitSignedMultiply.c@{Resources/Software/msp430\_driverlib\_2\_91\_13\_01/examples/MSP430FR2xx\_4xx/mpy32/mpy32\_ex4\_8bitSignedMultiply.c}}
{\ttfamily \#include \char`\"{}driverlib.\+h\char`\"{}}\newline
\doxysubsection*{Functions}
\begin{DoxyCompactItemize}
\item
void \mbox{\hyperlink{_m_s_p430_f_r2xx__4xx_2mpy32_2mpy32__ex4__8bit_signed_multiply_8c_a6288eba0f8e8ad3ab1544ad731eb7667}{main}} (void)
\end{DoxyCompactItemize}
\doxysubsection{Function Documentation}
\mbox{\Hypertarget{_m_s_p430_f_r2xx__4xx_2mpy32_2mpy32__ex4__8bit_signed_multiply_8c_a6288eba0f8e8ad3ab1544ad731eb7667}\label{_m_s_p430_f_r2xx__4xx_2mpy32_2mpy32__ex4__8bit_signed_multiply_8c_a6288eba0f8e8ad3ab1544ad731eb7667}}
\index{mpy32\_ex4\_8bitSignedMultiply.c@{mpy32\_ex4\_8bitSignedMultiply.c}!main@{main}}
\index{main@{main}!mpy32\_ex4\_8bitSignedMultiply.c@{mpy32\_ex4\_8bitSignedMultiply.c}}
\doxysubsubsection{\texorpdfstring{main()}{main()}}
{\footnotesize\ttfamily void main (\begin{DoxyParamCaption}\item[{void}]{ }\end{DoxyParamCaption})}
MPY -\/ 8x8 Signed Multiply
Hardware multiplier is used to multiply two numbers. The calculation is automatically initiated after the second operand is loaded. Results are stored in RESLO, RESHI and SUMEXT = FFFF if result is negative, SUMEXT = 0 otherwise.
ACLK = 32.\+768k\+Hz, MCLK = SMCLK = default DCO\hypertarget{_m_s_p430_f_r2xx__4xx_2mpy32_2mpy32__ex4__8bit_signed_multiply_8c_autotoc_md93}{}\doxysubsubsection{Tested On\+: MSP430\+F5438\+A,\+MSP430\+FR5739,\+MSP430\+FR5969,\+MSP430\+FR2433}\label{_m_s_p430_f_r2xx__4xx_2mpy32_2mpy32__ex4__8bit_signed_multiply_8c_autotoc_md93}
\tabulinesep=1mm
\begin{longtabu}spread 0pt [c]{*{2}{|X[-1]}|}
\hline
\PBS\centering \cellcolor{\tableheadbgcolor}\textbf{ / }&\PBS\centering \cellcolor{\tableheadbgcolor}\textbf{ $|$ }\\\cline{1-2}
\endfirsthead
\hline
\endfoot
\hline
\PBS\centering \cellcolor{\tableheadbgcolor}\textbf{ / }&\PBS\centering \cellcolor{\tableheadbgcolor}\textbf{ $|$ }\\\cline{1-2}
\endhead
-- &RST \\\cline{1-2}
\end{longtabu}
$\vert$ $\vert$ $\vert$ $\vert$
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 MPY 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 NONE
\end{DoxyItemize}
Definition at line 64 of file mpy32\+\_\+ex4\+\_\+8bit\+Signed\+Multiply.\+c.
References \+\_\+\+\_\+no\+\_\+operation().

View File

@@ -0,0 +1,52 @@
\hypertarget{_m_s_p430_f_r2xx__4xx_2mpy32_2mpy32__ex5__16bit_unsigned_multiply_accum_8c}{}\doxysection{Resources/\+Software/msp430\+\_\+driverlib\+\_\+2\+\_\+91\+\_\+13\+\_\+01/examples/\+MSP430\+FR2xx\+\_\+4xx/mpy32/mpy32\+\_\+ex5\+\_\+16bit\+Unsigned\+Multiply\+Accum.c File Reference}
\label{_m_s_p430_f_r2xx__4xx_2mpy32_2mpy32__ex5__16bit_unsigned_multiply_accum_8c}\index{Resources/Software/msp430\_driverlib\_2\_91\_13\_01/examples/MSP430FR2xx\_4xx/mpy32/mpy32\_ex5\_16bitUnsignedMultiplyAccum.c@{Resources/Software/msp430\_driverlib\_2\_91\_13\_01/examples/MSP430FR2xx\_4xx/mpy32/mpy32\_ex5\_16bitUnsignedMultiplyAccum.c}}
{\ttfamily \#include \char`\"{}driverlib.\+h\char`\"{}}\newline
\doxysubsection*{Functions}
\begin{DoxyCompactItemize}
\item
void \mbox{\hyperlink{_m_s_p430_f_r2xx__4xx_2mpy32_2mpy32__ex5__16bit_unsigned_multiply_accum_8c_a6288eba0f8e8ad3ab1544ad731eb7667}{main}} (void)
\end{DoxyCompactItemize}
\doxysubsection{Function Documentation}
\mbox{\Hypertarget{_m_s_p430_f_r2xx__4xx_2mpy32_2mpy32__ex5__16bit_unsigned_multiply_accum_8c_a6288eba0f8e8ad3ab1544ad731eb7667}\label{_m_s_p430_f_r2xx__4xx_2mpy32_2mpy32__ex5__16bit_unsigned_multiply_accum_8c_a6288eba0f8e8ad3ab1544ad731eb7667}}
\index{mpy32\_ex5\_16bitUnsignedMultiplyAccum.c@{mpy32\_ex5\_16bitUnsignedMultiplyAccum.c}!main@{main}}
\index{main@{main}!mpy32\_ex5\_16bitUnsignedMultiplyAccum.c@{mpy32\_ex5\_16bitUnsignedMultiplyAccum.c}}
\doxysubsubsection{\texorpdfstring{main()}{main()}}
{\footnotesize\ttfamily void main (\begin{DoxyParamCaption}\item[{void}]{ }\end{DoxyParamCaption})}
MPY -\/ 16x16 Unsigned Multiply Accumulate
Hardware multiplier is used to multiply two numbers. The calculation is automatically initiated after the second operand is loaded. A second multiply accumulate operation is performed after that. Results are stored in RESLO and RESHI. SUMEXT contains the carry of the result.
ACLK = 32.\+768k\+Hz, MCLK = SMCLK = default DCO\hypertarget{_m_s_p430_f_r2xx__4xx_2mpy32_2mpy32__ex5__16bit_unsigned_multiply_accum_8c_autotoc_md94}{}\doxysubsubsection{Tested On\+: MSP430\+F5438\+A,\+MSP430\+FR5739,\+MSP430\+FR5969,\+MSP430\+FR2433}\label{_m_s_p430_f_r2xx__4xx_2mpy32_2mpy32__ex5__16bit_unsigned_multiply_accum_8c_autotoc_md94}
\tabulinesep=1mm
\begin{longtabu}spread 0pt [c]{*{2}{|X[-1]}|}
\hline
\PBS\centering \cellcolor{\tableheadbgcolor}\textbf{ / }&\PBS\centering \cellcolor{\tableheadbgcolor}\textbf{ $|$ }\\\cline{1-2}
\endfirsthead
\hline
\endfoot
\hline
\PBS\centering \cellcolor{\tableheadbgcolor}\textbf{ / }&\PBS\centering \cellcolor{\tableheadbgcolor}\textbf{ $|$ }\\\cline{1-2}
\endhead
-- &RST \\\cline{1-2}
\end{longtabu}
$\vert$ $\vert$ $\vert$ $\vert$
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 MPY 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 NONE
\end{DoxyItemize}
Definition at line 64 of file mpy32\+\_\+ex5\+\_\+16bit\+Unsigned\+Multiply\+Accum.\+c.
References \+\_\+\+\_\+no\+\_\+operation().

View File

@@ -0,0 +1,50 @@
\hypertarget{_m_s_p430_f_r2xx__4xx_2mpy32_2mpy32__ex6__8bit_unsigned_multiply_accum_8c}{}\doxysection{Resources/\+Software/msp430\+\_\+driverlib\+\_\+2\+\_\+91\+\_\+13\+\_\+01/examples/\+MSP430\+FR2xx\+\_\+4xx/mpy32/mpy32\+\_\+ex6\+\_\+8bit\+Unsigned\+Multiply\+Accum.c File Reference}
\label{_m_s_p430_f_r2xx__4xx_2mpy32_2mpy32__ex6__8bit_unsigned_multiply_accum_8c}\index{Resources/Software/msp430\_driverlib\_2\_91\_13\_01/examples/MSP430FR2xx\_4xx/mpy32/mpy32\_ex6\_8bitUnsignedMultiplyAccum.c@{Resources/Software/msp430\_driverlib\_2\_91\_13\_01/examples/MSP430FR2xx\_4xx/mpy32/mpy32\_ex6\_8bitUnsignedMultiplyAccum.c}}
{\ttfamily \#include \char`\"{}driverlib.\+h\char`\"{}}\newline
\doxysubsection*{Functions}
\begin{DoxyCompactItemize}
\item
void \mbox{\hyperlink{_m_s_p430_f_r2xx__4xx_2mpy32_2mpy32__ex6__8bit_unsigned_multiply_accum_8c_a6288eba0f8e8ad3ab1544ad731eb7667}{main}} (void)
\end{DoxyCompactItemize}
\doxysubsection{Function Documentation}
\mbox{\Hypertarget{_m_s_p430_f_r2xx__4xx_2mpy32_2mpy32__ex6__8bit_unsigned_multiply_accum_8c_a6288eba0f8e8ad3ab1544ad731eb7667}\label{_m_s_p430_f_r2xx__4xx_2mpy32_2mpy32__ex6__8bit_unsigned_multiply_accum_8c_a6288eba0f8e8ad3ab1544ad731eb7667}}
\index{mpy32\_ex6\_8bitUnsignedMultiplyAccum.c@{mpy32\_ex6\_8bitUnsignedMultiplyAccum.c}!main@{main}}
\index{main@{main}!mpy32\_ex6\_8bitUnsignedMultiplyAccum.c@{mpy32\_ex6\_8bitUnsignedMultiplyAccum.c}}
\doxysubsubsection{\texorpdfstring{main()}{main()}}
{\footnotesize\ttfamily void main (\begin{DoxyParamCaption}\item[{void}]{ }\end{DoxyParamCaption})}
MPY -\/ 8x8 Unsigned Multiply Accumulate
Hardware multiplier is used to multiply two numbers. The calculation is automatically initiated after the second operand is loaded. A second multiply accumulate operation is performed after that. Results are stored in RESLO and RESHI. SUMEXT contains the carry of the result.\hypertarget{_m_s_p430_f_r2xx__4xx_2mpy32_2mpy32__ex6__8bit_unsigned_multiply_accum_8c_autotoc_md95}{}\doxysubsubsection{Tested On\+: MSP430\+F5438\+A,\+MSP430\+FR5739,\+MSP430\+FR5969,\+MSP430\+FR2433}\label{_m_s_p430_f_r2xx__4xx_2mpy32_2mpy32__ex6__8bit_unsigned_multiply_accum_8c_autotoc_md95}
\tabulinesep=1mm
\begin{longtabu}spread 0pt [c]{*{2}{|X[-1]}|}
\hline
\PBS\centering \cellcolor{\tableheadbgcolor}\textbf{ / }&\PBS\centering \cellcolor{\tableheadbgcolor}\textbf{ $|$ }\\\cline{1-2}
\endfirsthead
\hline
\endfoot
\hline
\PBS\centering \cellcolor{\tableheadbgcolor}\textbf{ / }&\PBS\centering \cellcolor{\tableheadbgcolor}\textbf{ $|$ }\\\cline{1-2}
\endhead
-- &RST \\\cline{1-2}
\end{longtabu}
$\vert$ $\vert$ $\vert$ $\vert$
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 MPY 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 NONE
\end{DoxyItemize}
Definition at line 62 of file mpy32\+\_\+ex6\+\_\+8bit\+Unsigned\+Multiply\+Accum.\+c.
References \+\_\+\+\_\+no\+\_\+operation().

View File

@@ -0,0 +1,52 @@
\hypertarget{_m_s_p430_f_r2xx__4xx_2mpy32_2mpy32__ex7__16bit_signed_multiply_accum_8c}{}\doxysection{Resources/\+Software/msp430\+\_\+driverlib\+\_\+2\+\_\+91\+\_\+13\+\_\+01/examples/\+MSP430\+FR2xx\+\_\+4xx/mpy32/mpy32\+\_\+ex7\+\_\+16bit\+Signed\+Multiply\+Accum.c File Reference}
\label{_m_s_p430_f_r2xx__4xx_2mpy32_2mpy32__ex7__16bit_signed_multiply_accum_8c}\index{Resources/Software/msp430\_driverlib\_2\_91\_13\_01/examples/MSP430FR2xx\_4xx/mpy32/mpy32\_ex7\_16bitSignedMultiplyAccum.c@{Resources/Software/msp430\_driverlib\_2\_91\_13\_01/examples/MSP430FR2xx\_4xx/mpy32/mpy32\_ex7\_16bitSignedMultiplyAccum.c}}
{\ttfamily \#include \char`\"{}driverlib.\+h\char`\"{}}\newline
\doxysubsection*{Functions}
\begin{DoxyCompactItemize}
\item
void \mbox{\hyperlink{_m_s_p430_f_r2xx__4xx_2mpy32_2mpy32__ex7__16bit_signed_multiply_accum_8c_a6288eba0f8e8ad3ab1544ad731eb7667}{main}} (void)
\end{DoxyCompactItemize}
\doxysubsection{Function Documentation}
\mbox{\Hypertarget{_m_s_p430_f_r2xx__4xx_2mpy32_2mpy32__ex7__16bit_signed_multiply_accum_8c_a6288eba0f8e8ad3ab1544ad731eb7667}\label{_m_s_p430_f_r2xx__4xx_2mpy32_2mpy32__ex7__16bit_signed_multiply_accum_8c_a6288eba0f8e8ad3ab1544ad731eb7667}}
\index{mpy32\_ex7\_16bitSignedMultiplyAccum.c@{mpy32\_ex7\_16bitSignedMultiplyAccum.c}!main@{main}}
\index{main@{main}!mpy32\_ex7\_16bitSignedMultiplyAccum.c@{mpy32\_ex7\_16bitSignedMultiplyAccum.c}}
\doxysubsubsection{\texorpdfstring{main()}{main()}}
{\footnotesize\ttfamily void main (\begin{DoxyParamCaption}\item[{void}]{ }\end{DoxyParamCaption})}
MPY -\/ 16x16 Signed Multiply Accumulate
Hardware multiplier is used to multiply two numbers. The calculation is automatically initiated after the second operand is loaded. A second multiply-\/accumulate operation is performed after that. Results are stored in RESLO and RESHI. SUMEXT contains the extended sign of the result.
ACLK = 32.\+768k\+Hz, MCLK = SMCLK = default DCO\hypertarget{_m_s_p430_f_r2xx__4xx_2mpy32_2mpy32__ex7__16bit_signed_multiply_accum_8c_autotoc_md96}{}\doxysubsubsection{Tested On\+: MSP430\+F5438\+A,\+MSP430\+FR5739,\+MSP430\+FR5969,\+MSP430\+FR2433}\label{_m_s_p430_f_r2xx__4xx_2mpy32_2mpy32__ex7__16bit_signed_multiply_accum_8c_autotoc_md96}
\tabulinesep=1mm
\begin{longtabu}spread 0pt [c]{*{2}{|X[-1]}|}
\hline
\PBS\centering \cellcolor{\tableheadbgcolor}\textbf{ / }&\PBS\centering \cellcolor{\tableheadbgcolor}\textbf{ $|$ }\\\cline{1-2}
\endfirsthead
\hline
\endfoot
\hline
\PBS\centering \cellcolor{\tableheadbgcolor}\textbf{ / }&\PBS\centering \cellcolor{\tableheadbgcolor}\textbf{ $|$ }\\\cline{1-2}
\endhead
-- &RST \\\cline{1-2}
\end{longtabu}
$\vert$ $\vert$ $\vert$ $\vert$
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 MPY 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 NONE
\end{DoxyItemize}
Definition at line 64 of file mpy32\+\_\+ex7\+\_\+16bit\+Signed\+Multiply\+Accum.\+c.
References \+\_\+\+\_\+no\+\_\+operation().

View File

@@ -0,0 +1,52 @@
\hypertarget{_m_s_p430_f_r2xx__4xx_2mpy32_2mpy32__ex8__8bit_signed_multiply_accum_8c}{}\doxysection{Resources/\+Software/msp430\+\_\+driverlib\+\_\+2\+\_\+91\+\_\+13\+\_\+01/examples/\+MSP430\+FR2xx\+\_\+4xx/mpy32/mpy32\+\_\+ex8\+\_\+8bit\+Signed\+Multiply\+Accum.c File Reference}
\label{_m_s_p430_f_r2xx__4xx_2mpy32_2mpy32__ex8__8bit_signed_multiply_accum_8c}\index{Resources/Software/msp430\_driverlib\_2\_91\_13\_01/examples/MSP430FR2xx\_4xx/mpy32/mpy32\_ex8\_8bitSignedMultiplyAccum.c@{Resources/Software/msp430\_driverlib\_2\_91\_13\_01/examples/MSP430FR2xx\_4xx/mpy32/mpy32\_ex8\_8bitSignedMultiplyAccum.c}}
{\ttfamily \#include \char`\"{}driverlib.\+h\char`\"{}}\newline
\doxysubsection*{Functions}
\begin{DoxyCompactItemize}
\item
void \mbox{\hyperlink{_m_s_p430_f_r2xx__4xx_2mpy32_2mpy32__ex8__8bit_signed_multiply_accum_8c_a6288eba0f8e8ad3ab1544ad731eb7667}{main}} (void)
\end{DoxyCompactItemize}
\doxysubsection{Function Documentation}
\mbox{\Hypertarget{_m_s_p430_f_r2xx__4xx_2mpy32_2mpy32__ex8__8bit_signed_multiply_accum_8c_a6288eba0f8e8ad3ab1544ad731eb7667}\label{_m_s_p430_f_r2xx__4xx_2mpy32_2mpy32__ex8__8bit_signed_multiply_accum_8c_a6288eba0f8e8ad3ab1544ad731eb7667}}
\index{mpy32\_ex8\_8bitSignedMultiplyAccum.c@{mpy32\_ex8\_8bitSignedMultiplyAccum.c}!main@{main}}
\index{main@{main}!mpy32\_ex8\_8bitSignedMultiplyAccum.c@{mpy32\_ex8\_8bitSignedMultiplyAccum.c}}
\doxysubsubsection{\texorpdfstring{main()}{main()}}
{\footnotesize\ttfamily void main (\begin{DoxyParamCaption}\item[{void}]{ }\end{DoxyParamCaption})}
MPY -\/ 8x8 Signed Multiply Accumulate
Hardware multiplier is used to multiply two numbers. The calculation is automatically initiated after the second operand is loaded. A second multiply accumulate operation is performed after that. Results are stored in RESLO and RESHI. SUMEXT contains the extended sign of result.
ACLK = 32.\+768k\+Hz, MCLK = SMCLK = default DCO\hypertarget{_m_s_p430_f_r2xx__4xx_2mpy32_2mpy32__ex8__8bit_signed_multiply_accum_8c_autotoc_md97}{}\doxysubsubsection{Tested On\+: MSP430\+F5438\+A,\+MSP430\+FR5739,\+MSP430\+FR5969,\+MSP430\+FR2433}\label{_m_s_p430_f_r2xx__4xx_2mpy32_2mpy32__ex8__8bit_signed_multiply_accum_8c_autotoc_md97}
\tabulinesep=1mm
\begin{longtabu}spread 0pt [c]{*{2}{|X[-1]}|}
\hline
\PBS\centering \cellcolor{\tableheadbgcolor}\textbf{ / }&\PBS\centering \cellcolor{\tableheadbgcolor}\textbf{ $|$ }\\\cline{1-2}
\endfirsthead
\hline
\endfoot
\hline
\PBS\centering \cellcolor{\tableheadbgcolor}\textbf{ / }&\PBS\centering \cellcolor{\tableheadbgcolor}\textbf{ $|$ }\\\cline{1-2}
\endhead
-- &RST \\\cline{1-2}
\end{longtabu}
$\vert$ $\vert$ $\vert$ $\vert$
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 MPY 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 NONE
\end{DoxyItemize}
Definition at line 64 of file mpy32\+\_\+ex8\+\_\+8bit\+Signed\+Multiply\+Accum.\+c.
References \+\_\+\+\_\+no\+\_\+operation().

View File

@@ -0,0 +1,70 @@
\hypertarget{_m_s_p430_f_r2xx__4xx_2mpy32_2mpy32__ex9__32bit_unsigned_multiply_8c}{}\doxysection{Resources/\+Software/msp430\+\_\+driverlib\+\_\+2\+\_\+91\+\_\+13\+\_\+01/examples/\+MSP430\+FR2xx\+\_\+4xx/mpy32/mpy32\+\_\+ex9\+\_\+32bit\+Unsigned\+Multiply.c File Reference}
\label{_m_s_p430_f_r2xx__4xx_2mpy32_2mpy32__ex9__32bit_unsigned_multiply_8c}\index{Resources/Software/msp430\_driverlib\_2\_91\_13\_01/examples/MSP430FR2xx\_4xx/mpy32/mpy32\_ex9\_32bitUnsignedMultiply.c@{Resources/Software/msp430\_driverlib\_2\_91\_13\_01/examples/MSP430FR2xx\_4xx/mpy32/mpy32\_ex9\_32bitUnsignedMultiply.c}}
{\ttfamily \#include \char`\"{}driverlib.\+h\char`\"{}}\newline
\doxysubsection*{Functions}
\begin{DoxyCompactItemize}
\item
void \mbox{\hyperlink{_m_s_p430_f_r2xx__4xx_2mpy32_2mpy32__ex9__32bit_unsigned_multiply_8c_a6288eba0f8e8ad3ab1544ad731eb7667}{main}} (void)
\end{DoxyCompactItemize}
\doxysubsection*{Variables}
\begin{DoxyCompactItemize}
\item
uint64\+\_\+t \mbox{\hyperlink{_m_s_p430_f_r2xx__4xx_2mpy32_2mpy32__ex9__32bit_unsigned_multiply_8c_a84a5e5c775453416939a34ab72557bc5}{Result}}
\end{DoxyCompactItemize}
\doxysubsection{Function Documentation}
\mbox{\Hypertarget{_m_s_p430_f_r2xx__4xx_2mpy32_2mpy32__ex9__32bit_unsigned_multiply_8c_a6288eba0f8e8ad3ab1544ad731eb7667}\label{_m_s_p430_f_r2xx__4xx_2mpy32_2mpy32__ex9__32bit_unsigned_multiply_8c_a6288eba0f8e8ad3ab1544ad731eb7667}}
\index{mpy32\_ex9\_32bitUnsignedMultiply.c@{mpy32\_ex9\_32bitUnsignedMultiply.c}!main@{main}}
\index{main@{main}!mpy32\_ex9\_32bitUnsignedMultiply.c@{mpy32\_ex9\_32bitUnsignedMultiply.c}}
\doxysubsubsection{\texorpdfstring{main()}{main()}}
{\footnotesize\ttfamily void main (\begin{DoxyParamCaption}\item[{void}]{ }\end{DoxyParamCaption})}
Definition at line 65 of file mpy32\+\_\+ex9\+\_\+32bit\+Unsigned\+Multiply.\+c.
References \+\_\+\+\_\+no\+\_\+operation(), and Result.
\doxysubsection{Variable Documentation}
\mbox{\Hypertarget{_m_s_p430_f_r2xx__4xx_2mpy32_2mpy32__ex9__32bit_unsigned_multiply_8c_a84a5e5c775453416939a34ab72557bc5}\label{_m_s_p430_f_r2xx__4xx_2mpy32_2mpy32__ex9__32bit_unsigned_multiply_8c_a84a5e5c775453416939a34ab72557bc5}}
\index{mpy32\_ex9\_32bitUnsignedMultiply.c@{mpy32\_ex9\_32bitUnsignedMultiply.c}!Result@{Result}}
\index{Result@{Result}!mpy32\_ex9\_32bitUnsignedMultiply.c@{mpy32\_ex9\_32bitUnsignedMultiply.c}}
\doxysubsubsection{\texorpdfstring{Result}{Result}}
{\footnotesize\ttfamily uint64\+\_\+t Result}
MPY -\/ 32x32 Unsigned Multiply
Hardware multiplier is used to multiply two numbers. The calculation is automatically initiated after the second operand is loaded. Results are stored in RES0, RES1, RES2 and RES3.
ACLK = 32.\+768k\+Hz, MCLK = SMCLK = default DCO\hypertarget{_m_s_p430_f_r2xx__4xx_2mpy32_2mpy32__ex9__32bit_unsigned_multiply_8c_autotoc_md98}{}\doxysubsubsection{Tested On\+: MSP430\+F5438\+A,\+MSP430\+FR5739,\+MSP430\+FR5969,\+MSP430\+FR2433}\label{_m_s_p430_f_r2xx__4xx_2mpy32_2mpy32__ex9__32bit_unsigned_multiply_8c_autotoc_md98}
\tabulinesep=1mm
\begin{longtabu}spread 0pt [c]{*{2}{|X[-1]}|}
\hline
\PBS\centering \cellcolor{\tableheadbgcolor}\textbf{ / }&\PBS\centering \cellcolor{\tableheadbgcolor}\textbf{ $|$ }\\\cline{1-2}
\endfirsthead
\hline
\endfoot
\hline
\PBS\centering \cellcolor{\tableheadbgcolor}\textbf{ / }&\PBS\centering \cellcolor{\tableheadbgcolor}\textbf{ $|$ }\\\cline{1-2}
\endhead
-- &RST \\\cline{1-2}
\end{longtabu}
$\vert$ $\vert$ $\vert$ $\vert$
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 MPY 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 NONE
\end{DoxyItemize}
Definition at line 63 of file mpy32\+\_\+ex9\+\_\+32bit\+Unsigned\+Multiply.\+c.

View File

@@ -0,0 +1,41 @@
\hypertarget{_m_s_p430_f_r2xx__4xx_2pmm_2pmm___reset___l_p_mx__5_8c}{}\doxysection{Resources/\+Software/msp430\+\_\+driverlib\+\_\+2\+\_\+91\+\_\+13\+\_\+01/examples/\+MSP430\+FR2xx\+\_\+4xx/pmm/pmm\+\_\+\+Reset\+\_\+\+LPMx\+\_\+5.c File Reference}
\label{_m_s_p430_f_r2xx__4xx_2pmm_2pmm___reset___l_p_mx__5_8c}\index{Resources/Software/msp430\_driverlib\_2\_91\_13\_01/examples/MSP430FR2xx\_4xx/pmm/pmm\_Reset\_LPMx\_5.c@{Resources/Software/msp430\_driverlib\_2\_91\_13\_01/examples/MSP430FR2xx\_4xx/pmm/pmm\_Reset\_LPMx\_5.c}}
{\ttfamily \#include \char`\"{}driverlib.\+h\char`\"{}}\newline
{\ttfamily \#include \char`\"{}Board.\+h\char`\"{}}\newline
\doxysubsection*{Functions}
\begin{DoxyCompactItemize}
\item
void \mbox{\hyperlink{_m_s_p430_f_r2xx__4xx_2pmm_2pmm___reset___l_p_mx__5_8c_a6288eba0f8e8ad3ab1544ad731eb7667}{main}} (void)
\end{DoxyCompactItemize}
\doxysubsection{Function Documentation}
\mbox{\Hypertarget{_m_s_p430_f_r2xx__4xx_2pmm_2pmm___reset___l_p_mx__5_8c_a6288eba0f8e8ad3ab1544ad731eb7667}\label{_m_s_p430_f_r2xx__4xx_2pmm_2pmm___reset___l_p_mx__5_8c_a6288eba0f8e8ad3ab1544ad731eb7667}}
\index{pmm\_Reset\_LPMx\_5.c@{pmm\_Reset\_LPMx\_5.c}!main@{main}}
\index{main@{main}!pmm\_Reset\_LPMx\_5.c@{pmm\_Reset\_LPMx\_5.c}}
\doxysubsubsection{\texorpdfstring{main()}{main()}}
{\footnotesize\ttfamily void main (\begin{DoxyParamCaption}\item[{void}]{ }\end{DoxyParamCaption})}
\hypertarget{_m_s_p430_f_r2xx__4xx_2pmm_2pmm___reset___l_p_mx__5_8c_autotoc_md99}{}\doxysubsubsection{MSP430\+FR2xx\+\_\+4xx Board}\label{_m_s_p430_f_r2xx__4xx_2pmm_2pmm___reset___l_p_mx__5_8c_autotoc_md99}
\tabulinesep=1mm
\begin{longtabu}spread 0pt [c]{*{2}{|X[-1]}|}
\hline
\PBS\centering \cellcolor{\tableheadbgcolor}\textbf{ / }&\PBS\centering \cellcolor{\tableheadbgcolor}\textbf{ $|$ }\\\cline{1-2}
\endfirsthead
\hline
\endfoot
\hline
\PBS\centering \cellcolor{\tableheadbgcolor}\textbf{ / }&\PBS\centering \cellcolor{\tableheadbgcolor}\textbf{ $|$ }\\\cline{1-2}
\endhead
&\\\cline{1-2}
-- &RST \\\cline{1-2}
&-\/-\/$>$LED1 \\\cline{1-2}
\end{longtabu}
Definition at line 60 of file pmm\+\_\+\+Reset\+\_\+\+LPMx\+\_\+5.\+c.
References \+\_\+\+\_\+delay\+\_\+cycles(), \+\_\+\+\_\+no\+\_\+operation(), and GPIO\+\_\+set\+Output\+High\+On\+Pin().

View File

@@ -0,0 +1,81 @@
\hypertarget{_m_s_p430_f_r2xx__4xx_2timer__a_2timer__a__ex1__pwm_single_8c}{}\doxysection{Resources/\+Software/msp430\+\_\+driverlib\+\_\+2\+\_\+91\+\_\+13\+\_\+01/examples/\+MSP430\+FR2xx\+\_\+4xx/timer\+\_\+a/timer\+\_\+a\+\_\+ex1\+\_\+pwm\+Single.c File Reference}
\label{_m_s_p430_f_r2xx__4xx_2timer__a_2timer__a__ex1__pwm_single_8c}\index{Resources/Software/msp430\_driverlib\_2\_91\_13\_01/examples/MSP430FR2xx\_4xx/timer\_a/timer\_a\_ex1\_pwmSingle.c@{Resources/Software/msp430\_driverlib\_2\_91\_13\_01/examples/MSP430FR2xx\_4xx/timer\_a/timer\_a\_ex1\_pwmSingle.c}}
{\ttfamily \#include \char`\"{}driverlib.\+h\char`\"{}}\newline
\doxysubsection*{Macros}
\begin{DoxyCompactItemize}
\item
\#define \mbox{\hyperlink{_m_s_p430_f_r2xx__4xx_2timer__a_2timer__a__ex1__pwm_single_8c_ae899bfdc491d37c006b4c301d9f8e147}{TIMER\+\_\+\+A\+\_\+\+PERIOD}}~524
\item
\#define \mbox{\hyperlink{_m_s_p430_f_r2xx__4xx_2timer__a_2timer__a__ex1__pwm_single_8c_a940d0fcbbee0921e43201c554231947c}{DUTY\+\_\+\+CYCLE}}~393
\end{DoxyCompactItemize}
\doxysubsection*{Functions}
\begin{DoxyCompactItemize}
\item
void \mbox{\hyperlink{_m_s_p430_f_r2xx__4xx_2timer__a_2timer__a__ex1__pwm_single_8c_a6288eba0f8e8ad3ab1544ad731eb7667}{main}} (void)
\end{DoxyCompactItemize}
\doxysubsection{Macro Definition Documentation}
\mbox{\Hypertarget{_m_s_p430_f_r2xx__4xx_2timer__a_2timer__a__ex1__pwm_single_8c_a940d0fcbbee0921e43201c554231947c}\label{_m_s_p430_f_r2xx__4xx_2timer__a_2timer__a__ex1__pwm_single_8c_a940d0fcbbee0921e43201c554231947c}}
\index{timer\_a\_ex1\_pwmSingle.c@{timer\_a\_ex1\_pwmSingle.c}!DUTY\_CYCLE@{DUTY\_CYCLE}}
\index{DUTY\_CYCLE@{DUTY\_CYCLE}!timer\_a\_ex1\_pwmSingle.c@{timer\_a\_ex1\_pwmSingle.c}}
\doxysubsubsection{\texorpdfstring{DUTY\_CYCLE}{DUTY\_CYCLE}}
{\footnotesize\ttfamily \#define DUTY\+\_\+\+CYCLE~393}
Definition at line 63 of file timer\+\_\+a\+\_\+ex1\+\_\+pwm\+Single.\+c.
\mbox{\Hypertarget{_m_s_p430_f_r2xx__4xx_2timer__a_2timer__a__ex1__pwm_single_8c_ae899bfdc491d37c006b4c301d9f8e147}\label{_m_s_p430_f_r2xx__4xx_2timer__a_2timer__a__ex1__pwm_single_8c_ae899bfdc491d37c006b4c301d9f8e147}}
\index{timer\_a\_ex1\_pwmSingle.c@{timer\_a\_ex1\_pwmSingle.c}!TIMER\_A\_PERIOD@{TIMER\_A\_PERIOD}}
\index{TIMER\_A\_PERIOD@{TIMER\_A\_PERIOD}!timer\_a\_ex1\_pwmSingle.c@{timer\_a\_ex1\_pwmSingle.c}}
\doxysubsubsection{\texorpdfstring{TIMER\_A\_PERIOD}{TIMER\_A\_PERIOD}}
{\footnotesize\ttfamily \#define TIMER\+\_\+\+A\+\_\+\+PERIOD~524}
Timer\+\_\+\+A3, PWM TA1.\+2, Up Mode, DCO SMCLK
Description\+: This program generates PWM outputs on P2.\+2 using Timer1\+\_\+A configured for up mode. The value , TIMER\+\_\+\+PERIOD, defines the PWM period and the value DUTY\+\_\+\+CYCLE the PWM duty cycle. Using $\sim$1.048MHz SMCLK as TACLK, the timer period is $\sim$480us with a 75\% duty cycle on P4.\+0 ACLK = n/a, SMCLK = MCLK = TACLK = default DCO $\sim$1.048MHz.\hypertarget{_m_s_p430_f_r2xx__4xx_2timer__a_2timer__a__ex1__pwm_single_8c_autotoc_md100}{}\doxysubsubsection{Tested On\+: MSP430\+FR4133}\label{_m_s_p430_f_r2xx__4xx_2timer__a_2timer__a__ex1__pwm_single_8c_autotoc_md100}
\tabulinesep=1mm
\begin{longtabu}spread 0pt [c]{*{2}{|X[-1]}|}
\hline
\PBS\centering \cellcolor{\tableheadbgcolor}\textbf{ / }&\PBS\centering \cellcolor{\tableheadbgcolor}\textbf{ $|$ }\\\cline{1-2}
\endfirsthead
\hline
\endfoot
\hline
\PBS\centering \cellcolor{\tableheadbgcolor}\textbf{ / }&\PBS\centering \cellcolor{\tableheadbgcolor}\textbf{ $|$ }\\\cline{1-2}
\endhead
-- &RST \\\cline{1-2}
\end{longtabu}
$\vert$ $\vert$ $\vert$ P4.\+0/\+TA1.1$\vert$-\/-\/$>$ CCR1 -\/ 75\% PWM $\vert$ $\vert$
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 Timer peripheral
\item GPIO 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 NONE
\end{DoxyItemize}
Definition at line 62 of file timer\+\_\+a\+\_\+ex1\+\_\+pwm\+Single.\+c.
\doxysubsection{Function Documentation}
\mbox{\Hypertarget{_m_s_p430_f_r2xx__4xx_2timer__a_2timer__a__ex1__pwm_single_8c_a6288eba0f8e8ad3ab1544ad731eb7667}\label{_m_s_p430_f_r2xx__4xx_2timer__a_2timer__a__ex1__pwm_single_8c_a6288eba0f8e8ad3ab1544ad731eb7667}}
\index{timer\_a\_ex1\_pwmSingle.c@{timer\_a\_ex1\_pwmSingle.c}!main@{main}}
\index{main@{main}!timer\_a\_ex1\_pwmSingle.c@{timer\_a\_ex1\_pwmSingle.c}}
\doxysubsubsection{\texorpdfstring{main()}{main()}}
{\footnotesize\ttfamily void main (\begin{DoxyParamCaption}\item[{void}]{ }\end{DoxyParamCaption})}
Definition at line 66 of file timer\+\_\+a\+\_\+ex1\+\_\+pwm\+Single.\+c.
References \+\_\+\+\_\+no\+\_\+operation(), DUTY\+\_\+\+CYCLE, param, and TIMER\+\_\+\+A\+\_\+\+PERIOD.

View File

@@ -0,0 +1,79 @@
\hypertarget{_m_s_p430_f_r2xx__4xx_2timer__a_2timer__a__ex2__continous_mode_operation_with_c_c_r0_interrupt_8c}{}\doxysection{Resources/\+Software/msp430\+\_\+driverlib\+\_\+2\+\_\+91\+\_\+13\+\_\+01/examples/\+MSP430\+FR2xx\+\_\+4xx/timer\+\_\+a/timer\+\_\+a\+\_\+ex2\+\_\+continous\+Mode\+Operation\+With\+CCR0\+Interrupt.c File Reference}
\label{_m_s_p430_f_r2xx__4xx_2timer__a_2timer__a__ex2__continous_mode_operation_with_c_c_r0_interrupt_8c}\index{Resources/Software/msp430\_driverlib\_2\_91\_13\_01/examples/MSP430FR2xx\_4xx/timer\_a/timer\_a\_ex2\_continousModeOperationWithCCR0Interrupt.c@{Resources/Software/msp430\_driverlib\_2\_91\_13\_01/examples/MSP430FR2xx\_4xx/timer\_a/timer\_a\_ex2\_continousModeOperationWithCCR0Interrupt.c}}
{\ttfamily \#include \char`\"{}driverlib.\+h\char`\"{}}\newline
{\ttfamily \#include \char`\"{}Board.\+h\char`\"{}}\newline
\doxysubsection*{Macros}
\begin{DoxyCompactItemize}
\item
\#define \mbox{\hyperlink{_m_s_p430_f_r2xx__4xx_2timer__a_2timer__a__ex2__continous_mode_operation_with_c_c_r0_interrupt_8c_a655c866eb3f7ee47831709b091612e63}{COMPARE\+\_\+\+VALUE}}~50000
\end{DoxyCompactItemize}
\doxysubsection*{Functions}
\begin{DoxyCompactItemize}
\item
void \mbox{\hyperlink{_m_s_p430_f_r2xx__4xx_2timer__a_2timer__a__ex2__continous_mode_operation_with_c_c_r0_interrupt_8c_a6288eba0f8e8ad3ab1544ad731eb7667}{main}} (void)
\item
void \mbox{\hyperlink{_m_s_p430_f_r2xx__4xx_2timer__a_2timer__a__ex2__continous_mode_operation_with_c_c_r0_interrupt_8c_a7041a18d2acb50837a4cbfb1bd386bd7}{TIMER1\+\_\+\+A0\+\_\+\+ISR}} (void)
\end{DoxyCompactItemize}
\doxysubsection{Macro Definition Documentation}
\mbox{\Hypertarget{_m_s_p430_f_r2xx__4xx_2timer__a_2timer__a__ex2__continous_mode_operation_with_c_c_r0_interrupt_8c_a655c866eb3f7ee47831709b091612e63}\label{_m_s_p430_f_r2xx__4xx_2timer__a_2timer__a__ex2__continous_mode_operation_with_c_c_r0_interrupt_8c_a655c866eb3f7ee47831709b091612e63}}
\index{timer\_a\_ex2\_continousModeOperationWithCCR0Interrupt.c@{timer\_a\_ex2\_continousModeOperationWithCCR0Interrupt.c}!COMPARE\_VALUE@{COMPARE\_VALUE}}
\index{COMPARE\_VALUE@{COMPARE\_VALUE}!timer\_a\_ex2\_continousModeOperationWithCCR0Interrupt.c@{timer\_a\_ex2\_continousModeOperationWithCCR0Interrupt.c}}
\doxysubsubsection{\texorpdfstring{COMPARE\_VALUE}{COMPARE\_VALUE}}
{\footnotesize\ttfamily \#define COMPARE\+\_\+\+VALUE~50000}
TIMER\+\_\+A, Toggle LED1, CCR0 Cont. Mode ISR, DCO SMCLK
Toggle LED1 using software and TA\+\_\+0 ISR. Toggles every 50000 SMCLK cycles. SMCLK provides clock source for TACLK. During the TA\+\_\+0 ISR, LED1 is toggled and 50000 clock cycles are added to CCR0. TA\+\_\+0 ISR is triggered every 50000 cycles. CPU is normally off and used only during TA\+\_\+\+ISR. ACLK = n/a, MCLK = SMCLK = TACLK = default DCO $\sim$1.048MHz \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 TimerA peripheral
\item GPIO 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 Timer A0
\end{DoxyItemize}
Definition at line 64 of file timer\+\_\+a\+\_\+ex2\+\_\+continous\+Mode\+Operation\+With\+CCR0\+Interrupt.\+c.
\doxysubsection{Function Documentation}
\mbox{\Hypertarget{_m_s_p430_f_r2xx__4xx_2timer__a_2timer__a__ex2__continous_mode_operation_with_c_c_r0_interrupt_8c_a6288eba0f8e8ad3ab1544ad731eb7667}\label{_m_s_p430_f_r2xx__4xx_2timer__a_2timer__a__ex2__continous_mode_operation_with_c_c_r0_interrupt_8c_a6288eba0f8e8ad3ab1544ad731eb7667}}
\index{timer\_a\_ex2\_continousModeOperationWithCCR0Interrupt.c@{timer\_a\_ex2\_continousModeOperationWithCCR0Interrupt.c}!main@{main}}
\index{main@{main}!timer\_a\_ex2\_continousModeOperationWithCCR0Interrupt.c@{timer\_a\_ex2\_continousModeOperationWithCCR0Interrupt.c}}
\doxysubsubsection{\texorpdfstring{main()}{main()}}
{\footnotesize\ttfamily void main (\begin{DoxyParamCaption}\item[{void}]{ }\end{DoxyParamCaption})}
Definition at line 66 of file timer\+\_\+a\+\_\+ex2\+\_\+continous\+Mode\+Operation\+With\+CCR0\+Interrupt.\+c.
References \+\_\+\+\_\+no\+\_\+operation(), and COMPARE\+\_\+\+VALUE.
\mbox{\Hypertarget{_m_s_p430_f_r2xx__4xx_2timer__a_2timer__a__ex2__continous_mode_operation_with_c_c_r0_interrupt_8c_a7041a18d2acb50837a4cbfb1bd386bd7}\label{_m_s_p430_f_r2xx__4xx_2timer__a_2timer__a__ex2__continous_mode_operation_with_c_c_r0_interrupt_8c_a7041a18d2acb50837a4cbfb1bd386bd7}}
\index{timer\_a\_ex2\_continousModeOperationWithCCR0Interrupt.c@{timer\_a\_ex2\_continousModeOperationWithCCR0Interrupt.c}!TIMER1\_A0\_ISR@{TIMER1\_A0\_ISR}}
\index{TIMER1\_A0\_ISR@{TIMER1\_A0\_ISR}!timer\_a\_ex2\_continousModeOperationWithCCR0Interrupt.c@{timer\_a\_ex2\_continousModeOperationWithCCR0Interrupt.c}}
\doxysubsubsection{\texorpdfstring{TIMER1\_A0\_ISR()}{TIMER1\_A0\_ISR()}}
{\footnotesize\ttfamily void TIMER1\+\_\+\+A0\+\_\+\+ISR (\begin{DoxyParamCaption}\item[{void}]{ }\end{DoxyParamCaption})}
Definition at line 127 of file timer\+\_\+a\+\_\+ex2\+\_\+continous\+Mode\+Operation\+With\+CCR0\+Interrupt.\+c.
References COMPARE\+\_\+\+VALUE.

View File

@@ -0,0 +1,63 @@
\hypertarget{_m_s_p430_f_r2xx__4xx_2timer__a_2timer__a__ex3__continous_mode_operation_with_t_a_i_e_interrupt_8c}{}\doxysection{Resources/\+Software/msp430\+\_\+driverlib\+\_\+2\+\_\+91\+\_\+13\+\_\+01/examples/\+MSP430\+FR2xx\+\_\+4xx/timer\+\_\+a/timer\+\_\+a\+\_\+ex3\+\_\+continous\+Mode\+Operation\+With\+TAIEInterrupt.c File Reference}
\label{_m_s_p430_f_r2xx__4xx_2timer__a_2timer__a__ex3__continous_mode_operation_with_t_a_i_e_interrupt_8c}\index{Resources/Software/msp430\_driverlib\_2\_91\_13\_01/examples/MSP430FR2xx\_4xx/timer\_a/timer\_a\_ex3\_continousModeOperationWithTAIEInterrupt.c@{Resources/Software/msp430\_driverlib\_2\_91\_13\_01/examples/MSP430FR2xx\_4xx/timer\_a/timer\_a\_ex3\_continousModeOperationWithTAIEInterrupt.c}}
{\ttfamily \#include \char`\"{}driverlib.\+h\char`\"{}}\newline
\doxysubsection*{Functions}
\begin{DoxyCompactItemize}
\item
void \mbox{\hyperlink{_m_s_p430_f_r2xx__4xx_2timer__a_2timer__a__ex3__continous_mode_operation_with_t_a_i_e_interrupt_8c_a6288eba0f8e8ad3ab1544ad731eb7667}{main}} (void)
\item
void \mbox{\hyperlink{_m_s_p430_f_r2xx__4xx_2timer__a_2timer__a__ex3__continous_mode_operation_with_t_a_i_e_interrupt_8c_a75b17bc1a2d3b4b8e3b7fff08b7651a8}{TIMER1\+\_\+\+A1\+\_\+\+ISR}} (void)
\end{DoxyCompactItemize}
\doxysubsection{Function Documentation}
\mbox{\Hypertarget{_m_s_p430_f_r2xx__4xx_2timer__a_2timer__a__ex3__continous_mode_operation_with_t_a_i_e_interrupt_8c_a6288eba0f8e8ad3ab1544ad731eb7667}\label{_m_s_p430_f_r2xx__4xx_2timer__a_2timer__a__ex3__continous_mode_operation_with_t_a_i_e_interrupt_8c_a6288eba0f8e8ad3ab1544ad731eb7667}}
\index{timer\_a\_ex3\_continousModeOperationWithTAIEInterrupt.c@{timer\_a\_ex3\_continousModeOperationWithTAIEInterrupt.c}!main@{main}}
\index{main@{main}!timer\_a\_ex3\_continousModeOperationWithTAIEInterrupt.c@{timer\_a\_ex3\_continousModeOperationWithTAIEInterrupt.c}}
\doxysubsubsection{\texorpdfstring{main()}{main()}}
{\footnotesize\ttfamily void main (\begin{DoxyParamCaption}\item[{void}]{ }\end{DoxyParamCaption})}
TIMER\+\_\+A, Toggle P1.\+0, Overflow ISR, 32k\+Hz ACLK
Description\+: Toggle P1.\+0 using software and the TIMER\+\_\+A overflow ISR. In this example an ISR triggers when TB overflows. Inside the ISR P1.\+0 is toggled. Toggle rate is exactly 0.\+25\+Hz = \mbox{[}32k\+Hz/\+FFFFh\mbox{]}/2. Proper use of the TAIV interrupt vector generator is demonstrated. ACLK = TBCLK = 32k\+Hz, MCLK = SMCLK = default DCO $\sim$ 1.\+048\+MHz\hypertarget{_m_s_p430_f_r2xx__4xx_2timer__a_2timer__a__ex3__continous_mode_operation_with_t_a_i_e_interrupt_8c_autotoc_md101}{}\doxysubsubsection{Tested On\+: MSP430\+FR4133}\label{_m_s_p430_f_r2xx__4xx_2timer__a_2timer__a__ex3__continous_mode_operation_with_t_a_i_e_interrupt_8c_autotoc_md101}
\tabulinesep=1mm
\begin{longtabu}spread 0pt [c]{*{2}{|X[-1]}|}
\hline
\PBS\centering \cellcolor{\tableheadbgcolor}\textbf{ / }&\PBS\centering \cellcolor{\tableheadbgcolor}\textbf{ $|$ }\\\cline{1-2}
\endfirsthead
\hline
\endfoot
\hline
\PBS\centering \cellcolor{\tableheadbgcolor}\textbf{ / }&\PBS\centering \cellcolor{\tableheadbgcolor}\textbf{ $|$ }\\\cline{1-2}
\endhead
-- &RST \\\cline{1-2}
\end{longtabu}
$\vert$ $\vert$ $\vert$ P1.\+0$\vert$-\/-\/$>$LED
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 Timer peripheral
\item GPIO 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 TIMER\+\_\+\+A7
\end{DoxyItemize}
Definition at line 63 of file timer\+\_\+a\+\_\+ex3\+\_\+continous\+Mode\+Operation\+With\+TAIEInterrupt.\+c.
References \+\_\+\+\_\+no\+\_\+operation(), and param.
\mbox{\Hypertarget{_m_s_p430_f_r2xx__4xx_2timer__a_2timer__a__ex3__continous_mode_operation_with_t_a_i_e_interrupt_8c_a75b17bc1a2d3b4b8e3b7fff08b7651a8}\label{_m_s_p430_f_r2xx__4xx_2timer__a_2timer__a__ex3__continous_mode_operation_with_t_a_i_e_interrupt_8c_a75b17bc1a2d3b4b8e3b7fff08b7651a8}}
\index{timer\_a\_ex3\_continousModeOperationWithTAIEInterrupt.c@{timer\_a\_ex3\_continousModeOperationWithTAIEInterrupt.c}!TIMER1\_A1\_ISR@{TIMER1\_A1\_ISR}}
\index{TIMER1\_A1\_ISR@{TIMER1\_A1\_ISR}!timer\_a\_ex3\_continousModeOperationWithTAIEInterrupt.c@{timer\_a\_ex3\_continousModeOperationWithTAIEInterrupt.c}}
\doxysubsubsection{\texorpdfstring{TIMER1\_A1\_ISR()}{TIMER1\_A1\_ISR()}}
{\footnotesize\ttfamily void TIMER1\+\_\+\+A1\+\_\+\+ISR (\begin{DoxyParamCaption}\item[{void}]{ }\end{DoxyParamCaption})}
Definition at line 109 of file timer\+\_\+a\+\_\+ex3\+\_\+continous\+Mode\+Operation\+With\+TAIEInterrupt.\+c.

View File

@@ -0,0 +1,93 @@
\hypertarget{_m_s_p430_f_r2xx__4xx_2timer__a_2timer__a__ex4__pwm_multiple_up_down_8c}{}\doxysection{Resources/\+Software/msp430\+\_\+driverlib\+\_\+2\+\_\+91\+\_\+13\+\_\+01/examples/\+MSP430\+FR2xx\+\_\+4xx/timer\+\_\+a/timer\+\_\+a\+\_\+ex4\+\_\+pwm\+Multiple\+Up\+Down.c File Reference}
\label{_m_s_p430_f_r2xx__4xx_2timer__a_2timer__a__ex4__pwm_multiple_up_down_8c}\index{Resources/Software/msp430\_driverlib\_2\_91\_13\_01/examples/MSP430FR2xx\_4xx/timer\_a/timer\_a\_ex4\_pwmMultipleUpDown.c@{Resources/Software/msp430\_driverlib\_2\_91\_13\_01/examples/MSP430FR2xx\_4xx/timer\_a/timer\_a\_ex4\_pwmMultipleUpDown.c}}
{\ttfamily \#include \char`\"{}driverlib.\+h\char`\"{}}\newline
\doxysubsection*{Macros}
\begin{DoxyCompactItemize}
\item
\#define \mbox{\hyperlink{_m_s_p430_f_r2xx__4xx_2timer__a_2timer__a__ex4__pwm_multiple_up_down_8c_ad888acf7c13a4bedd6541ceb5cf9bf6d}{TIMER\+\_\+\+PERIOD}}~127
\item
\#define \mbox{\hyperlink{_m_s_p430_f_r2xx__4xx_2timer__a_2timer__a__ex4__pwm_multiple_up_down_8c_abb796f001390b47f0f733ea9a08481db}{DUTY\+\_\+\+CYCLE1}}~32
\item
\#define \mbox{\hyperlink{_m_s_p430_f_r2xx__4xx_2timer__a_2timer__a__ex4__pwm_multiple_up_down_8c_a497fa7efc7cefe7b023b4215f48cfe2a}{DUTY\+\_\+\+CYCLE2}}~96
\end{DoxyCompactItemize}
\doxysubsection*{Functions}
\begin{DoxyCompactItemize}
\item
void \mbox{\hyperlink{_m_s_p430_f_r2xx__4xx_2timer__a_2timer__a__ex4__pwm_multiple_up_down_8c_a6288eba0f8e8ad3ab1544ad731eb7667}{main}} (void)
\end{DoxyCompactItemize}
\doxysubsection{Macro Definition Documentation}
\mbox{\Hypertarget{_m_s_p430_f_r2xx__4xx_2timer__a_2timer__a__ex4__pwm_multiple_up_down_8c_abb796f001390b47f0f733ea9a08481db}\label{_m_s_p430_f_r2xx__4xx_2timer__a_2timer__a__ex4__pwm_multiple_up_down_8c_abb796f001390b47f0f733ea9a08481db}}
\index{timer\_a\_ex4\_pwmMultipleUpDown.c@{timer\_a\_ex4\_pwmMultipleUpDown.c}!DUTY\_CYCLE1@{DUTY\_CYCLE1}}
\index{DUTY\_CYCLE1@{DUTY\_CYCLE1}!timer\_a\_ex4\_pwmMultipleUpDown.c@{timer\_a\_ex4\_pwmMultipleUpDown.c}}
\doxysubsubsection{\texorpdfstring{DUTY\_CYCLE1}{DUTY\_CYCLE1}}
{\footnotesize\ttfamily \#define DUTY\+\_\+\+CYCLE1~32}
Definition at line 66 of file timer\+\_\+a\+\_\+ex4\+\_\+pwm\+Multiple\+Up\+Down.\+c.
\mbox{\Hypertarget{_m_s_p430_f_r2xx__4xx_2timer__a_2timer__a__ex4__pwm_multiple_up_down_8c_a497fa7efc7cefe7b023b4215f48cfe2a}\label{_m_s_p430_f_r2xx__4xx_2timer__a_2timer__a__ex4__pwm_multiple_up_down_8c_a497fa7efc7cefe7b023b4215f48cfe2a}}
\index{timer\_a\_ex4\_pwmMultipleUpDown.c@{timer\_a\_ex4\_pwmMultipleUpDown.c}!DUTY\_CYCLE2@{DUTY\_CYCLE2}}
\index{DUTY\_CYCLE2@{DUTY\_CYCLE2}!timer\_a\_ex4\_pwmMultipleUpDown.c@{timer\_a\_ex4\_pwmMultipleUpDown.c}}
\doxysubsubsection{\texorpdfstring{DUTY\_CYCLE2}{DUTY\_CYCLE2}}
{\footnotesize\ttfamily \#define DUTY\+\_\+\+CYCLE2~96}
Definition at line 67 of file timer\+\_\+a\+\_\+ex4\+\_\+pwm\+Multiple\+Up\+Down.\+c.
\mbox{\Hypertarget{_m_s_p430_f_r2xx__4xx_2timer__a_2timer__a__ex4__pwm_multiple_up_down_8c_ad888acf7c13a4bedd6541ceb5cf9bf6d}\label{_m_s_p430_f_r2xx__4xx_2timer__a_2timer__a__ex4__pwm_multiple_up_down_8c_ad888acf7c13a4bedd6541ceb5cf9bf6d}}
\index{timer\_a\_ex4\_pwmMultipleUpDown.c@{timer\_a\_ex4\_pwmMultipleUpDown.c}!TIMER\_PERIOD@{TIMER\_PERIOD}}
\index{TIMER\_PERIOD@{TIMER\_PERIOD}!timer\_a\_ex4\_pwmMultipleUpDown.c@{timer\_a\_ex4\_pwmMultipleUpDown.c}}
\doxysubsubsection{\texorpdfstring{TIMER\_PERIOD}{TIMER\_PERIOD}}
{\footnotesize\ttfamily \#define TIMER\+\_\+\+PERIOD~127}
Timer\+\_\+\+A3, PWM TA1.\+1-\/2, Up/\+Down Mode, DCO SMCLK
Description\+: This program generates two PWM outputs on P4.\+0/8.3 using Timer1\+\_\+A configured for up/down mode. The value in CCR0, 128, defines the PWM period/2 and the values in CCR1 and CCR2 the PWM duty cycles. Using $\sim$1.045MHz SMCLK as TACLK, the timer period is $\sim$233us with a 75\% duty cycle on P4.\+0 and 25\% on P8.\+3. SMCLK = MCLK = TACLK = default DCO $\sim$1.048MHz.\hypertarget{_m_s_p430_f_r2xx__4xx_2timer__a_2timer__a__ex4__pwm_multiple_up_down_8c_autotoc_md102}{}\doxysubsubsection{Tested On\+: MSP430\+FR4133}\label{_m_s_p430_f_r2xx__4xx_2timer__a_2timer__a__ex4__pwm_multiple_up_down_8c_autotoc_md102}
\tabulinesep=1mm
\begin{longtabu}spread 0pt [c]{*{2}{|X[-1]}|}
\hline
\PBS\centering \cellcolor{\tableheadbgcolor}\textbf{ / }&\PBS\centering \cellcolor{\tableheadbgcolor}\textbf{ $|$ }\\\cline{1-2}
\endfirsthead
\hline
\endfoot
\hline
\PBS\centering \cellcolor{\tableheadbgcolor}\textbf{ / }&\PBS\centering \cellcolor{\tableheadbgcolor}\textbf{ $|$ }\\\cline{1-2}
\endhead
-- &RST \\\cline{1-2}
\end{longtabu}
$\vert$ $\vert$ $\vert$ P4.\+0/\+TA1.1$\vert$-\/-\/$>$ CCR1 -\/ 75\% PWM $\vert$ P8.\+3/\+TA1.2$\vert$-\/-\/$>$ CCR2 -\/ 25\% PWM
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 Timer peripheral
\item GPIO 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 NONE
\end{DoxyItemize}
Definition at line 65 of file timer\+\_\+a\+\_\+ex4\+\_\+pwm\+Multiple\+Up\+Down.\+c.
\doxysubsection{Function Documentation}
\mbox{\Hypertarget{_m_s_p430_f_r2xx__4xx_2timer__a_2timer__a__ex4__pwm_multiple_up_down_8c_a6288eba0f8e8ad3ab1544ad731eb7667}\label{_m_s_p430_f_r2xx__4xx_2timer__a_2timer__a__ex4__pwm_multiple_up_down_8c_a6288eba0f8e8ad3ab1544ad731eb7667}}
\index{timer\_a\_ex4\_pwmMultipleUpDown.c@{timer\_a\_ex4\_pwmMultipleUpDown.c}!main@{main}}
\index{main@{main}!timer\_a\_ex4\_pwmMultipleUpDown.c@{timer\_a\_ex4\_pwmMultipleUpDown.c}}
\doxysubsubsection{\texorpdfstring{main()}{main()}}
{\footnotesize\ttfamily void main (\begin{DoxyParamCaption}\item[{void}]{ }\end{DoxyParamCaption})}
Definition at line 69 of file timer\+\_\+a\+\_\+ex4\+\_\+pwm\+Multiple\+Up\+Down.\+c.
References \+\_\+\+\_\+no\+\_\+operation(), DUTY\+\_\+\+CYCLE1, DUTY\+\_\+\+CYCLE2, and TIMER\+\_\+\+PERIOD.

View File

@@ -0,0 +1,91 @@
\hypertarget{_m_s_p430_f_r2xx__4xx_2timer__a_2timer__a__ex5__pwm_multiple_up_8c}{}\doxysection{Resources/\+Software/msp430\+\_\+driverlib\+\_\+2\+\_\+91\+\_\+13\+\_\+01/examples/\+MSP430\+FR2xx\+\_\+4xx/timer\+\_\+a/timer\+\_\+a\+\_\+ex5\+\_\+pwm\+Multiple\+Up.c File Reference}
\label{_m_s_p430_f_r2xx__4xx_2timer__a_2timer__a__ex5__pwm_multiple_up_8c}\index{Resources/Software/msp430\_driverlib\_2\_91\_13\_01/examples/MSP430FR2xx\_4xx/timer\_a/timer\_a\_ex5\_pwmMultipleUp.c@{Resources/Software/msp430\_driverlib\_2\_91\_13\_01/examples/MSP430FR2xx\_4xx/timer\_a/timer\_a\_ex5\_pwmMultipleUp.c}}
{\ttfamily \#include \char`\"{}driverlib.\+h\char`\"{}}\newline
\doxysubsection*{Macros}
\begin{DoxyCompactItemize}
\item
\#define \mbox{\hyperlink{_m_s_p430_f_r2xx__4xx_2timer__a_2timer__a__ex5__pwm_multiple_up_8c_ad888acf7c13a4bedd6541ceb5cf9bf6d}{TIMER\+\_\+\+PERIOD}}~511
\item
\#define \mbox{\hyperlink{_m_s_p430_f_r2xx__4xx_2timer__a_2timer__a__ex5__pwm_multiple_up_8c_abb796f001390b47f0f733ea9a08481db}{DUTY\+\_\+\+CYCLE1}}~384
\item
\#define \mbox{\hyperlink{_m_s_p430_f_r2xx__4xx_2timer__a_2timer__a__ex5__pwm_multiple_up_8c_a497fa7efc7cefe7b023b4215f48cfe2a}{DUTY\+\_\+\+CYCLE2}}~128
\end{DoxyCompactItemize}
\doxysubsection*{Functions}
\begin{DoxyCompactItemize}
\item
void \mbox{\hyperlink{_m_s_p430_f_r2xx__4xx_2timer__a_2timer__a__ex5__pwm_multiple_up_8c_a6288eba0f8e8ad3ab1544ad731eb7667}{main}} (void)
\end{DoxyCompactItemize}
\doxysubsection{Macro Definition Documentation}
\mbox{\Hypertarget{_m_s_p430_f_r2xx__4xx_2timer__a_2timer__a__ex5__pwm_multiple_up_8c_abb796f001390b47f0f733ea9a08481db}\label{_m_s_p430_f_r2xx__4xx_2timer__a_2timer__a__ex5__pwm_multiple_up_8c_abb796f001390b47f0f733ea9a08481db}}
\index{timer\_a\_ex5\_pwmMultipleUp.c@{timer\_a\_ex5\_pwmMultipleUp.c}!DUTY\_CYCLE1@{DUTY\_CYCLE1}}
\index{DUTY\_CYCLE1@{DUTY\_CYCLE1}!timer\_a\_ex5\_pwmMultipleUp.c@{timer\_a\_ex5\_pwmMultipleUp.c}}
\doxysubsubsection{\texorpdfstring{DUTY\_CYCLE1}{DUTY\_CYCLE1}}
{\footnotesize\ttfamily \#define DUTY\+\_\+\+CYCLE1~384}
Definition at line 63 of file timer\+\_\+a\+\_\+ex5\+\_\+pwm\+Multiple\+Up.\+c.
\mbox{\Hypertarget{_m_s_p430_f_r2xx__4xx_2timer__a_2timer__a__ex5__pwm_multiple_up_8c_a497fa7efc7cefe7b023b4215f48cfe2a}\label{_m_s_p430_f_r2xx__4xx_2timer__a_2timer__a__ex5__pwm_multiple_up_8c_a497fa7efc7cefe7b023b4215f48cfe2a}}
\index{timer\_a\_ex5\_pwmMultipleUp.c@{timer\_a\_ex5\_pwmMultipleUp.c}!DUTY\_CYCLE2@{DUTY\_CYCLE2}}
\index{DUTY\_CYCLE2@{DUTY\_CYCLE2}!timer\_a\_ex5\_pwmMultipleUp.c@{timer\_a\_ex5\_pwmMultipleUp.c}}
\doxysubsubsection{\texorpdfstring{DUTY\_CYCLE2}{DUTY\_CYCLE2}}
{\footnotesize\ttfamily \#define DUTY\+\_\+\+CYCLE2~128}
Definition at line 64 of file timer\+\_\+a\+\_\+ex5\+\_\+pwm\+Multiple\+Up.\+c.
\mbox{\Hypertarget{_m_s_p430_f_r2xx__4xx_2timer__a_2timer__a__ex5__pwm_multiple_up_8c_ad888acf7c13a4bedd6541ceb5cf9bf6d}\label{_m_s_p430_f_r2xx__4xx_2timer__a_2timer__a__ex5__pwm_multiple_up_8c_ad888acf7c13a4bedd6541ceb5cf9bf6d}}
\index{timer\_a\_ex5\_pwmMultipleUp.c@{timer\_a\_ex5\_pwmMultipleUp.c}!TIMER\_PERIOD@{TIMER\_PERIOD}}
\index{TIMER\_PERIOD@{TIMER\_PERIOD}!timer\_a\_ex5\_pwmMultipleUp.c@{timer\_a\_ex5\_pwmMultipleUp.c}}
\doxysubsubsection{\texorpdfstring{TIMER\_PERIOD}{TIMER\_PERIOD}}
{\footnotesize\ttfamily \#define TIMER\+\_\+\+PERIOD~511}
This program generates two PWM outputs on P4.\+0, P8.\+3 using Timer1\+\_\+A configured for up mode. The value in CCR0, 512-\/1, defines the PWM period and the values in CCR1 and CCR2 the PWM duty cycles. Using $\sim$1.092MHz SMCLK as TACLK, the timer period is $\sim$500us with a 75\% duty cycle on P4.\+0 and 25\% on P8.\+3. ACLK = n/a, SMCLK = MCLK = TACLK = default DCO $\sim$1.048MHz.\hypertarget{_m_s_p430_f_r2xx__4xx_2timer__a_2timer__a__ex5__pwm_multiple_up_8c_autotoc_md103}{}\doxysubsubsection{Tested On\+: MSP430\+FR4133}\label{_m_s_p430_f_r2xx__4xx_2timer__a_2timer__a__ex5__pwm_multiple_up_8c_autotoc_md103}
\tabulinesep=1mm
\begin{longtabu}spread 0pt [c]{*{2}{|X[-1]}|}
\hline
\PBS\centering \cellcolor{\tableheadbgcolor}\textbf{ / }&\PBS\centering \cellcolor{\tableheadbgcolor}\textbf{ $|$ }\\\cline{1-2}
\endfirsthead
\hline
\endfoot
\hline
\PBS\centering \cellcolor{\tableheadbgcolor}\textbf{ / }&\PBS\centering \cellcolor{\tableheadbgcolor}\textbf{ $|$ }\\\cline{1-2}
\endhead
-- &RST \\\cline{1-2}
\end{longtabu}
$\vert$ $\vert$ $\vert$ P4.\+0/\+TA1.1$\vert$-\/-\/$>$ CCR1 -\/ 75\% PWM $\vert$ P8.\+3/\+TA1.2$\vert$-\/-\/$>$ CCR2 -\/ 25\% PWM
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 Timer peripheral
\item GPIO 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 NONE
\end{DoxyItemize}
Definition at line 62 of file timer\+\_\+a\+\_\+ex5\+\_\+pwm\+Multiple\+Up.\+c.
\doxysubsection{Function Documentation}
\mbox{\Hypertarget{_m_s_p430_f_r2xx__4xx_2timer__a_2timer__a__ex5__pwm_multiple_up_8c_a6288eba0f8e8ad3ab1544ad731eb7667}\label{_m_s_p430_f_r2xx__4xx_2timer__a_2timer__a__ex5__pwm_multiple_up_8c_a6288eba0f8e8ad3ab1544ad731eb7667}}
\index{timer\_a\_ex5\_pwmMultipleUp.c@{timer\_a\_ex5\_pwmMultipleUp.c}!main@{main}}
\index{main@{main}!timer\_a\_ex5\_pwmMultipleUp.c@{timer\_a\_ex5\_pwmMultipleUp.c}}
\doxysubsubsection{\texorpdfstring{main()}{main()}}
{\footnotesize\ttfamily void main (\begin{DoxyParamCaption}\item[{void}]{ }\end{DoxyParamCaption})}
Definition at line 66 of file timer\+\_\+a\+\_\+ex5\+\_\+pwm\+Multiple\+Up.\+c.
References \+\_\+\+\_\+no\+\_\+operation(), DUTY\+\_\+\+CYCLE1, DUTY\+\_\+\+CYCLE2, param, and TIMER\+\_\+\+PERIOD.

View File

@@ -0,0 +1,79 @@
\hypertarget{_m_s_p430_f_r2xx__4xx_2timer__a_2timer__a__ex6__up_down_mode_operation_8c}{}\doxysection{Resources/\+Software/msp430\+\_\+driverlib\+\_\+2\+\_\+91\+\_\+13\+\_\+01/examples/\+MSP430\+FR2xx\+\_\+4xx/timer\+\_\+a/timer\+\_\+a\+\_\+ex6\+\_\+up\+Down\+Mode\+Operation.c File Reference}
\label{_m_s_p430_f_r2xx__4xx_2timer__a_2timer__a__ex6__up_down_mode_operation_8c}\index{Resources/Software/msp430\_driverlib\_2\_91\_13\_01/examples/MSP430FR2xx\_4xx/timer\_a/timer\_a\_ex6\_upDownModeOperation.c@{Resources/Software/msp430\_driverlib\_2\_91\_13\_01/examples/MSP430FR2xx\_4xx/timer\_a/timer\_a\_ex6\_upDownModeOperation.c}}
{\ttfamily \#include \char`\"{}driverlib.\+h\char`\"{}}\newline
\doxysubsection*{Macros}
\begin{DoxyCompactItemize}
\item
\#define \mbox{\hyperlink{_m_s_p430_f_r2xx__4xx_2timer__a_2timer__a__ex6__up_down_mode_operation_8c_ae899bfdc491d37c006b4c301d9f8e147}{TIMER\+\_\+\+A\+\_\+\+PERIOD}}~250
\item
\#define \mbox{\hyperlink{_m_s_p430_f_r2xx__4xx_2timer__a_2timer__a__ex6__up_down_mode_operation_8c_a940d0fcbbee0921e43201c554231947c}{DUTY\+\_\+\+CYCLE}}~250
\end{DoxyCompactItemize}
\doxysubsection*{Functions}
\begin{DoxyCompactItemize}
\item
void \mbox{\hyperlink{_m_s_p430_f_r2xx__4xx_2timer__a_2timer__a__ex6__up_down_mode_operation_8c_a6288eba0f8e8ad3ab1544ad731eb7667}{main}} (void)
\end{DoxyCompactItemize}
\doxysubsection{Macro Definition Documentation}
\mbox{\Hypertarget{_m_s_p430_f_r2xx__4xx_2timer__a_2timer__a__ex6__up_down_mode_operation_8c_a940d0fcbbee0921e43201c554231947c}\label{_m_s_p430_f_r2xx__4xx_2timer__a_2timer__a__ex6__up_down_mode_operation_8c_a940d0fcbbee0921e43201c554231947c}}
\index{timer\_a\_ex6\_upDownModeOperation.c@{timer\_a\_ex6\_upDownModeOperation.c}!DUTY\_CYCLE@{DUTY\_CYCLE}}
\index{DUTY\_CYCLE@{DUTY\_CYCLE}!timer\_a\_ex6\_upDownModeOperation.c@{timer\_a\_ex6\_upDownModeOperation.c}}
\doxysubsubsection{\texorpdfstring{DUTY\_CYCLE}{DUTY\_CYCLE}}
{\footnotesize\ttfamily \#define DUTY\+\_\+\+CYCLE~250}
Definition at line 64 of file timer\+\_\+a\+\_\+ex6\+\_\+up\+Down\+Mode\+Operation.\+c.
\mbox{\Hypertarget{_m_s_p430_f_r2xx__4xx_2timer__a_2timer__a__ex6__up_down_mode_operation_8c_ae899bfdc491d37c006b4c301d9f8e147}\label{_m_s_p430_f_r2xx__4xx_2timer__a_2timer__a__ex6__up_down_mode_operation_8c_ae899bfdc491d37c006b4c301d9f8e147}}
\index{timer\_a\_ex6\_upDownModeOperation.c@{timer\_a\_ex6\_upDownModeOperation.c}!TIMER\_A\_PERIOD@{TIMER\_A\_PERIOD}}
\index{TIMER\_A\_PERIOD@{TIMER\_A\_PERIOD}!timer\_a\_ex6\_upDownModeOperation.c@{timer\_a\_ex6\_upDownModeOperation.c}}
\doxysubsubsection{\texorpdfstring{TIMER\_A\_PERIOD}{TIMER\_A\_PERIOD}}
{\footnotesize\ttfamily \#define TIMER\+\_\+\+A\+\_\+\+PERIOD~250}
Toggle P2.\+4 using hardware TA1.\+0 output. Timer1\+\_\+A is configured for up/down mode with CCR0 defining period, TA1.\+1 also output on P4.\+0. In this example, CCR0 is loaded with 250 and TA1.\+0 will toggle P4.\+0 at TACLK/2$\ast$250. Thus the output frequency on P4.\+0 will be the TACLK/500. No CPU or software resources required. As coded with TACLK = SMCLK, P4.\+0 output frequency is $\sim$1.048M/500. SMCLK = MCLK = TACLK = default DCO $\sim$1.048MHz\hypertarget{_m_s_p430_f_r2xx__4xx_2timer__a_2timer__a__ex6__up_down_mode_operation_8c_autotoc_md104}{}\doxysubsubsection{Tested On\+: MSP430\+FR4133}\label{_m_s_p430_f_r2xx__4xx_2timer__a_2timer__a__ex6__up_down_mode_operation_8c_autotoc_md104}
\tabulinesep=1mm
\begin{longtabu}spread 0pt [c]{*{2}{|X[-1]}|}
\hline
\PBS\centering \cellcolor{\tableheadbgcolor}\textbf{ / }&\PBS\centering \cellcolor{\tableheadbgcolor}\textbf{ $|$ }\\\cline{1-2}
\endfirsthead
\hline
\endfoot
\hline
\PBS\centering \cellcolor{\tableheadbgcolor}\textbf{ / }&\PBS\centering \cellcolor{\tableheadbgcolor}\textbf{ $|$ }\\\cline{1-2}
\endhead
-- &RST \\\cline{1-2}
\end{longtabu}
$\vert$ $\vert$ $\vert$ P4.\+0/\+TA1.1$\vert$-\/-\/$>$ SMCLK/500
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 Timer peripheral
\item GPIO 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 NONE
\end{DoxyItemize}
Definition at line 63 of file timer\+\_\+a\+\_\+ex6\+\_\+up\+Down\+Mode\+Operation.\+c.
\doxysubsection{Function Documentation}
\mbox{\Hypertarget{_m_s_p430_f_r2xx__4xx_2timer__a_2timer__a__ex6__up_down_mode_operation_8c_a6288eba0f8e8ad3ab1544ad731eb7667}\label{_m_s_p430_f_r2xx__4xx_2timer__a_2timer__a__ex6__up_down_mode_operation_8c_a6288eba0f8e8ad3ab1544ad731eb7667}}
\index{timer\_a\_ex6\_upDownModeOperation.c@{timer\_a\_ex6\_upDownModeOperation.c}!main@{main}}
\index{main@{main}!timer\_a\_ex6\_upDownModeOperation.c@{timer\_a\_ex6\_upDownModeOperation.c}}
\doxysubsubsection{\texorpdfstring{main()}{main()}}
{\footnotesize\ttfamily void main (\begin{DoxyParamCaption}\item[{void}]{ }\end{DoxyParamCaption})}
Definition at line 66 of file timer\+\_\+a\+\_\+ex6\+\_\+up\+Down\+Mode\+Operation.\+c.
References \+\_\+\+\_\+no\+\_\+operation(), DUTY\+\_\+\+CYCLE, and TIMER\+\_\+\+A\+\_\+\+PERIOD.

View File

@@ -0,0 +1,59 @@
\hypertarget{_m_s_p430_f_r2xx__4xx_2timer__b_2timer__b__ex1__continuous_mode_c_c_r0_8c}{}\doxysection{Resources/\+Software/msp430\+\_\+driverlib\+\_\+2\+\_\+91\+\_\+13\+\_\+01/examples/\+MSP430\+FR2xx\+\_\+4xx/timer\+\_\+b/timer\+\_\+b\+\_\+ex1\+\_\+continuous\+Mode\+CCR0.c File Reference}
\label{_m_s_p430_f_r2xx__4xx_2timer__b_2timer__b__ex1__continuous_mode_c_c_r0_8c}\index{Resources/Software/msp430\_driverlib\_2\_91\_13\_01/examples/MSP430FR2xx\_4xx/timer\_b/timer\_b\_ex1\_continuousModeCCR0.c@{Resources/Software/msp430\_driverlib\_2\_91\_13\_01/examples/MSP430FR2xx\_4xx/timer\_b/timer\_b\_ex1\_continuousModeCCR0.c}}
{\ttfamily \#include \char`\"{}driverlib.\+h\char`\"{}}\newline
\doxysubsection*{Macros}
\begin{DoxyCompactItemize}
\item
\#define \mbox{\hyperlink{_m_s_p430_f_r2xx__4xx_2timer__b_2timer__b__ex1__continuous_mode_c_c_r0_8c_a655c866eb3f7ee47831709b091612e63}{COMPARE\+\_\+\+VALUE}}~50000
\end{DoxyCompactItemize}
\doxysubsection*{Functions}
\begin{DoxyCompactItemize}
\item
void \mbox{\hyperlink{_m_s_p430_f_r2xx__4xx_2timer__b_2timer__b__ex1__continuous_mode_c_c_r0_8c_a6288eba0f8e8ad3ab1544ad731eb7667}{main}} (void)
\item
void \mbox{\hyperlink{_m_s_p430_f_r2xx__4xx_2timer__b_2timer__b__ex1__continuous_mode_c_c_r0_8c_a17ea7521d47a1d5aa678bc645f70737b}{TIMERB0\+\_\+\+ISR}} (void)
\end{DoxyCompactItemize}
\doxysubsection{Macro Definition Documentation}
\mbox{\Hypertarget{_m_s_p430_f_r2xx__4xx_2timer__b_2timer__b__ex1__continuous_mode_c_c_r0_8c_a655c866eb3f7ee47831709b091612e63}\label{_m_s_p430_f_r2xx__4xx_2timer__b_2timer__b__ex1__continuous_mode_c_c_r0_8c_a655c866eb3f7ee47831709b091612e63}}
\index{timer\_b\_ex1\_continuousModeCCR0.c@{timer\_b\_ex1\_continuousModeCCR0.c}!COMPARE\_VALUE@{COMPARE\_VALUE}}
\index{COMPARE\_VALUE@{COMPARE\_VALUE}!timer\_b\_ex1\_continuousModeCCR0.c@{timer\_b\_ex1\_continuousModeCCR0.c}}
\doxysubsubsection{\texorpdfstring{COMPARE\_VALUE}{COMPARE\_VALUE}}
{\footnotesize\ttfamily \#define COMPARE\+\_\+\+VALUE~50000}
Definition at line 53 of file timer\+\_\+b\+\_\+ex1\+\_\+continuous\+Mode\+CCR0.\+c.
\doxysubsection{Function Documentation}
\mbox{\Hypertarget{_m_s_p430_f_r2xx__4xx_2timer__b_2timer__b__ex1__continuous_mode_c_c_r0_8c_a6288eba0f8e8ad3ab1544ad731eb7667}\label{_m_s_p430_f_r2xx__4xx_2timer__b_2timer__b__ex1__continuous_mode_c_c_r0_8c_a6288eba0f8e8ad3ab1544ad731eb7667}}
\index{timer\_b\_ex1\_continuousModeCCR0.c@{timer\_b\_ex1\_continuousModeCCR0.c}!main@{main}}
\index{main@{main}!timer\_b\_ex1\_continuousModeCCR0.c@{timer\_b\_ex1\_continuousModeCCR0.c}}
\doxysubsubsection{\texorpdfstring{main()}{main()}}
{\footnotesize\ttfamily void main (\begin{DoxyParamCaption}\item[{void}]{ }\end{DoxyParamCaption})}
Definition at line 55 of file timer\+\_\+b\+\_\+ex1\+\_\+continuous\+Mode\+CCR0.\+c.
References \+\_\+\+\_\+no\+\_\+operation(), and COMPARE\+\_\+\+VALUE.
\mbox{\Hypertarget{_m_s_p430_f_r2xx__4xx_2timer__b_2timer__b__ex1__continuous_mode_c_c_r0_8c_a17ea7521d47a1d5aa678bc645f70737b}\label{_m_s_p430_f_r2xx__4xx_2timer__b_2timer__b__ex1__continuous_mode_c_c_r0_8c_a17ea7521d47a1d5aa678bc645f70737b}}
\index{timer\_b\_ex1\_continuousModeCCR0.c@{timer\_b\_ex1\_continuousModeCCR0.c}!TIMERB0\_ISR@{TIMERB0\_ISR}}
\index{TIMERB0\_ISR@{TIMERB0\_ISR}!timer\_b\_ex1\_continuousModeCCR0.c@{timer\_b\_ex1\_continuousModeCCR0.c}}
\doxysubsubsection{\texorpdfstring{TIMERB0\_ISR()}{TIMERB0\_ISR()}}
{\footnotesize\ttfamily void TIMERB0\+\_\+\+ISR (\begin{DoxyParamCaption}\item[{void}]{ }\end{DoxyParamCaption})}
Definition at line 105 of file timer\+\_\+b\+\_\+ex1\+\_\+continuous\+Mode\+CCR0.\+c.
References COMPARE\+\_\+\+VALUE.

Some files were not shown because too many files have changed in this diff Show More