📄 pcb_rtd3580d_lcdtv_demo_pcb1.h
字号:
#define _PIN_111 (0 & 0x07) // 0 ~ 6 (0: P3D4i, 1: P3D4o<open-drain>, 2: P3D4o<push-pull>, 3: T0, 4: TCON[4], 5: SD0, 6: SPDIF0)
#define _PIN_112 (0 & 0x07) // 0 ~ 6 (0: P3D5i, 1: P3D5o<open-drain>, 2: P3D5o<push-pull>, 3: T1, 4: TCON[9], 5: SD1, 6: SPDIF1)
#define _PIN_113 (6 & 0x07) // 0 ~ 6 (0: P3D6i, 1: P3D6o<open-drain>, 2: P3D6o<push-pull>, 3: TCON[1], 4: SD2, 5: SPDIF2, 6: IrDA)
#define _PIN_114 (1 & 0x07) // 0 ~ 6 (0: P3D7i, 1: P3D7o<open-drain>, 2: P3D7o<push-pull>, 3: TCON[13], 4: SD3, 5: SPDIF3, 6: VCLK)
#define _PIN_121 (0 & 0x03) // 0 ~ 3 (0: DDCSCL3, 1: P7D3i, 2: P7D3o<open-drain>, 3: P7D3o<push-pull>)
#define _PIN_122 (0 & 0x03) // 0 ~ 3 (0: DDCSDA3, 1: P7D2i, 2: P7D2o<open-drain>, 3: P7D2o<push-pull>)
#define _PIN_123 (0 & 0x03) // 0 ~ 3 (0: DDCSDA2, 1: P7D1i, 2: P7D1o<open-drain>, 3: P7D1o<push-pull>)
#define _PIN_124 (0 & 0x03) // 0 ~ 3 (0: DDCSCL2, 1: P7D0i, 2: P7D0o<open-drain>, 3: P7D0o<push-pull>)
//--------------------------------------------------
// Piblic IO define
//--------------------------------------------------
#define bI2CSDA (_MCU_PORT67)
#define bI2CSCL (_MCU_PORT66)
#define bPANELPOWER (_MCU_PORT80)
sbit bLIGHTPOWER = P1^0;
//--------------------------------------------------
// Connect definitions
//--------------------------------------------------
sbit bVGACONNECT = P1^3;
#define bHDMICONNECT (_MCU_PORT60)
sbit bHot_Plug = P3^7;
#define bDVICONNECT 0
#define bUD (_MCU_PORT74)
#define bLR (_MCU_PORT75)
//--------------------------------------------------
// Key definitions
//--------------------------------------------------
#if(_KEY_SCAN_TYPE == _KEY_SCAN_NORMAL)
#define bKey_P54 (_MCU_PORT54) //Power
#define bKey_P56 (_MCU_PORT56) //Down
#define bKey_P55 (_MCU_PORT55) //Up
#define bKey_P57 (_MCU_PORT57) //Left
#define bKey_P76 (_MCU_PORT76) //Right
sbit bKey_P34 = P3^4; //Source
#define bKey_P81 (_MCU_PORT81) //Menu
#else
//MCU_ADC0,MCU_ADC1,MCU_ADC2,MCU_ADC3,MCU_ADC4
#define AD_KEY0 MCU_ADC_NONE
#define AD_KEY1 MCU_ADC1
#define AD_KEY2 MCU_ADC_NONE
#define AD_KEY3 MCU_ADC_NONE
#define AD_KEY4 MCU_ADC_NONE
#define bAD1_Key_1 8// //RESET//
#define bAD1_Key_2 52//54 //-//
#define bAD1_Key_3 23//39 //MENU//
#define bAD1_Key_4 39//54 //+//
#define bAD1_Key_5 15//18 //AV1//
#define bAD1_Key_6 3//18 //AV2//
#define bAD1_Key_7 63// //Power//
#define bAD1_Key_8 27//18//254 //SOURCE// jokerxie 080508
#endif
//--------------------------------------------------
// LED definitions
//--------------------------------------------------
//sbit bLED2 = P3^2;
sbit bLED1 = P3^3;
//--------------------------------------------------
// FM definitions
//--------------------------------------------------
//#define bFM77 (_MCU_PORT53)
#define bD0 (_MCU_PORT76)
#define bD1 (_MCU_PORT57)
#define bD2 (_MCU_PORT56)
#define bD3 (_MCU_PORT55)
#define bD4 (_MCU_PORT54)
//--------------------------------------------------
// Audio definitions
//--------------------------------------------------
#define AUDIO_TYPE _AUDIO_PWM // _AUDIO_SC7313,_AUDIO_PWM
#define bAUDIO_MUTE_A (_MCU_PORT64)
#define SET_bAUDIO_MUTE_A(x) (bAUDIO_MUTE_A = x)
#define _MUTE_ON 0
#define _MUTE_OFF 1
#define bMUTE (bAUDIO_MUTE_A)
#if (AUDIO_TYPE == _AUDIO_PWM)
#define _AUDIO_A (_MCU_PORT81)
sbit _AUDIO_B = P3^2;
#define _VOLUME_INV 1
#define _MAX_VOLUME 190
#define _MIN_VOLUME 0
/*
_RTD_PWM0, _RTD_PWM1, _RTD_PWM2, _RTD_PWM3, _RTD_PWM4, _RTD_PWM5
*/
#define bVOLUME_PWM _RTD_PWM5
#endif
#if (AUDIO_TYPE == _AUDIO_SC7313)
#define _SOUND_PROCESSOR _ON // _ON, _OFF
#else
#define _SOUND_PROCESSOR _OFF // _ON, _OFF
#endif
//--------------------------------------------------
// Definitions for Backlight PWM Setting
//--------------------------------------------------
/*
_RTD_PWM0, _RTD_PWM1, _RTD_PWM2, _RTD_PWM3, _RTD_PWM4, _RTD_PWM5
*/
#define _BACKLIGHT_PWM _RTD_PWM1
#define _BACKLIGHT_PWM_INVERSE _DISABLE // _ENABLE, _DISABLE
//--------------------------------------------------
// PWM Supported
//--------------------------------------------------
#define _MCU_PWM0_SUPPORT _OFF
#define _MCU_PWM1_SUPPORT _ON
#define _MCU_PWM2_SUPPORT _OFF
#define _MCU_PWM3_SUPPORT _OFF
#define _MCU_PWM4_SUPPORT _OFF
#define _MCU_PWM5_SUPPORT _ON
#define _MCU_PWM_SUPPORT (_MCU_PWM0_SUPPORT | \
(_MCU_PWM1_SUPPORT << 1) | \
(_MCU_PWM2_SUPPORT << 2) | \
(_MCU_PWM3_SUPPORT << 3) | \
(_MCU_PWM4_SUPPORT << 4) | \
(_MCU_PWM5_SUPPORT << 5))
//--------------------------------------------------
// Over Driving Supported
//--------------------------------------------------
#define _OD_SUPPORT _OFF //2660 not support over driving
#define _OD_COMPRESSION _OFF //2660 not support over driving
//--------------------------------------------------
// EDID
//--------------------------------------------------
#define _DDC_CHANNEL_FOR_D0 _DDC2 // DDC Channel SEL for digital input 0
#define _DDC_CHANNEL_FOR_D1 _DDC3 // DDC Channel SEL for digital input 1
//--------------------------------------------------
// Interior VGA EDID
//--------------------------------------------------
#define _VGA_EDID _ON
//--------------------------------------------------
// HDMI EDID
//--------------------------------------------------
#define _HDMI_EDID _ON
#define _HDMI_DDC_CHANNEL_SELECT _DDC_CHANNEL_FOR_D0
//--------------------------------------------------
// Interior DVI EDID
//--------------------------------------------------
#define _DVI_EDID _ON
#define _DVI_DDC_CHANNEL_SELECT _DDC_CHANNEL_FOR_D1
//--------------------------------------------------
// HDCP Supported
//--------------------------------------------------
#define _HDCP_SUPPORT _ON
//--------------------------------------------------
// HDMI HOT PLUG OPTION
//--------------------------------------------------
#define _HDMI_HOT_PLUG_OPTION _DISABLE
//--------------------------------------------------
// For digital input swap
//--------------------------------------------------
#define _CHANNEL_D0_RG_SWAP (_ENABLE << 6)
#define _CHANNEL_D0_PN_SWAP (_ENABLE << 5)
#define _CHANNEL_D1_RG_SWAP (_DISABLE << 6)
#define _CHANNEL_D1_PN_SWAP (_DISABLE << 5)
#define _SLEEP_FUNC _ENABLE
#define _ICM_FUNC _DISABLE
#define _LOGO_ENABLE _ENABLE
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -