Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Firmware: Develop a UART with interruption for handling TTC communication #140

Open
andrempmattos opened this issue Aug 1, 2021 · 2 comments
Assignees
Labels

Comments

@andrempmattos
Copy link
Member

No description provided.

@mgm8
Copy link
Member

mgm8 commented Aug 2, 2021

Not only the TTC, but any device connected to the serial interface (UART port).

@andrempmattos
Copy link
Member Author

andrempmattos commented Aug 2, 2021

@mgm8

Yes, I developed a generic UART driver for communication with interruptions. I just need to improve the ISR routine part that curretly only works for USCI_A0 and inside it calls the param server task scheme (very specific to the TTC interface). If you have a better suggestion concerning this last part... otherwise I think for now I will let as it is, i. e., ISR should be added/modified for another use case.

Also, just an observation, in order to implement the isr inner routine more generically, I used the UART break char feature to flag the end of a communication, otherwise the EPS would not know the end of a package since the UART only has the RX interrupt flag for this purpose (different from I2C that has a stop bit flag).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

When branches are created from issues, their pull requests are automatically linked.

3 participants