Other Parts Discussed in Thread: CC1310
Tool/software: TI-RTOS
Hi
I want to use cc1310 to drive lcd12864,But failed. Lcd12864 works in serial mode.
Can you give me some advice? Configuration is as follows:
/* LCD 12864 IO define */
#define LCD_RS IOID_8 //chip select
#define LCD_SID IOID_9 //serial dat/cmd
#define LCD_EN IOID_10 //chip enable
/* IO Init */
LCD_RS | PIN_GPIO_OUTPUT_EN | PIN_GPIO_LOW | PIN_PUSHPULL | PIN_DRVSTR_MED,
LCD_SID | PIN_GPIO_OUTPUT_EN | PIN_GPIO_LOW | PIN_PUSHPULL | PIN_DRVSTR_MED,
LCD_EN | PIN_GPIO_OUTPUT_EN | PIN_GPIO_LOW | PIN_PUSHPULL | PIN_DRVSTR_MED,
/* Macro define */
#define RS_H PINCC26XX_setOutputValue(LCD_RS,1); //RS=1 23PIN
#define RS_L PINCC26XX_setOutputValue(LCD_RS,0); //RS=0
#define RW_H PINCC26XX_setOutputValue(LCD_SID,1); //RW=1 24PIN
#define RW_L PINCC26XX_setOutputValue(LCD_SID,0); //RW = 0
#define EN_H PINCC26XX_setOutputValue(LCD_EN,1); //EN = 1 25PIN
#define EN_L PINCC26XX_setOutputValue(LCD_EN,0); //EN = 0