Message Boards
Threads [ Previous | Next ]
UART config
UART config
11/23/09 5:55 PM
Hey,

I'm relatively new to the pic32 architecture, my previous pic experiences have been limited to the pic16 line, and I am attempting to complete a design that requires that I capture 5 adc readings and transmit them via a fiber optic link. I chose the 32 because the documentation indicates that its UART is capable of 20Mbit/s rate, but I cannot seem to push it beyond the 5 Mbit rate. I have been playing with the basic uart source code, but I am unfamiliar with the predefine's of the 32 so I really am just doing things by trial and error. Could anyone give me a configuration header that would allow me to set the baud rate for its higher ranges? Thanks in advance for any help that you can offer.

Cheers,
Pete P.

This is the configuration header that was included in the header in case anyone is wondering:


#pragma config FPLLMUL = MUL_20, FPLLIDIV = DIV_1, FPLLODIV = DIV_2, FWDTEN = OFF
#pragma config POSCMOD = HS, FNOSC = PRIPLL, FPBDIV = DIV_1


#define SYS_FREQ (80000000L)
RE: UART config
7/2/10 2:18 AM as a reply to Pete D .
Are you using the USB CDC stuff? How are you getting to the fiber?
RE: UART config
7/29/10 12:13 AM as a reply to Pete D .
You probably have not set BRGH = 1. This setting reduces the bit time from 16 clocks to 4 clocks.