Mr ober, i decided not to use the max232 anymore. I check using the oscilloscope. It is generating too much noise. I cant even have a 'standard waveform'. It is just too distorted.
I found another way to connect the eval to pic. Pls take a look at it in this link.
http://tom.pycke.be/mav/84/connecting-m ... controller Well after using this connection, and this code
- CODE: SELECT_ALL_CODE
#include <stdio.h>
#include <htc.h>
#include "lcd.h"
#include "usart.h"
__CONFIG(0x3f71);
void main ( void )
{
unsigned char input;
// Initializations
lcd_init();
init_comms();
printf ( "Starting app...\r\n" );
lcd_goto ( 0x00 );
lcd_puts ( "Rx:" );
while ( 1 )
{
// Body
input = getch();
lcd_putch ( input );
printf ( "Detected [%c].\r\n", input );
}
}
My lcd can only display $PM or $GP which looks like a mtk packet or a nmea code.
Is this code problem or still hardware connection problem?