📄 ht1621.c
字号:
/********************************************************
Copyright (c) 1999 Acer Laboratories Inc.
All Rights Reserved.
File : HT1621.c
Contents: 1621 LCD chip control
We use SCI0 for SCI bus. (SCI0 for RS232)
History :
Date by Reason
======== ============ ========================
??/??/?? ???? build
05/19/99 Charlemage for timing/ack process
*********************************************************/
#include <gpio.h>
#include <sci.h>
#include <platform.h>
#define LoByte(arg) (*((BYTE *)&(arg)+1))
#define HiByte(arg) (*(BYTE *)&(arg))
#define BYTE0(arg) (*((char *)&(arg)+3))
#define BYTE1(arg) (*((char *)&(arg) + 2))
#define BYTE2(arg) (*((char *)&(arg) + 1))
#define BYTE3(arg) (*(char *)&(arg))
#define VFD_SEG_NUM 16
#define VFD_GRID_NUM 10
//#define CHIP_TYPE 16311
/*#define CHIP_TYPE 16312*/
#if(_FP==24)
DWORD Postable[]={1,2,4,8,16,32,64,128,256,512,1024,2048,4096,8192,16384,32768,65536};
DWORD FPTOFP[128][2];
#endif
/*--------------------------------------------------
void VfdInit();
Initialize the Vfd Chip
Arguments:
NONE
Return value:
NONE
by Charlemagne Yue
---------------------------------------------------*/
void VfdInit()
{
/* /STB for VFD */
SET_GPIO_W(BACK_LIGHT|LED);/*盢ㄓ簿
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -