UART Ports for 32 bit version

sumedhkaulgudsumedhkaulgud Bangalore, India
edited December 2015 in Cyton
Hi,

I have been working with the 32 bit version of the OpenBCI V3 board and I wanted to connect an external HC-06 bluetooth module to it to enable faster data transmission. I tried to change the pins for the Serial0 port(UART1) by making changes in the Board_defs.h file. However its not workiing the way it is supposed to. I tried switching to UART2 but one of its default ports is being used for SPI communication with the ADS. Is there some other library where I need to make the change in order to create the custom UART port?

Old Config:
#define       _SER0_BASE           _UART1_BASE_ADDRESS
#define       _SER0_IRQ            _UART1_ERR_IRQ
#define       _SER0_VECTOR         _UART_1_VECTOR
#define       _SER0_IPL_ISR        _UART1_IPL_ISR
#define       _SER0_IPL            _UART1_IPL_IPC
#define       _SER0_SPL            _UART1_SPL_IPC
#define       _SER0_TX_OUT         PPS_OUT_U1TX     // RPB3R = U1TX = 1   
#define       _SER0_TX_PIN         14               // RB3  AN5/C1INA/C2INC/RTCC/RPB3/SCL2/PMWR/RB3     
#define       _SER0_RX_IN          PPS_IN_U1RX      // U1RXR = RPB13 = 3
#define       _SER0_RX_PIN         6                // RB13 AN11/RPB13/CTPLS/PMRD/RB13  

New Config:
#define       _SER0_BASE           _UART1_BASE_ADDRESS
#define       _SER0_IRQ            _UART1_ERR_IRQ
#define       _SER0_VECTOR         _UART_1_VECTOR
#define       _SER0_IPL_ISR        _UART1_IPL_ISR
#define       _SER0_IPL            _UART1_IPL_IPC
#define       _SER0_SPL            _UART1_SPL_IPC
#define       _SER0_TX_OUT         PPS_OUT_U1TX     // RPB3R = U1TX = 1   
#define       _SER0_TX_PIN         13               // RB3  AN5/C1INA/C2INC/RTCC/RPB3/SCL2/PMWR/RB3     
#define       _SER0_RX_IN          PPS_IN_U1RX      // U1RXR = RPB13 = 3
#define       _SER0_RX_PIN         18                // RB13 AN11/RPB13/CTPLS/PMRD/RB13  


Comments

Sign In or Register to comment.