📄 ram.c
字号:
/*==============================================================================
MTV230 External Special Function Register
==============================================================================*/
xdata unsigned char
IICCTR _at_ 0xF00,
IICSTUS[2] _at_ 0xF01,
IICINTFLG _at_ 0xF03,
IICINTEN _at_ 0xF04,
MBUF _at_ 0xF05,
RCABUF _at_ 0xF06,
SLVAADR _at_ 0xF07,
RCBBUF _at_ 0xF08,
SLVBADR _at_ 0xF09,
ISPSLV _at_ 0xF0B,
ISPEN _at_ 0xF0C,
ADC _at_ 0xF10,
WDT _at_ 0xF18,
DAC0 _at_ 0xF20,
DAC1 _at_ 0xF21,
DAC2 _at_ 0xF22,
DAC3 _at_ 0xF23,
DAC4 _at_ 0xF24,
PORT6[3] _at_ 0xF28,
PADMOD[4] _at_ 0xF2B,
OPTION _at_ 0xF2F,
PORT4[8] _at_ 0xF30,
PORT5[8] _at_ 0xF38,
HVSTUS _at_ 0xF40,
HCNTH _at_ 0xF41,
HCNTL _at_ 0xF42,
VCNTH _at_ 0xF43,
VCNTL _at_ 0xF44,
HVINTFLG _at_ 0xF48,
HVINTEN _at_ 0xF49,
OSDRA _at_ 0xFA0,
OSDCA _at_ 0xFA1,
OSDDT0 _at_ 0xFA2,
OSDDT1 _at_ 0xFA3,
WINCTL[4][3] _at_ 0xFC0,
VERTD _at_ 0xFCC,
HORD _at_ 0xFCD,
CH _at_ 0xFCE,
RSPACE _at_ 0xFD0,
OSDCON[2] _at_ 0xFD1,
CHSC _at_ 0xFD3,
FSSTP _at_ 0xFD4,
WINSW _at_ 0xFD5,
WINSH _at_ 0xFD6,
WINSC[2] _at_ 0xFD7,
XDEL _at_ 0xFD9;
/*==============================================================================
MTV230 Internal Ram Assignment
==============================================================================*/
bdata unsigned char bkey_code_pre;
sbit bsw7p = bkey_code_pre^6;
sbit bsw6p = bkey_code_pre^5;
sbit bsw5p = bkey_code_pre^4;
sbit bsw4p = bkey_code_pre^3;
sbit bsw3p = bkey_code_pre^2;
sbit bsw2p = bkey_code_pre^1;
sbit bsw1p = bkey_code_pre^0;
bdata unsigned char bkey_code_now;
sbit bsw7 = bkey_code_now^6;
sbit bsw6 = bkey_code_now^5;
sbit bsw5 = bkey_code_now^4;
sbit bsw4 = bkey_code_now^3;
sbit bsw3 = bkey_code_now^2;
sbit bsw2 = bkey_code_now^1;
sbit bsw1 = bkey_code_now^0;
bdata unsigned char bkey_code_repeat;
bdata unsigned char bosd_specific;
sbit bosdtimeout = bosd_specific^7;
sbit bosd_status = bosd_specific^6;
sbit bkeyfast = bosd_specific^5;
sbit bremote = bosd_specific^4;
sbit badjust = bosd_specific^3;
sbit bsetchok = bosd_specific^2;
sbit bhotosd = bosd_specific^1;
bdata unsigned char boperation;
sbit bsmart = boperation^7;
sbit bno_signal = boperation^6;
sbit bshutdown = boperation^5;
sbit bvchip_active = boperation^4;
sbit bfactory = boperation^3;
idata unsigned char
Source,
Contrast,Brightness,Saturation,Hue,Sharpness,Color_Temp,Caption,VChip,OSD_Disp,
Volume,Treble,Bass,Balance,Mute,
TV_Mode,Real_MTS,MTS_Mode,Channel,
Sleep,SleepCountDown,
Video_Source,Pre_Video_Source,
Page,Item,OSD_HPosition,OSD_VPosition,Language,
Pre_Channel,
Input_CountDown,OSD_CountDown,
Timer0Counter,Timer0Second,
KeyPadTimer,KeyRepeat,
RemotePre,Remote,SysPre,SysNow,
PassDig,
Pre_VChipSys,Pre_VChipRating,Pre_VChipMisc,Now_VChipSys,Now_VChipRating,Now_VChipMisc,
VChipRow,VChipCol,
SmartASIC,IICBus;
idata unsigned int
CH_Input,
ParaAddress,ColorAddress,
MinuteCounter,
Password,PassIn,
Device,Address,Data;
typedef struct IRCODE {
unsigned char ir_rdy;
unsigned char ir_index;
unsigned char ir_sys;
unsigned char ir_cmd;
};
struct IRCODE Remote_Code;
xdata unsigned char Channel_Input_Str[4];
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -