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

📄 vfd_tbl.c

📁 一个两碟控制的VCD的代码,两碟之间的转动及连续播放,已大量生产的CODE.
💻 C
📖 第 1 页 / 共 5 页
字号:
#define _SEG_NTSC               0x0302
#define _SEG_PAL                0x0301
#define _SEG_1_L                0x0908
#define _SEG_2_R                0x0904
#define _SEG_VOCAL              EMPTY
#define _SEG_AUX                EMPTY
#define _SEG_PBC_OFF            0x0820
#define _SEG_CONTINUE           EMPTY


#define _SEG_PLAY               0x0810
#define _SEG_PAUSE              0x0808
#define _SEG_TRACK              EMPTY
#define _SEG_TIME               0x0910
#define _SEG_INTRO              0x0980
#define _SEG_20_PLUS            EMPTY
#define _SEG_16_PLUS            0x0902
#define _SEG_HYPHEN             0x0208

#define _SEG_REMAIN             0x0802
#define _SEG_MIN                0x0501
#define _SEG_SEC                0x0701
#define _SEG_COLON              0x0401
#define _SEG_RESUME             0x0801
#define _SEG_KARAOKE1           0x0201
#define _SEG_KARAOKE2           0x0202


/* 7 Segment control. P1 to P7 */
#define SEG7_A                  0x80
#define SEG7_B                  0x40
#define SEG7_C                  0x20
#define SEG7_D                  0x10
#define SEG7_E                  0x08
#define SEG7_F                  0x04
#define SEG7_G                  0x02



unsigned 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[5][8] = {
    { _SEG_MUSIC_CD,_SEG_VCD,_SEG_CDI,_SEG_VIDEO,_SEG_KARAOKE,_SEG_KEY_PLUS,_SEG_KEY_MINUS,_SEG_KEY_RESUME},
    { _SEG_MEMORY,_SEG_PROGRAM,_SEG_RANDOM,_SEG_REPEAT,_SEG_REP_1,_SEG_REP_ALL,
      _SEG_REP_A,_SEG_REP_B },
    { _SEG_NTSC,_SEG_PAL,_SEG_1_L,_SEG_2_R,_SEG_VOCAL,_SEG_AUX,_SEG_PBC_OFF,_SEG_CONTINUE},
    { _SEG_PLAY,_SEG_PAUSE,_SEG_TRACK,_SEG_TIME,_SEG_INTRO,_SEG_20_PLUS,_SEG_16_PLUS,_SEG_HYPHEN},
    { _SEG_REMAIN,_SEG_MIN,_SEG_SEC,_SEG_COLON,_SEG_RESUME,_SEG_KARAOKE1,_SEG_KARAOKE2,EMPTY}
};


#else

#ifdef SVA_06MM
#define EMPTY                   0x0001  /*0x1180*/   /* high byte is address      */
#define MAX_CALENDAR            16
#define CALENDAR_00             EMPTY       /* low byte is bit no        */
#define CALENDAR_01             0x0b10  /*0x0001*/
#define CALENDAR_02             0x0b20  /*0x0002*/
#define CALENDAR_03             0x0b40  /*0x0004*/
#define CALENDAR_04             0x0b80  /*0x0008*/
#define CALENDAR_05             0x0b01  /*0x0010*/
#define CALENDAR_06             0x0b02  /*0x0020*/
#define CALENDAR_07             0x0b04  /*0x0040*/
#define CALENDAR_08             0x0b08  /*0x0080*/
#define CALENDAR_09             0x0a10  /*0x0101*/
#define CALENDAR_10             0x0a20  /*0x0102*/
#define CALENDAR_11             0x0a40  /*0x0104*/
#define CALENDAR_12             0x0a80  /*0x0108*/
#define CALENDAR_13             0x0a01  /*0x0110*/
#define CALENDAR_14             0x0a02  /*0x0120*/
#define CALENDAR_15             0x0a04  /*0x0140*/
#define CALENDAR_16             0x0a08  /*0x0180*/


#define _SEG_MUSIC_CD           EMPTY
#define _SEG_VCD                0x0302
#define _SEG_CDI                EMPTY     /* vcd3.0 */
#define _SEG_VIDEO              EMPTY 
#define _SEG_KARAOKE            0x0280    /* vcd3.0 */
#define _SEG_KEY_PLUS           EMPTY
#define _SEG_KEY_MINUS          EMPTY
#define _SEG_KEY_RESUME         EMPTY

#define _SEG_MEMORY             0x0304
#define _SEG_PROGRAM            0x0880
#define _SEG_RANDOM             0x0840
#define _SEG_REPEAT             0x0380
#define _SEG_REP_1              0x0340
#define _SEG_REP_ALL            0x0320
#define _SEG_REP_A              0x0310
#define _SEG_REP_B              0x0308

