
dsp28335的LCD程序。
5星
- 浏览量: 0
- 大小:None
- 文件类型:None
简介:
#define LCD_DATA (*((volatile Uint16 *)0x2001))
#define EN GpioDataRegs.GPFDAT.bit.GPIOF2
#define RW GpioDataRegs.GPFDAT.bit.GPIOF1
#define RS GpioDataRegs.GPFDAT.bit.GPIOF0
#define LOW 0
#define HIGH 1
#define CLEAR_SCREEN 0x01 // This constant represents the command to clear the display, setting the Accumulator Control (AC) to 00H.
#define AC_INIT 0x02 // This command initializes the Accumulator Control (AC) to 00H and moves the cursor to the origin position.
#define CURSE_ADD 0x06 // This instruction sets the cursors movement direction and the overall image movement direction; by default, the cursor moves right, while the image remains stationary.
#define FUN_MODE 0x30 // Defines the operational mode as an 8-bit basic instruction set.
#define DISPLAY_ON 0x0c // Activates display functionality, including displaying a cursor and highlighting its position in white.
#define DISPLAY_OFF 0x08 // Deactivates display functionality, turning off the display and cursor.
#define CURSE_DIR 0x14 // Represents cursor movement to the right: AC = AC + 1 (incrementing the Accumulator Control).
#define SET_CG_AC 0x40 // Used for setting the Accumulator Control (AC), with a range from 00H to 3FH.
#define SET_DD_AC 0x80 extern uchar A[]={Nanjing Yanxu}; extern uchar B[]={Electrical Technology Co., Ltd.}; extern uchar C[]={www.armdsp.net}; extern uchar D[]={www.njyxdq.com}; extern uchar E[]={tel:02558747116}; Uint16 p, x, y;
全部评论 (0)


