Welcome, Guest

Author Topic: PIC32 MAXI WEB uart2 configuration  (Read 1902 times)

ALFREDOSKY

  • Newbie
  • *
  • Posts: 32
  • Karma: +0/-0
PIC32 MAXI WEB uart2 configuration
« on: March 13, 2015, 05:33:53 PM »
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

  • Jr. Member
  • **
  • Posts: 80
  • Karma: +2/-0
Re: PIC32 MAXI WEB uart2 configuration
« Reply #1 on: May 11, 2015, 09:30:29 AM »
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.
« Last Edit: May 11, 2015, 03:52:58 PM by Stanimir5F »
May the Source be with You!