#define _SEG_NTSC               EMPTY
#define _SEG_PAL                EMPTY
#define _SEG_1_L                0x0220
#define _SEG_2_R                0x0240
#define _SEG_VOCAL              EMPTY
#define _SEG_AUX                EMPTY
#define _SEG_PBC_OFF            0x0301
#define _SEG_CONTINUE           EMPTY

#define _SEG_PLAY               0x0810
#define _SEG_PAUSE              0x0808
#define _SEG_TRACK              EMPTY
#define _SEG_TIME               EMPTY
#define _SEG_INTRO              0x0980
#define _SEG_20_PLUS            EMPTY
#define _SEG_16_PLUS            0x0902
#define _SEG_HYPHEN             0x0208

#define _SEG_REMAIN             0x0802
#define _SEG_MIN                0x0501
#define _SEG_SEC                0x0701
#define _SEG_COLON              0x0401
#define _SEG_RESUME             EMPTY
#define _SEG_KARAOKE1           0x0904
#define _SEG_KARAOKE2           0x0904


/* 7 Segment control. P1 to P7 */
#define SEG7_A                  0x80
#define SEG7_B                  0x40
#define SEG7_C                  0x20
#define SEG7_D                  0x10
#define SEG7_E                  0x08
#define SEG7_F                  0x04
#define SEG7_G                  0x02



unsigned 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[5][8] = {
    { _SEG_MUSIC_CD,_SEG_VCD,_SEG_CDI,_SEG_VIDEO,_SEG_KARAOKE,_SEG_KEY_PLUS,_SEG_KEY_MINUS,_SEG_KEY_RESUME},
    { _SEG_MEMORY,_SEG_PROGRAM,_SEG_RANDOM,_SEG_REPEAT,_SEG_REP_1,_SEG_REP_ALL,
      _SEG_REP_A,_SEG_REP_B },
    { _SEG_NTSC,_SEG_PAL,_SEG_1_L,_SEG_2_R,_SEG_VOCAL,_SEG_AUX,_SEG_PBC_OFF,_SEG_CONTINUE},
    { _SEG_PLAY,_SEG_PAUSE,_SEG_TRACK,_SEG_TIME,_SEG_INTRO,_SEG_20_PLUS,_SEG_16_PLUS,_SEG_HYPHEN},
    { _SEG_REMAIN,_SEG_MIN,_SEG_SEC,_SEG_COLON,_SEG_RESUME,_SEG_KARAOKE1,_SEG_KARAOKE2,EMPTY}
};


#else


#ifdef FU_HUASHENG
#define EMPTY                   0x0001  /*0x1180*/   /* high byte is address      */
#define MAX_CALENDAR            16
#define CALENDAR_00             EMPTY       /* low byte is bit no        */
#define CALENDAR_01             0x0b10  /*0x0001*/
#define CALENDAR_02             0x0b20  /*0x0002*/
#define CALENDAR_03             0x0b40  /*0x0004*/
#define CALENDAR_04             0x0b80  /*0x0008*/
#define CALENDAR_05             0x0b01  /*0x0010*/
#define CALENDAR_06             0x0b02  /*0x0020*/
#define CALENDAR_07             0x0b04  /*0x0040*/
#define CALENDAR_08             0x0b08  /*0x0080*/
#define CALENDAR_09             0x0a10  /*0x0101*/
#define CALENDAR_10             0x0a20  /*0x0102*/
#define CALENDAR_11             0x0a40  /*0x0104*/
#define CALENDAR_12             0x0a80  /*0x0108*/
#define CALENDAR_13             0x0a01  /*0x0110*/
#define CALENDAR_14             0x0a02  /*0x0120*/
#define CALENDAR_15             0x0a04  /*0x0140*/
#define CALENDAR_16             0x0a08  /*0x0180*/


#define _SEG_MUSIC_CD            EMPTY
#define _SEG_VCD                 0x0302
#define _SEG_CDI                 EMPTY
#define _SEG_VIDEO               EMPTY
#define _SEG_KARAOKE             EMPTY
#define _SEG_KEY_PLUS            EMPTY
#define _SEG_KEY_MINUS           EMPTY
#define _SEG_KEY_RESUME          EMPTY

#define _SEG_MEMORY             0x0304
#define _SEG_PROGRAM            0x0880
#define _SEG_RANDOM             0x0840
#define _SEG_REPEAT             0x0380
#define _SEG_REP_1              0x0340
#define _SEG_REP_ALL            0x0320
#define _SEG_REP_A              0x0310
#define _SEG_REP_B              0x0308

#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
#define _SEG_PBC_OFF            0x0301
#define _SEG_CONTINUE           EMPTY

