I'm using the LCD_4bits project to display data (MCBSTM32 board) but when I change the LCD with another (phico d-0 94v-0) "">www.datasheetarchive.com/LM2780A2C40HN-datasheet.html" i can't display data. I need to change the pin assignement in order to use the 8bits-mode. can you help me.
and this the lcd_8bits.h
/*****************************/ /* Includes --------------------*/ //#include "stm32f10x_type.h" #include "stm32f10x_gpio.h" /* Macro Definitions ----------*/ #define SET_RS (GPIO_WriteBit(GPIOC, GPIO_Pin_2, Bit_SET)); #define RESET_RS (GPIO_WriteBit(GPIOC, GPIO_Pin_2, Bit_RESET)); #define SET_ENABLE (GPIO_WriteBit(GPIOC, GPIO_Pin_10, Bit_SET)); #define RESET_ENABLE (GPIO_WriteBit(GPIOC, GPIO_Pin_10, Bit_RESET)); #define SET_RW (GPIO_WriteBit(GPIOC, GPIO_Pin_9, Bit_SET)); #define RESET_RW (GPIO_WriteBit(GPIOC, GPIO_Pin_9, Bit_RESET)); /* private define-----------------*/ #define LINEONE (1)// line one of 16X2 alphanumeric display #define LINETWO (2)// line two of 16X2 alphanumeric display #define LINETWO_HOME (0xc0) #define LINEONE_HOME (0x80) #define START_ONE (0x33) #define START_TWO (0x32) #define FUNCTION_SET (0x38) #define DISPLAY_OFF (0x08) #define DISPLAY_SETTINGS (0x0E) #define ENTRY_MODESET (0x06) #define CLR_DISPLAY (0x01) #define RETURN_HOME (0x02) #define MS_FIVE (0x0032) #define MS_FIFTEEN (0x0096) #define MS_EIGHTY (0x0320) #define VH_OnTime (0x0015) #define VH_OffTime (0x0004) #define FIVE_SEC (0xC350) #define MS_ONE (0x000A) #define ONE_SEC (0x2710) #define TWO_SEC (0x4E20) #define TEN_MILLI_SEC (0x0064) #define MS_P19 (0x0019) /*data line defination-----------------*/ #define DATA_LINE_0 (0x0001) #define DATA_LINE_1 (0x0002) #define DATA_LINE_2 (0x0004) #define DATA_LINE_3 (0x0008) #define DATA_LINE_4 (0x0010) #define DATA_LINE_5 (0x0020) #define DATA_LINE_6 (0x0040) #define DATA_LINE_7 (0x0080) /* Exported functions ---------------- */ /* LCD functions */ void LCD_Init(void); void ClrDisplay(void); void WriteCommand(u8); void WriteData(u8); void ChangeLine(u8); void WriteString(u8 *); void Delay(u32); //-----------
I'am using MCBSTM32 board and an lcd (phico d-0 94v-0).