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

📄 tbl_tw2835.c

📁 TECHWELL 之tw2835 四画面合一之驱动代码,CCIR656输出,KEIL C51 平台编译,
💻 C
📖 第 1 页 / 共 2 页
字号:
#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
	0x01,0x7f,0xff,0x7f,		//...		0x80~0x83	0x90~0x93	0xa0~0xa3	0xb0~0xb3
	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
	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
	0x01,0x7f,0xff,0x7f,		//...		0x80~0x83	0x90~0x93	0xa0~0xa3	0xb0~0xb3
	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
//	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

⌨️ 快捷键说明

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