November 14, 2019, 06:00:25 pm

News:

SMF - Just Installed!


PIC32 MAXI WEB uart2 configuration

Started by ALFREDOSKY, March 13, 2015, 05:33:53 pm

Previous topic - Next topic

ALFREDOSKY

Hi all, I want to configure uart2, but I changed everything that I should but uart2 is not working, please can any guy from OLIMEX support help me?

Stanimir5F

May 11, 2015, 09:30:29 am #1 Last Edit: May 11, 2015, 03:52:58 pm by Stanimir5F
If you mean that you changed UartComm.c line 23 from UART1 to UART2 and trying to connect to UEXT2 pins (RB9 and RB14) then keep in mind that these lines don't have UART function. UART2 is supposed to be a software UART (in the schematic these two pins are marked as SW_U2TX and SW_U2RX). And UART1 initialization is accomplished in the code as hardware UART.

So if you want to use UART2 you have to define your own functions for initialization of the pins and data transfer.
May the Source be with You!