Nearly finished with USCI A2 initialization

This commit is contained in:
William Miceli
2021-06-06 17:19:32 -04:00
parent 57a3b91606
commit 3630116723
5 changed files with 151 additions and 71 deletions

View File

@@ -0,0 +1,49 @@
/*
* USCI Functions
*/
#ifndef USCI_H_
#define USCI_H_
#include <msp430x54xa.h>
/*
* Initializes all USCI modules using their own respective `usci_xx_init()` functions
*/
void usci_init(void);
/*
* USCI A2 Initialization [UART Mode]
*
* The FTDI FT230XS-R that was selected can handle up to 3 Mbaud, so we'll target 1 Mbaud
* The SMCLK is currently at 10 MHz
*
* Using the "MSP430 USCI/EUSCI UART Baud Rate Calculation" tool at:
* http://software-dl.ti.com/msp430/msp430_public_sw/mcu/msp430/MSP430BaudRateConverter/index.html
* The following values were found:
* clock Prescalar: 10
* firstModReg: 0
* secondModReg: 0
* overSampling: 0
*/
void usci_A0_init(void);
void usci_A1_init(void);
void usci_A2_init(void);
void usci_A2_enable(void);
void usci_A2_disable(void);
void usci_A3_init(void);
void usci_B0_init(void);
void usci_B1_init(void);
void usci_B2_init(void);
void usci_B3_init(void);
#endif /* USCI_H_ */