Loading...

You have no items in your shopping cart.

 
 
 
×

Registration

Profile Informations

Login Datas

or login

First name is required!
Last name is required!
First name is not valid!
Last name is not valid!
This is not an email address!
Email address is required!
This email is already registered!
Password is required!
Enter a valid password!
Please enter 6 or more characters!
Please enter 16 or less characters!
Passwords are not same!
Terms and Conditions are required!
Email or Password is wrong!
Captcha is required!
Captcha is wrong!

Using additional 2 UARTs with chipKit Max32 on MPIDE

Lately, When we use chipKit max32 on MPIDE, we find that only Serial, Serial1, Serial2, and Serial3 could be used as UART by default. However, there are two other UARTs in PIC32MX795F512L chip can be utilized. Here, we give you a tip – just modify the Board_Defs.h file in mpide\hardware\pic32\variants\Max32 directory, so that you can use the additional two UARTs.

1. Open Board_Defs.h file, and change the serial port number from 4 to 6.

	#define NUM_SERIAL_PORTS 6

2. Add the following definition into the file.


	/* Serial port 4 uses UART3 (aka UART2A)*/
	#define _SER4_BASE      _UART3_BASE_ADDRESS
	#define _SER4_IRQ       _UART3_ERR_IRQ
	#define _SER4_VECTOR    _UART_3_VECTOR
	#define _SER4_IPL_ISR   _UART3_IPL_ISR
	#define _SER4_IPL       _UART3_IPL_IPC
	#define _SER4_SPL       _UART3_SPL_IPC

	/* Serial port 5 uses UART6 (aka UART2B)*/
	#define _SER5_BASE      _UART6_BASE_ADDRESS
	#define _SER5_IRQ       _UART6_ERR_IRQ
	#define _SER5_VECTOR    _UART_6_VECTOR
	#define _SER5_IPL_ISR   _UART6_IPL_ISR
	#define _SER5_IPL       _UART6_IPL_IPC
	#define _SER5_SPL       _UART6_SPL_IPC

At last, save the file and restart MPIDE. Now, you can use Serial4(UART2A) and Serial5(UART2B).