timi
Junior Member level 2
hi guys,
i and just trying to get the rs232 data out to the LCD by using the pic16F887. i made a test program for this and i have searched around and came up with this code:
the schematic is like this:
please can someone help as on the software sim it is not working.
thanks,
Timi
i and just trying to get the rs232 data out to the LCD by using the pic16F887. i made a test program for this and i have searched around and came up with this code:
Code:
include "D:\Projects\asdfasdsa.h"
//#include <LCD.C>
#define LCD_ENABLE_PIN PIN_B5 ////
#define LCD_RS_PIN PIN_B4 ////
#define LCD_RW_PIN PIN_E2 ////
#define LCD_DATA4 PIN_B0 ////
#define LCD_DATA5 PIN_B1 ////
#define LCD_DATA6 PIN_B2 ////
#define LCD_DATA7 PIN_B3
//#define LCD_TYPE 2
#include <lcd.c>
void main()
{
lcd_init();
lcd_putc("\a");
lcd_putc("\F TEST");
delay_ms(100);
lcd_putc("\f asd");
lcd_putc("\f asdsa");
setup_adc_ports(NO_ANALOGS|VSS_VDD);
setup_adc(ADC_CLOCK_DIV_2);
setup_spi(SPI_SS_DISABLED);
setup_timer_0(RTCC_INTERNAL|RTCC_DIV_1);
setup_timer_1(T1_DISABLED);
setup_timer_2(T2_DISABLED,0,1);
setup_ccp1(CCP_OFF);
setup_comparator(NC_NC_NC_NC);// This device COMP currently not supported by the PICWizard
lcd_init();
//TODO: User Code
}
please can someone help as on the software sim it is not working.
thanks,
Timi