M3GAPL3X
Junior Member level 3
u1rxreg
Hi guys,
Here is my situation. I am using a dsPIC33FJ64MC802 and it has 2 UART’s. The application I am developing will need access to three UART ports. I will be using two devices on UART1 (not simultaneously) and one on UART2.
My main question is, is the U1RXREG register available when UART is not enabled? M idea is that when the application starts, I will monitor the U1RXREG and see what type of data it has. Depending on what data I receive in that register, I will activate either device A or device B to use UART1.
If U1RXREG is not available with UART not being on, I was thinking I can either turn device A or device B on startup and initialize UART1. When there is data in the U1RXREG, I can jump to an ISR which would check to see which type of data it is. If it is data to turn the other UART device on, I would turn the current device off and turn the other one on and let it do what it needs to.
Any help on this would be great. Just looking for ideas as I am a newbie.
Hi guys,
Here is my situation. I am using a dsPIC33FJ64MC802 and it has 2 UART’s. The application I am developing will need access to three UART ports. I will be using two devices on UART1 (not simultaneously) and one on UART2.
My main question is, is the U1RXREG register available when UART is not enabled? M idea is that when the application starts, I will monitor the U1RXREG and see what type of data it has. Depending on what data I receive in that register, I will activate either device A or device B to use UART1.
If U1RXREG is not available with UART not being on, I was thinking I can either turn device A or device B on startup and initialize UART1. When there is data in the U1RXREG, I can jump to an ISR which would check to see which type of data it is. If it is data to turn the other UART device on, I would turn the current device off and turn the other one on and let it do what it needs to.
Any help on this would be great. Just looking for ideas as I am a newbie.