#define _SEG_PLAY               0x0810
#define _SEG_PAUSE              0x0808
#define _SEG_TRACK              EMPTY
#define _SEG_TIME               EMPTY
#define _SEG_INTRO              0x0980
#define _SEG_20_PLUS            EMPTY
#define _SEG_16_PLUS            0x0902
#define _SEG_HYPHEN             0x0208

#define _SEG_REMAIN             0x0802
#define _SEG_MIN                0x0501
#define _SEG_SEC                0x0701
#define _SEG_COLON              0x0401
#define _SEG_RESUME             EMPTY
#define _SEG_KARAOKE1           EMPTY
#define _SEG_KARAOKE2           EMPTY


/* 7 Segment control. P1 to P7 */
#define SEG7_A                  0x80
#define SEG7_B                  0x40
#define SEG7_C                  0x20
#define SEG7_D                  0x10
#define SEG7_E                  0x08
#define SEG7_F                  0x04
#define SEG7_G                  0x02


unsigned 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[5][8] = {
    { _SEG_MUSIC_CD,_SEG_VCD,_SEG_CDI,_SEG_VIDEO,_SEG_KARAOKE,_SEG_KEY_PLUS,_SEG_KEY_MINUS,_SEG_KEY_RESUME},
    { _SEG_MEMORY,_SEG_PROGRAM,_SEG_RANDOM,_SEG_REPEAT,_SEG_REP_1,_SEG_REP_ALL,
      _SEG_REP_A,_SEG_REP_B },
    { _SEG_NTSC,_SEG_PAL,_SEG_1_L,_SEG_2_R,_SEG_VOCAL,_SEG_AUX,_SEG_PBC_OFF,_SEG_CONTINUE},
    { _SEG_PLAY,_SEG_PAUSE,_SEG_TRACK,_SEG_TIME,_SEG_INTRO,_SEG_20_PLUS,_SEG_16_PLUS,_SEG_HYPHEN},
    { _SEG_REMAIN,_SEG_MIN,_SEG_SEC,_SEG_COLON,_SEG_RESUME,_SEG_KARAOKE1,_SEG_KARAOKE2,EMPTY}
};


#else


#ifdef FU_KANGHUI30

#define EMPTY                   0x0000  /*0x1180*/   /* high byte is address      */
#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_MUSIC_CD           0x0902
#define _SEG_VCD                0x0901
#define _SEG_CDI                EMPTY
#define _SEG_VIDEO              0x0201
#define _SEG_KARAOKE            0x0940
#define _SEG_KEY_PLUS           0x0520
#define _SEG_KEY_MINUS          0x0580
#define _SEG_KEY_RESUME         0x0540

#define _SEG_MEMORY             0x0a80
#define _SEG_PROGRAM            0x0920
#define _SEG_RANDOM             0x0910
#define _SEG_REPEAT             0x0240
#define _SEG_REP_1              0x0280
#define _SEG_REP_ALL            EMPTY
#define _SEG_REP_A              0x0301
#define _SEG_REP_B              0x0302


#define _SEG_NTSC               0x0310
#define _SEG_PAL                0x0308
#define _SEG_1_L                0x0904
#define _SEG_2_R                0x0908
#define _SEG_VOCAL              EMPTY
#define _SEG_AUX                EMPTY
#define _SEG_PBC_OFF            EMPTY
#define _SEG_CONTINUE           EMPTY


#define _SEG_PLAY               0x0340
#define _SEG_PAUSE              0x0320
#define _SEG_TRACK              EMPTY
#define _SEG_TIME               EMPTY
#define _SEG_INTRO              0x0210
#define _SEG_20_PLUS            EMPTY
#define _SEG_16_PLUS            0x0220
#define _SEG_HYPHEN             0x0880


#define _SEG_SURROUND           0x0510
#define _SEG_SHUFFLE            EMPTY
#define _SEG_S1                 0x0202
#define _SEG_S2                 0x0204
#define _SEG_FF                 0x0304
#define _SEG_FB                 0x0380
#define _SEG_OSD                0x0b80
#define _SEG_COLON              0x0680


/* 7 Segment control. P1 to P7 */
#define SEG7_A                  0x01
#define SEG7_B                  0x02
#define SEG7_C                  0x10
#define SEG7_D                  0x40
#define SEG7_E                  0x20
#define SEG7_F                  0x04
#define SEG7_G                  0x08



unsigned char REFRESH_ADDRESS[] = {
    0x00,0x01,0x02,0x03,0x04,0x05,0x06,0x07,
    0x08,0x09,0x0a,0x0b,0x0c,0x0d,0x0e,0x0f,0x10,0x11
};

unsigned short CALENDAR_TABLE[] = {

⌨️ 快捷键说明

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