📄 tbl_tw2835.c
字号:
#include "hdr.h"
//==================================================================================
// page0 initialize table description
//==================================================================================
/* //... non-realtime table
//-------------------------- NTSC ------------------------------//
//=================================================================================
code unsigned char tbl_ntsc_pg0_cmn[] = {
// CH1 CH2 CH3 CH4
0x00,0xc8,0x20,0xd0, //... 0x00~0x03 0x10~0x13 0x20~0x23 0x30~0x33
0x06,0xf0,0x08,0x80, //... 0x04~0x07 0x14~0x17 0x24~0x27 0x34~0x37
0x80,0x80,0x80,0x02, //... 0x08~0x0b 0x18~0x1b 0x28~0x2b 0x38~0x3b
0x06,0x00,0x11 //... 0x0c~0x0e 0x1c~0x1e 0x2c~0x2e 0x3c~0x3e
};
code unsigned char tbl_ntsc_pg0_sfr1[] = { //... other decoder part
0x00,0x00,0x7f,0x4f, //... 0x40~0x43
0xa0,0x10,0x2f,0x64, //... 0x44~0x47
0x80,0x80,0x82,0x82, //... 0x48~0x4b
0x00,0x00,0x05,0x00, //... 0x4c~0x4f
0x00,0x88,0x06,0x00, //... 0x50~0x53
0x00 //... 0x54
};
code unsigned char tbl_ntsc_pg0_sfr2[] = { //... audio part
0x88,0x88,0x00,0x00, //... 0x60~0x63
0x10,0x32,0x54,0x76, //... 0x64~0x67
0x98,0xba,0xdc,0xfe, //... 0x68~0x6b
0x00,0x00,0x88,0x88, //... 0x6c~0x6f
0x88,0x11,0x40,0x88, //... 0x70~0x73
0x88 //... 0x74
};
code unsigned char tbl_ntsc_pg0_scl[] = {
// CH1 CH2 CH3 CH4
0x06,0x55,0x55,0x55, //... 0x80~0x83 0x90~0x93 0xa0~0xa3 0xb0~0xb3
0x55,0x00,0xff,0xff, //... 0x84~0x87 0x94~0x97 0xa4~0xa7 0xb4~0xb7
0xff,0xff,0x31,0x00, //... 0x88~0x8b 0x98~0x9b 0xa8~0xab 0xb8~0xbb
0xd0,0x00,0xf0,0x08 //... 0x8c~0x8e 0x9c~0x9e 0xac~0xae 0xbc~0xbe
};
code unsigned char tbl_ntsc_pg0_sfr3[] = { //...
0x00,0x00,0x00,0x07, //... 0xc0~0xc3
0x00,0x00,0xf0,0xff, //... 0xc4~0xc7
0x00,0x3c,0x0f //... 0xc8~0xca
};
//-------------------------- PAL ------------------------------//
//=================================================================================
code unsigned char tbl_pal_pg0_cmn[] = {
// CH1 CH2 CH3 CH4
0x00,0x88,0x20,0xd0, //... 0x00~0x03 0x10~0x13 0x20~0x23 0x30~0x33
0x05,0x20,0x28,0x80, //... 0x04~0x07 0x14~0x17 0x24~0x27 0x34~0x37
0x80,0x80,0x80,0x82, //... 0x08~0x0b 0x18~0x1b 0x28~0x2b 0x38~0x3b
0x06,0x00,0x11 //... 0x0c~0x0e 0x1c~0x1e 0x2c~0x2e 0x3c~0x3e
};
code unsigned char tbl_pal_pg0_sfr1[] = { //... other decoder part
0x00,0x00,0x7f,0x4f, //... 0x40~0x43
0xa0,0x10,0x2f,0x64, //... 0x44~0x47
0x80,0x80,0x82,0x82, //... 0x48~0x4b
0x00,0x00,0x05,0x00, //... 0x4c~0x4f
0x00,0x88,0x06,0x00, //... 0x50~0x53
0x00 //... 0x54
};
code unsigned char tbl_pal_pg0_sfr2[] = { //... audio part
0x88,0x88,0x00,0x00, //... 0x60~0x63
0x10,0x32,0x54,0x76, //... 0x64~0x67
0x98,0xba,0xdc,0xfe, //... 0x68~0x6b
0x00,0x00,0x88,0x88, //... 0x6c~0x6f
0x88,0x11,0x40,0x88, //... 0x70~0x73
0x88 //... 0x74
};
code unsigned char tbl_pal_pg0_scl[] = {
// CH1 CH2 CH3 CH4
0x06,0x55,0x55,0x55, //... 0x80~0x83 0x90~0x93 0xa0~0xa3 0xb0~0xb3
0x55,0x00,0xff,0xff, //... 0x84~0x87 0x94~0x97 0xa4~0xa7 0xb4~0xb7
0xff,0xff,0x31,0x00, //... 0x88~0x8b 0x98~0x9b 0xa8~0xab 0xb8~0xbb
0xd0,0x00,0x20,0x28 //... 0x8c~0x8e 0x9c~0x9e 0xac~0xae 0xbc~0xbe
};
code unsigned char tbl_pal_pg0_sfr3[] = { //...
0x00,0x00,0x00,0x07, //... 0xc0~0xc3
0x00,0xff,0xf0,0xff, //... 0xc4~0xc7
0x00,0x3c,0x0f //... 0xc8~0xca
};
// */
//==================================================================================
//* //... normal quad table
//-------------------------- NTSC ------------------------------//
//=================================================================================
code unsigned char tbl_ntsc_pg0_cmn[] = {
// CH1 CH2 CH3 CH4
0x00,0xc8,0x20,0xd0, //... 0x00~0x03 0x10~0x13 0x20~0x23 0x30~0x33
0x06,0xf0,0x08,0x80, //... 0x04~0x07 0x14~0x17 0x24~0x27 0x34~0x37
0x80,0x80,0x80,0x02, //... 0x08~0x0b 0x18~0x1b 0x28~0x2b 0x38~0x3b
0x06,0x00,0x11 //... 0x0c~0x0e 0x1c~0x1e 0x2c~0x2e 0x3c~0x3e
};
code unsigned char tbl_ntsc_pg0_sfr1[] = { //... other decoder part
// 0x00,0x00,0x7f,0x45, //... 0x40~0x43 //... before 060315
// 0x00,0x7f,0x7f,0x45, //... 0x40~0x43 //... update:060315
0x00,0x77,0x77,0x45, //... 0x40~0x43 //... update:060626
0xa0,0xd0,0x2f,0x64, //... 0x44~0x47
0x80,0x80,0x82,0x82, //... 0x48~0x4b
0x00,0x0f,0x05,0x00, //... 0x4c~0x4f
0x00,0x80,0x06,0x00, //... 0x50~0x53
0x00 //... 0x54
};
code unsigned char tbl_ntsc_pg0_sfr2[] = { //... audio part
0x88,0x88,0x00,0x00, //... 0x60~0x63
0x10,0x32,0x54,0x76, //... 0x64~0x67
0x98,0xba,0xdc,0xfe, //... 0x68~0x6b
0x00,0x00,0x88,0x88, //... 0x6c~0x6f
0x88,0x54,0x00,0x00, //... 0x70~0x73
0x00 //... 0x74
};
code unsigned char tbl_ntsc_pg0_scl[] = {
// CH1 CH2 CH3 CH4
#if defined(__4CH__)
0x01,0x7f,0xff,0x7f, //... 0x80~0x83 0x90~0x93 0xa0~0xa3 0xb0~0xb3
#elif defined(__16CH__)
0x0b,0x3f,0xff,0x3f, //... 0x80~0x83 0x90~0x93 0xa0~0xa3 0xb0~0xb3
#endif
0xff,0x00,0xff,0xff, //... 0x84~0x87 0x94~0x97 0xa4~0xa7 0xb4~0xb7
0xff,0xff,0x31,0x00, //... 0x88~0x8b 0x98~0x9b 0xa8~0xab 0xb8~0xbb
0xd0,0x00,0xf0,0x08 //... 0x8c~0x8e 0x9c~0x9e 0xac~0xae 0xbc~0xbe
};
code unsigned char tbl_ntsc_pg0_sfr3[] = { //...
// 0x00,0x00,0x00,0x07, //... 0xc0~0xc3 //... AUTOBGNDxx on
0x00,0x00,0x00,0x00, //... 0xc0~0xc3 //... AUTOBGNDxx off
0x00,0x00,0xf0,0xff, //... 0xc4~0xc7
0x00,0x3c,0x4f //... 0xc8~0xca //... update:060315
};
//-------------------------- PAL ------------------------------//
//=================================================================================
code unsigned char tbl_pal_pg0_cmn[] = {
// CH1 CH2 CH3 CH4
0x00,0x88,0x20,0xd0, //... 0x00~0x03 0x10~0x13 0x20~0x23 0x30~0x33
0x05,0x20,0x28,0x80, //... 0x04~0x07 0x14~0x17 0x24~0x27 0x34~0x37
0x80,0x80,0x80,0x82, //... 0x08~0x0b 0x18~0x1b 0x28~0x2b 0x38~0x3b
0x06,0x00,0x11 //... 0x0c~0x0e 0x1c~0x1e 0x2c~0x2e 0x3c~0x3e
};
code unsigned char tbl_pal_pg0_sfr1[] = { //... other decoder part
// 0x00,0x00,0x7f,0x45, //... 0x40~0x43 //... before 060315
// 0x00,0x7f,0x7f,0x45, //... 0x40~0x43 //... update:060315
0x00,0x77,0x77,0x45, //... 0x40~0x43 //... update:060626
0xa0,0xd0,0x2f,0x64, //... 0x44~0x47
0x80,0x80,0x82,0x82, //... 0x48~0x4b
0x00,0x0f,0x05,0x00, //... 0x4c~0x4f
0x00,0x80,0x06,0x00, //... 0x50~0x53
0x00 //... 0x54
};
code unsigned char tbl_pal_pg0_sfr2[] = { //... audio part
0x88,0x88,0x00,0x00, //... 0x60~0x63
0x10,0x32,0x54,0x76, //... 0x64~0x67
0x98,0xba,0xdc,0xfe, //... 0x68~0x6b
0x00,0x00,0x88,0x88, //... 0x6c~0x6f
0x88,0x54,0x00,0x00, //... 0x70~0x73
0x00 //... 0x74
};
code unsigned char tbl_pal_pg0_scl[] = {
// CH1 CH2 CH3 CH4
#if defined(__4CH__)
0x01,0x7f,0xff,0x7f, //... 0x80~0x83 0x90~0x93 0xa0~0xa3 0xb0~0xb3
#elif defined(__16CH__)
0x0b,0x3f,0xff,0x3f, //... 0x80~0x83 0x90~0x93 0xa0~0xa3 0xb0~0xb3
#endif
0xff,0x00,0xff,0xff, //... 0x84~0x87 0x94~0x97 0xa4~0xa7 0xb4~0xb7
0xff,0xff,0x31,0x00, //... 0x88~0x8b 0x98~0x9b 0xa8~0xab 0xb8~0xbb
0xd0,0x00,0x20,0x28 //... 0x8c~0x8e 0x9c~0x9e 0xac~0xae 0xbc~0xbe
};
code unsigned char tbl_pal_pg0_sfr3[] = { //...
// 0x00,0x00,0x00,0x07, //... 0xc0~0xc3 //... AUTOBGNDxx on
0x00,0x00,0x00,0x00, //... 0xc0~0xc3 //... AUTOBGNDxx off
// 0x00,0xff,0xf0,0xff, //... 0xc4~0xc7 //... recommend:full table
0x00,0x00,0xf0,0xff, //... 0xc4~0xc7 //... temporal:quad table
0x00,0x3c,0x4f //... 0xc8~0xca //... update:060315
};
// */
//==================================================================================
//*
//==================================================================================
// Page1 initialize table description
//==================================================================================
code unsigned char tbl_pg1_x_cmn[] = {
// 00 01 02 03 04 05 06 07 08 09 0A 0B 0C 0D 0E 0F
0x02,0x00,0x00,0x00,0x84,0x00,0x00, 0x00,0x00,0x00,0xd7,0x23,0x2d,0x1e,0xa7, //... 0x01
0x80,0x02,0x00,0x00,0x02,0x00,0x10,0x00, 0x81,0x02,0x00,0x01,0x02,0x00,0x11,0x00, //... 0x10 //... normal quad
0x82,0x02,0x00,0x02,0x02,0x00,0x12,0x00, 0x83,0x02,0x00,0x03,0x02,0x00,0x13,0x00, //... 0x20
// 0x90,0x02,0x00,0x90,0x02,0x00,0x10,0x00, 0x91,0x02,0x00,0x91,0x02,0x00,0x11,0x00, //... 0x10 //... non-realtime
// 0x92,0x02,0x00,0x92,0x02,0x00,0x12,0x00, 0x93,0x02,0x00,0x93,0x02,0x00,0x13,0x00, //... 0x20
};
//-------------------------- NTSC ------------------------------//
//... H: 45(2d),90(5a),135(87),60(3c),120(78),180(b4)
//... V: 30(1e),40(28),60(3c),80(50),90(5a),120(78) for NTSC
//... V: 36(24),48(30),72(48),96(60),108(6c),144(90) for PAL
code unsigned char tbl_ntsc_pg1_pic_fl[] = {
// 00 01 02 03 04 05 06 07 08 09 0A 0B 0C 0D 0E 0F
0x00,0xb4,0x00,0x78,0x00,0xb4,0x00,0x78, 0x00,0xb4,0x00,0x78,0x00,0xb4,0x00,0x78 //...
};
code unsigned char tbl_ntsc_pg1_pic_qd[] = {
// 00 01 02 03 04 05 06 07 08 09 0A 0B 0C 0D 0E 0F
0x00,0x5a,0x00,0x3c,0x5a,0xb4,0x00,0x3c, 0x00,0x5a,0x3c,0x78,0x5a,0xb4,0x3c,0x78 //...
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -