⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 vfd_tbl7.c

📁 一个两碟控制的VCD的代码,两碟之间的转动及连续播放,已大量生产的CODE.
💻 C
📖 第 1 页 / 共 3 页
字号:
/* Copyright 1997, ESS Technology, Inc.					*//* SCCSID @(#)vfd_tbl7.c	1.4 6/3/98 *//* * This is for customer 007 (based on version 1.16 of vfd_tbl.c) */#include "vfdshare.h"/*- vfd table ---------------------------------------------------------------*/#ifdef CUST71#define EMPTY                   0x0000           /* high byte is address      */#else#define EMPTY                   0x1180      /* high byte is address      */#endif#ifdef VFD_FUTABA#define MAX_CALENDAR            16#define CALENDAR_00		EMPTY       /* low byte is bit no        */#define CALENDAR_01		0x0001#define CALENDAR_02		0x0002#define CALENDAR_03		0x0004#define CALENDAR_04		0x0008#define CALENDAR_05		0x0010#define CALENDAR_06		0x0020#define CALENDAR_07		0x0040#define CALENDAR_08		0x0080#define CALENDAR_09		0x0101#define CALENDAR_10		0x0102#define CALENDAR_11		0x0104#define CALENDAR_12		0x0108#define CALENDAR_13		0x0110#define CALENDAR_14		0x0120#define CALENDAR_15		0x0140#define CALENDAR_16		0x0180#define _SEG_CDDA		EMPTY#define _SEG_VIDEO		0x0410          #define _SEG_VCD		0x0404#define _SEG_CDI		0x0412#define _SEG_CDG		EMPTY#define _SEG_KARAOKE		EMPTY#define _SEG_MEMORY		0x0c01#define _SEG_PROGRAM		0x0304#define _SEG_RANDOM		0x0302#define _SEG_REPEAT		0x0580#define _SEG_REP_1		0x0440#define _SEG_REP_ALL		0x0420#define _SEG_SET_A		0x0480#define _SEG_SET_B		0x0502#define _SEG_NTSC		0x0308#define _SEG_PAL		0x0310#define _SEG_1_L		0x0880#define _SEG_2_R		0x0202#define _SEG_VOCAL		0x0204#define _SEG_AUX		EMPTY#define _SEG_PLAY		0x0520#define _SEG_PAUSE		0x0540#define _SEG_TRACK		0x0680#define _SEG_TIME		EMPTY #define _SEG_INTRO		0x0320#define _SEG_20PLUS		EMPTY #define _SEG_16PLUS		0x0340#define _SEG_COLON		0x0a80#define _SEG_HYPHEN		EMPTY #define _SEG_KEY_PLUS		0x0280   #define _SEG_KEY_MINUS		0x0240#define _SEG_KEY_RESUME		0x0301#define _SEG_STEREO		0x0401#define _SEG_PBC_OFF		0x0201#define CHAR_C                  0x65#define CHAR_D                  0x7a#define CHAR_E                  0x6d#define CHAR_F                  0x71#define CHAR_I                  0x24#define CHAR_L                  0x64#define CHAR_N                  0x37#define CHAR_O                  0x77#define CHAR_P                  0x2f#define CHAR_R                  0x28#define CHAR_S                  0x5d#define CHAR_U                  0x76#define CHAR__                  0x08#define CHAR_                   0x00#define CHAR_3			0x5b#ifdef MKTABLEunsigned char REFRESH_ADDRESS[] = {    0x00,0x01,0x02,0x03,0x04,0x05,0x06,0x07,    0x08,0x09,0x0a,0x0b};unsigned short CALENDAR_TABLE[] = {    CALENDAR_00,CALENDAR_01,CALENDAR_02,CALENDAR_03,CALENDAR_04,CALENDAR_05,    CALENDAR_06,CALENDAR_07,CALENDAR_08,CALENDAR_09,CALENDAR_10,CALENDAR_11,    CALENDAR_12,CALENDAR_13,CALENDAR_14,CALENDAR_15,CALENDAR_16};unsigned short INDICATOR_TABLE[4][8] = {    { _SEG_CDDA,_SEG_VCD,_SEG_CDI,_SEG_VIDEO,_SEG_KEY_PLUS,_SEG_KEY_MINUS,_SEG_KEY_RESUME,EMPTY },    { _SEG_MEMORY,_SEG_PROGRAM,_SEG_RANDOM,_SEG_REPEAT,_SEG_REP_1,_SEG_REP_ALL,      _SEG_SET_A,_SEG_SET_B },    { _SEG_NTSC,_SEG_PAL,_SEG_1_L,_SEG_2_R,_SEG_VOCAL,_SEG_AUX,_SEG_STEREO,_SEG_PBC_OFF },    { _SEG_PLAY,_SEG_PAUSE,_SEG_TRACK,_SEG_TIME,_SEG_INTRO,_SEG_16PLUS,_SEG_COLON,      _SEG_HYPHEN }};unsigned char DIGIT_TABLE[] = {/*      0    1    2    3    4    5    6    7    8    9    SPACE      */        	0x77,0x12,0x6b,0x5b,0x1e,0x5d,0x7d,0x13,0x7f,0x5f,0x00};#endif#else /* not VFD_FUTABA */#ifdef CUST71#define MAX_CALENDAR            16#define EMPTY                   0x0000      /* high byte is address      */#define CALENDAR_00             EMPTY       /* low byte is bit no        */#ifdef VFD_151#define CALENDAR_01             0x0180      /* 0x0301 */#define CALENDAR_02             0x0140      /* 0x0300 */#define CALENDAR_03             0x0120      /* 0x0101 */#define CALENDAR_04             0x0110      /* 0x0100 */#define CALENDAR_05             0x0108      /* 0x0207 */#define CALENDAR_06             0x0104      /* 0x0200 */#define CALENDAR_07             0x0102      /* 0x0007 */#define CALENDAR_08             0x0101      /* 0x0000 */#define CALENDAR_09             0x0080      /* 0x0201 */#define CALENDAR_10             0x0040      /* 0x0205 */#define CALENDAR_11             0x0020      /* 0x0001 */#define CALENDAR_12             0x0010      /* 0x0005 */#define CALENDAR_13             0x0008      /* 0x0206 */#define CALENDAR_14             0x0004      /* 0x0202 */#define CALENDAR_15             0x0002      /* 0x0006 */#define CALENDAR_16             0x0001      /* 0x0002 */#else#define CALENDAR_01             ANODE_G1P4#define CALENDAR_02             ANODE_G1P3#define CALENDAR_03             ANODE_G1P2#define CALENDAR_04             ANODE_G1P1#define CALENDAR_05             ANODE_G1P5#define CALENDAR_06             ANODE_G1P6#define CALENDAR_07             ANODE_G1P7#define CALENDAR_08             ANODE_G1P14#define CALENDAR_09             ANODE_G1P15#define CALENDAR_10             ANODE_G1P15#define CALENDAR_11             ANODE_G1P13#define CALENDAR_12             ANODE_G1P12#define CALENDAR_13             ANODE_G1P11#define CALENDAR_14             ANODE_G1P10#define CALENDAR_15             ANODE_G1P9#define CALENDAR_16             ANODE_G1P8#define CALENDAR_17             EMPTY#define CALENDAR_18             EMPTY#define CALENDAR_19             EMPTY#define CALENDAR_20             EMPTY#endif#define _SEG_CDDA               EMPTY#ifdef VFD_151#define _SEG_VCD                0x0380      /* 0x1005 */#else#define _SEG_VCD                ANODE_G7P4#endif#define _SEG_CDI                EMPTY#define _SEG_CDG                EMPTY#define _SEG_KARAOKE            EMPTY#define _SEG_MEMORY             EMPTY#ifdef VFD_151#define _SEG_PROGRAM            0x0308      /* 0x0500 */#define _SEG_RANDOM             0x0E08      /* 0x0702 */#define _SEG_REPEAT             0x0E04      /* 0x0f02 */#define _SEG_REP_ALL            0x0E01      /* 0x0b01 */#else#define _SEG_PROGRAM            ANODE_G2P5#define _SEG_RANDOM             ANODE_G2P15#define _SEG_REPEAT             ANODE_G6P4#define _SEG_REP_ALL            ANODE_G6P2#endif#define _SEG_REP_1              ANODE_G6P3#define _SEG_SET_A              EMPTY#define _SEG_SET_B              EMPTY#define _SEG_NTSC               EMPTY#define _SEG_PAL                EMPTY#define _SEG_1_L                EMPTY#define _SEG_2_R                EMPTY#define _SEG_VOCAL              EMPTY#define _SEG_AUX                EMPTY#ifdef VFD_151#define _SEG_PLAY               0x0302      /* 0x1101 */#define _SEG_PAUSE              0x0304      /* 0x1102 */#else#define _SEG_PLAY               ANODE_G7P1#define _SEG_PAUSE              ANODE_G7P15#endif#define _SEG_SEC                ANODE_G2P1#define _SEG_MIN                ANODE_G4P1#ifdef VFD_151#define _SEG_INTRO              0x0310      /* 0x0501 */#else#define _SEG_INTRO              ANODE_G2P10#endif#ifdef VFD_254#define _SEG_16_PLUS            EMPTY#else#define _SEG_16_PLUS            0x0401      /* 0x0502 */#endif#ifdef VFD_151#define _SEG_COLON              0x0980      /* 0x0901 */#define _SEG_HYPHEN             0x0A01      /* 0x0d01 */#define _SEG_REMAIN             0x0D01#else#define _SEG_COLON              ANODE_G4P2#define _SEG_HYPHEN             ANODE_G5P2#define _SEG_REMAIN             ANODE_G7P5#endif /* VFD_151 */#ifdef VFD_254#define _SEG_PBC                ANODE_G2P2#define _SEG_PBC_ON             ANODE_G2P3#define _SEG_PBC_OFF            ANODE_G2P4#else#ifdef VFD_151#define _SEG_PBC                0x0301#else#define _SEG_PBC                0x1204#define _SEG_PBC_OFF            0x1202#endif /* VFD_151 */#endif /* VFD_254 */#ifdef VFD_253#define _SEG_FLAT               0x0380#define _SEG_FLAT_SQ            0x0302#define _SEG_CLASSIC            0x0308#define _SEG_CLASSIC_SQ         0x0304#define _SEG_POP                0x0608#define _SEG_POP_SQ             0x0604#define _SEG_ROCK               0x0908#define _SEG_ROCK_SQ            0x0904#define _SEG_3D                 0x0c08#define _SEG_3D_SQ              0x0c04#endif#ifdef VFD_254#define _SEG_FLAT               EMPTY#define _SEG_FLAT_SQ            EMPTY#define _SEG_CLASSIC            EMPTY#define _SEG_CLASSIC_SQ         EMPTY#define _SEG_POP                EMPTY#define _SEG_POP_SQ             EMPTY#define _SEG_ROCK               EMPTY#define _SEG_ROCK_SQ            EMPTY#define _SEG_3D                 EMPTY#define _SEG_3D_SQ              EMPTY#define _SEG_RESUME             ANODE_G7P2#define _SEG_CALENDAR_SQ        ANODE_G8P1#define _SEG_DISC1_IN_SQ        ANODE_G5P5#define _SEG_DISC1_OUT_SQ       ANODE_G5P4#define _SEG_DISC2_IN_SQ        ANODE_G4P5#define _SEG_DISC2_OUT_SQ       ANODE_G4P4#define _SEG_DISC3_IN_SQ        ANODE_G3P5#define _SEG_DISC3_OUT_SQ       ANODE_G3P4#define _SEG_DISC1_NUM          ANODE_G5P3#define _SEG_DISC2_NUM          ANODE_G4P3#define _SEG_DISC3_NUM          ANODE_G3P3#define _SEG_CONTINUE           ANODE_G2P9#define _SEG_DISC               ANODE_G6P1#endif#ifdef VFD_151#define _SEG_CALENDAR_SQ        0x0201#endif#else /* not CUST71 */#define MAX_CALENDAR            20#define CALENDAR_00             EMPTY      /* low byte is bit no        */#define CALENDAR_01             0x0302      /* 0x0301 */#define CALENDAR_02             0x0301      /* 0x0300 */#define CALENDAR_03             0x0102      /* 0x0101 */#define CALENDAR_04             0x0101      /* 0x0100 */#define CALENDAR_05             0x0280      /* 0x0207 */#define CALENDAR_06             0x0201      /* 0x0200 */#define CALENDAR_07             0x0080      /* 0x0007 */#define CALENDAR_08             0x0001      /* 0x0000 */#define CALENDAR_09             0x0202      /* 0x0201 */#define CALENDAR_10             0x0220      /* 0x0205 */#define CALENDAR_11             0x0002      /* 0x0001 */#define CALENDAR_12             0x0020      /* 0x0005 */#define CALENDAR_13             0x0240      /* 0x0206 */#define CALENDAR_14             0x0204      /* 0x0202 */#define CALENDAR_15             0x0040      /* 0x0006 */#define CALENDAR_16             0x0004      /* 0x0002 */#define CALENDAR_17             0x0210      /* 0x0204 */#define CALENDAR_18             0x0208      /* 0x0203 */#define CALENDAR_19             0x0010      /* 0x0004 */#define CALENDAR_20             0x0008      /* 0x0003 */#define _SEG_CDDA               0x1101      /* 0x1100 */#define _SEG_VCD                0x1020      /* 0x1005 */#define _SEG_CDI                0x1004      /* 0x1002 */#define _SEG_CDG                0x1001      /* 0x1000 */#define _SEG_KARAOKE            0x0b01      /* 0x0b00 */#define _SEG_MEMORY             0x0480      /* 0x0407 */#define _SEG_PROGRAM            0x0501      /* 0x0500 */#define _SEG_RANDOM             0x0704      /* 0x0702 */#define _SEG_REPEAT             0x0f04      /* 0x0f02 */#define _SEG_REP_1              0x0b04      /* 0x0b02 */#define _SEG_REP_ALL            0x0b02      /* 0x0b01 */#define _SEG_SET_A              0x0f01      /* 0x0f00 */#define _SEG_SET_B              0x0f02      /* 0x0f01 */#define _SEG_NTSC               0x1080      /* 0x1007 */#define _SEG_PAL                0x1002      /* 0x1001 */#define _SEG_1_L                0x1040      /* 0x1006 */#define _SEG_2_R                0x1010      /* 0x1004 */#define _SEG_VOCAL              0x0702      /* 0x0701 */#define _SEG_AUX                0x0708      /* 0x0703 */#define _SEG_PLAY               0x1102      /* 0x1101 */#define _SEG_PAUSE              0x1104      /* 0x1102 */#define _SEG_TRACK              0x0e80      /* 0x0e07 */#define _SEG_TIME               0x0680      /* 0x0607 */#define _SEG_INTRO              0x0502      /* 0x0501 */#define _SEG_20PLUS             0x0504      /* 0x0502 */#define _SEG_COLON              0x0902      /* 0x0901 */#define _SEG_HYPHEN             0x0d02      /* 0x0d01 */#endif /* CUST71 */#ifdef VFD_151#define CHAR_C                  0x53#define CHAR_D                  0x2f#define CHAR_E                  0x5b#define CHAR_F                  0x5a#define CHAR_I                  0x24#define CHAR_L                  0x13#define CHAR_N                  0x76#define CHAR_O                  0x77#define CHAR_P                  0x7a#define CHAR_R                  0x0a#define CHAR_S                  0x5d#define CHAR_U                  0x37#define CHAR__                  0x01#define CHAR_                   0x00#else/* 7 Segment control. P1 to P7 */#define	SEG7_A			0x01#define	SEG7_B			0x02#define	SEG7_C			0x04#define	SEG7_D			0x08#define	SEG7_E			0x10#define	SEG7_F			0x20#define	SEG7_G			0x40#endif /* VFD_151 */#ifdef CUST71#ifdef VFD_151#define CHAR_A                  0x7C#define CHAR_0                  0x77#define CHAR_1                  0x24#define CHAR_2                  0x6B#define CHAR_3                  0x6D#endif /* VFD_151 */#endif#ifdef MKTABLE#ifdef CUST71#ifdef VFD_151unsigned char REFRESH_ADDRESS[] = {    0x00,0x01,0x02,0x03,0x04,0x05,0x06,0x07,0x08,0x09,0x0a,0x0b,    0x0c,0x0d,0x0e};#elseunsigned char REFRESH_ADDRESS[] = {    0x00,0x01,0x03,0x04,0x06,0x07,0x09,0x0a,0x0c,0x0d,0x0f,0x10,    0x12,0x13,0x2 /*,0x5,0x8,0xb,0xe,0x11,0x14*/#if 0    0x00,0x01,0x02,0x03,0x04,0x05,0x06,0x07,0x08,0x09,0x0a,0x0b,    0x0c,0x0d,0x0e,0x0f,0x10,0x11,0x12,0x13,0x14#endif};#endif /* VFD_151 */#else /* CUST71 */unsigned char REFRESH_ADDRESS[] = {    0x00,0x01,0x02,0x03,0x04,0x05,0x06,0x07,    0x08,0x09,0x0a,0x0b,0x0c,0x0d,0x0e,0x0f,    0x10,0x11};#endif#ifdef CUST71unsigned short CALENDAR_TABLE[] = {    CALENDAR_00,CALENDAR_01,CALENDAR_02,CALENDAR_03,CALENDAR_04,CALENDAR_05,    CALENDAR_06,CALENDAR_07,CALENDAR_08,CALENDAR_09,CALENDAR_10,CALENDAR_11,    CALENDAR_12,CALENDAR_13,CALENDAR_14,CALENDAR_15,CALENDAR_16};#elseunsigned short CALENDAR_TABLE[] = {    CALENDAR_00,CALENDAR_01,CALENDAR_02,CALENDAR_03,CALENDAR_04,CALENDAR_05,    CALENDAR_06,CALENDAR_07,CALENDAR_08,CALENDAR_09,CALENDAR_10,CALENDAR_11,    CALENDAR_12,CALENDAR_13,CALENDAR_14,CALENDAR_15,CALENDAR_16,CALENDAR_17,    CALENDAR_18,CALENDAR_19,CALENDAR_20};#endif

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -