mandarsansare
Newbie level 6
- Joined
- Apr 28, 2012
- Messages
- 14
- Helped
- 0
- Reputation
- 0
- Reaction score
- 0
- Trophy points
- 1,281
- Location
- Thane,Maharashtra,IN
- Activity points
- 1,381
I am using USB host code from Microchip MLA.
The USB and LCD part is working fine but i want to add UART functionality in the project.
I want to send keyboard key-press to UART port.
I added UART code part from my previously working project. But after adding to the USB code it is not working faithfully . The baud rate setting collapse badly. I guess the problem is with Configuration bit settings.Here is my config bits
What else can cause problem? Please Help.
I am using 8MHz crystal.
Thanks in advance.
The USB and LCD part is working fine but i want to add UART functionality in the project.
I want to send keyboard key-press to UART port.
I added UART code part from my previously working project. But after adding to the USB code it is not working faithfully . The baud rate setting collapse badly. I guess the problem is with Configuration bit settings.Here is my config bits
Code:
// CONFIG3
#pragma config WPFP = WPFP511
#pragma config WPDIS = WPDIS
#pragma config WPCFG = WPCFGDIS
#pragma config WPEND = WPENDMEM
//CONFIG2
#pragma config POSCMOD = XT
#pragma config DISUVREG = OFF
#pragma config IOL1WAY = ON
#pragma config OSCIOFNC = OFF
#pragma config FCKSM = CSECME
#pragma config FNOSC = PRIPLL
#pragma config PLL_96MHZ = ON
#pragma config PLLDIV = DIV2
#pragma config IESO = ON
// CONFIG1
#pragma config WDTPS = PS32768
#pragma config FWPSA = PR128
#pragma config WINDIS = OFF
#pragma config FWDTEN = OFF
#pragma config ICS = PGx2
#pragma config GWRP = OFF
#pragma config GCP = OFF
#pragma config JTAGEN = OFF
What else can cause problem? Please Help.
I am using 8MHz crystal.
Thanks in advance.