Drugo
Junior Member level 2
Hello everyone,
this is the first time I'm using this forum, please I desperately need someone's help because I'm stuck with my project. The problem is related to the communication of 2 UARTs through the two multiplexers (CD74HCT4053PWR) of the PIC EXPLORER 16 board (U6 and U7 at page 42 of the Explorer User's Guide: **broken link removed**).
uC I'm using: PIC32MX795F512L
Purpose of the board: it has to communicate via 4 RS-232, SPI and I2C with a couple of external devices. Now SPIs and I2Cs are neither used nor configured.
UARTs "incriminated": UART1A (also called UART1) and UART1B (also called UART4) (I must use these UARTs and not others because I will have to use also SPI, I2C. In addition UART3A and UART3B are currently used and work perfectly)
UART1A pins: RF2 (rx), RF8 (tx)
UART1B pins: RD14 (rx), RD15 (tx)
As indicated by Microchip at page 34-35 of the Explorer User's Guide, I set pins RB14 and RB13 to make work, respectively, UART1A and UART1B. I also program AD1PCFG = 0Xffff to enable PORTB digital pins and, obviously, set these two pins as output. They actually work, I checked with the multimeter.
PROBLEMS:
1. RF8 output does not change the state, it's always at 0V. Instead, RF2, RD14 and RD15, can change the state without any problem (all the hw connections are ok).
2. Even if RD14 and RD15 of UART1B elettrically work, the UART doesn't rx and tx anything. The software I used it's the same of the other two UARTs (UART3A and UART3B), where I obviously changed the speed and the UART index. Here attached you can find the init and send functions of UART1B (i.e. UART4).
As I'm using this PIC32MX on this Explorer to test if the uC I chose for this application is okay (so that we can develop a final board), I hope someone can help me because I really don't know what the solution could be.
Thanks a lot in advance!
Drugo
this is the first time I'm using this forum, please I desperately need someone's help because I'm stuck with my project. The problem is related to the communication of 2 UARTs through the two multiplexers (CD74HCT4053PWR) of the PIC EXPLORER 16 board (U6 and U7 at page 42 of the Explorer User's Guide: **broken link removed**).
uC I'm using: PIC32MX795F512L
Purpose of the board: it has to communicate via 4 RS-232, SPI and I2C with a couple of external devices. Now SPIs and I2Cs are neither used nor configured.
UARTs "incriminated": UART1A (also called UART1) and UART1B (also called UART4) (I must use these UARTs and not others because I will have to use also SPI, I2C. In addition UART3A and UART3B are currently used and work perfectly)
UART1A pins: RF2 (rx), RF8 (tx)
UART1B pins: RD14 (rx), RD15 (tx)
As indicated by Microchip at page 34-35 of the Explorer User's Guide, I set pins RB14 and RB13 to make work, respectively, UART1A and UART1B. I also program AD1PCFG = 0Xffff to enable PORTB digital pins and, obviously, set these two pins as output. They actually work, I checked with the multimeter.
PROBLEMS:
1. RF8 output does not change the state, it's always at 0V. Instead, RF2, RD14 and RD15, can change the state without any problem (all the hw connections are ok).
2. Even if RD14 and RD15 of UART1B elettrically work, the UART doesn't rx and tx anything. The software I used it's the same of the other two UARTs (UART3A and UART3B), where I obviously changed the speed and the UART index. Here attached you can find the init and send functions of UART1B (i.e. UART4).
As I'm using this PIC32MX on this Explorer to test if the uC I chose for this application is okay (so that we can develop a final board), I hope someone can help me because I really don't know what the solution could be.
Thanks a lot in advance!
Drugo