This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
Part Number: TIDA-01485
This design uses P3.0 and P3.1 for UART communications, but I am not able to get it to work. I am able to get serial communications working using P1.1 and P1.2 for UARTutilizing examples that I have found. However, these pins are assigned as an ADC input. I think my problem is that I am not familiar with how to map to these pins.
We are glad that we were able to resolve this issue, and will now proceed to close this thread.
If you have further questions related to this thread, you may click "Ask a related question" below. The newly created question will be automatically linked to this question.
In reply to Nathan Siegel:
In reply to RS:
No, I still have not been able to get it to work on P3.0 and P3.1. I have no problem at all getting UART communications to work on P1.1 and P1.2 though. I would really like to get it to work on port 3 as the board is designed. Would thee be any way that you could build a simple program that receives a byte on P3.1 and echo right back out on P3.0?
Again, those pins are already set up in the code for UART. The only thing you would need to add for the UART echo is to write your ISR with the following:
while (!(UCA0IFG&UCTXIFG)); // USCI_A0 TX buffer ready?
UCA0TXBUF = UCA0RXBUF; // TX -> RXed character
The only other thing I see in the TID code that might be missing is that, though it maps these pins to the eUSCI module for UART, I do not see anywhere in the code where these pins are set to their secondary function (which they need to be for pin mapping). So, please try including these lines in the init_IO function:
P3SEL |= BIT0;
P3SEL |= BIT1;
Please give this a try and let me know if it works,
All content and materials on this site are provided "as is". TI and its respective suppliers and providers of content make no representations about the suitability of these materials for any purpose and disclaim all warranties and conditions with regard to these materials, including but not limited to all implied warranties and conditions of merchantability, fitness for a particular purpose, title and non-infringement of any third party intellectual property right. No license, either express or implied, by estoppel or otherwise, is granted by TI. Use of the information on this site may require a license from a third party, or a license from TI.
TI is a global semiconductor design and manufacturing company. Innovate with 100,000+ analog ICs andembedded processors, along with software, tools and the industry’s largest sales/support staff.