PDA

View Full Version : How Connecting dos devices USART one 2EUSART Pic multiplexed.



Denner
- 12th September 2013, 09:54
Hello,
It is the first time that I have full communication ports, I2C, USB, EUSART, I'm using the PIC 18F46J50 and this has 2 EUSART, one I use for GPS, the other EUSART2 but would need the datasheet I see that are multiplexed.
I like to know how they connect. If the two devices are connected to the same bus RX / TX. Summarizing How to connect two devices in the pic USART EUSART1 and EUSART2 that are multiplexed.
Only there 2 pins TX1 and RX1 but the TX2 AND RX2 are multiplexed. View image.
or look datasheet PIC 18F46J50: http://ww1.microchip.com/downloads/e...Doc/39931d.pdf

7073
The scheme of Figure 1 would be correct. or not!!! or as would the connection?.

THX.

HenrikOlsson
- 12th September 2013, 11:05
The term multiplexed in this case means the pins used for the EUSARTS are also used for other functions - it does not mean that both EUSARTS uses the same set of pins.
EUSART1 is mapped to RC6 & RC7 as you show in the datasheet. EUSART2 can be mapped to any of RPx pins of the device. Read thru section 9.7 of the datasheet for further details.

I've never seen this functionallity in a PIC before, thank you for pointing me to it! Looks extremely flexible!

/Henrik.

Denner
- 13th September 2013, 10:27
Hello,
I'll report on my progress, be if this work ... connecting two devices a pic TX2/RX2 mapping the other pins RPxx.
Thank you.