📄 reg_define.h
字号:
//=======================================================================================
//
// REG_DEFINE.H - S3C2400 INTERNAL REGISTER DEFINE
//
// (C) Copyright 2003-3-19, ARM STUDY GROUP (Yoon Gwang-Yoon)
//
//=======================================================================================
//=======================================================================================
// BANK5(nGCS5) PLD : User Defined I/O Area
//=======================================================================================
//-------------------------------------------------------------------------
// MODE SWITCH 3Bit Input (B2,B1,B0)
// B0 : ON - BLOB, OFF : Normal
// B1 : TBD
// B2 : TBD
//-------------------------------------------------------------------------
#define vMODESW (*(volatile unsigned char *)0x40000000)
//-------------------------------------------------------------------------
// Matrix Keypad COLUMN Input or General 8 Bit Input (B7~B0)
//-------------------------------------------------------------------------
#define vKEYCOL (*(volatile unsigned char *)0x40000001)
//-------------------------------------------------------------------------
// Matrix Keypad ROW Output or General 8 bit Output (B7~B0)
//-------------------------------------------------------------------------
#define vKEYROW (*(volatile unsigned char *)0x40000002)
//-------------------------------------------------------------------------
// LCD Touch Switch control 4Bit Output (B3,B2,B1,B0)
// B3 : TIB(Bottom) , B2 : TIT(Top)
// B1 : TIR(Right) , B0 : TIL(Left)
//-------------------------------------------------------------------------
#define vLCDTOUCH (*(volatile unsigned char *)0x40000003)
//-------------------------------------------------------------------------
// LED Output 4Bit Output (B3,B2,B1,B0)
// Low Active (Clear to 0 Led ON)
//-------------------------------------------------------------------------
#define vLED (*(volatile unsigned char *)0x40000004)
//-------------------------------------------------------------------------
// LCD ON/OFF : 2Bit Output (B1,B0)
// B1 : LCD ON/OFF , B0 : Back Light ON/OFF
//-------------------------------------------------------------------------
#define vLCDBL (*(volatile unsigned char *)0x40000005)
//-------------------------------------------------------------------------
// H/W Watch Dog Timer Clear (Read or Write)
//-------------------------------------------------------------------------
#define vHWWDT (*(volatile unsigned char *)0x40000007)
//=======================================================================================
// Memory control
//=======================================================================================
#define rBWSCON (*(volatile unsigned *)0x14000000)
#define rBANKCON0 (*(volatile unsigned *)0x14000004)
#define rBANKCON1 (*(volatile unsigned *)0x14000008)
#define rBANKCON2 (*(volatile unsigned *)0x1400000c)
#define rBANKCON3 (*(volatile unsigned *)0x14000010)
#define rBANKCON4 (*(volatile unsigned *)0x14000014)
#define rBANKCON5 (*(volatile unsigned *)0x14000018)
#define rBANKCON6 (*(volatile unsigned *)0x1400001c)
#define rBANKCON7 (*(volatile unsigned *)0x14000020)
#define rREFRESH (*(volatile unsigned *)0x14000024)
#define rBANKSIZE (*(volatile unsigned *)0x14000028)
#define rMRSRB6 (*(volatile unsigned *)0x1400002c)
#define rMRSRB7 (*(volatile unsigned *)0x14000030)
//=======================================================================================
// INTERRUPT
//=======================================================================================
#define rSRCPND (*(volatile unsigned *)0x14400000)
#define rINTMOD (*(volatile unsigned *)0x14400004)
#define rINTMSK (*(volatile unsigned *)0x14400008)
#define rPRIORITY (*(volatile unsigned *)0x1440000c)
#define rINTPND (*(volatile unsigned *)0x14400010)
#define rINTOFFSET (*(volatile unsigned *)0x14400014)
//=======================================================================================
// DMA
//=======================================================================================
#define rDISRC0 (*(volatile unsigned *)0x14600000)
#define rDIDST0 (*(volatile unsigned *)0x14600004)
#define rDCON0 (*(volatile unsigned *)0x14600008)
#define rDSTAT0 (*(volatile unsigned *)0x1460000c)
#define rDCSRC0 (*(volatile unsigned *)0x14600010)
#define rDCDST0 (*(volatile unsigned *)0x14600014)
#define rDMASKTRIG0 (*(volatile unsigned *)0x14600018)
#define rDISRC1 (*(volatile unsigned *)0x14600020)
#define rDIDST1 (*(volatile unsigned *)0x14600024)
#define rDCON1 (*(volatile unsigned *)0x14600028)
#define rDSTAT1 (*(volatile unsigned *)0x1460002c)
#define rDCSRC1 (*(volatile unsigned *)0x14600030)
#define rDCDST1 (*(volatile unsigned *)0x14600034)
#define rDMASKTRIG1 (*(volatile unsigned *)0x14600038)
#define rDISRC2 (*(volatile unsigned *)0x14600040)
#define rDIDST2 (*(volatile unsigned *)0x14600044)
#define rDCON2 (*(volatile unsigned *)0x14600048)
#define rDSTAT2 (*(volatile unsigned *)0x1460004c)
#define rDCSRC2 (*(volatile unsigned *)0x14600050)
#define rDCDST2 (*(volatile unsigned *)0x14600054)
#define rDMASKTRIG2 (*(volatile unsigned *)0x14600058)
#define rDISRC3 (*(volatile unsigned *)0x14600060)
#define rDIDST3 (*(volatile unsigned *)0x14600064)
#define rDCON3 (*(volatile unsigned *)0x14600068)
#define rDSTAT3 (*(volatile unsigned *)0x1460006c)
#define rDCSRC3 (*(volatile unsigned *)0x14600070)
#define rDCDST3 (*(volatile unsigned *)0x14600074)
#define rDMASKTRIG3 (*(volatile unsigned *)0x14600078)
//=======================================================================================
// CLOCK & POWER MANAGEMENT
//=======================================================================================
#define rLOCKTIME (*(volatile unsigned *)0x14800000)
#define rMPLLCON (*(volatile unsigned *)0x14800004)
#define rUPLLCON (*(volatile unsigned *)0x14800008)
#define rCLKCON (*(volatile unsigned *)0x1480000c)
#define rCLKSLOW (*(volatile unsigned *)0x14800010)
#define rCLKDIVN (*(volatile unsigned *)0x14800014)
//=======================================================================================
// LCD CONTROLLER
//=======================================================================================
#define rLCDCON1 (*(volatile unsigned *)0x14a00000)
#define rLCDCON2 (*(volatile unsigned *)0x14a00004)
#define rLCDCON3 (*(volatile unsigned *)0x14a00008)
#define rLCDCON4 (*(volatile unsigned *)0x14a0000c)
#define rLCDCON5 (*(volatile unsigned *)0x14a00010)
#define rLCDSADDR1 (*(volatile unsigned *)0x14a00014)
#define rLCDSADDR2 (*(volatile unsigned *)0x14a00018)
#define rLCDSADDR3 (*(volatile unsigned *)0x14a0001c)
#define rREDLUT (*(volatile unsigned *)0x14a00020)
#define rGREENLUT (*(volatile unsigned *)0x14a00024)
#define rBLUELUT (*(volatile unsigned *)0x14a00028)
#define rDP1_2 (*(volatile unsigned *)0x14a0002c)
#define rDP4_7 (*(volatile unsigned *)0x14a00030)
#define rDP3_5 (*(volatile unsigned *)0x14a00034)
#define rDP2_3 (*(volatile unsigned *)0x14a00038)
#define rDP5_7 (*(volatile unsigned *)0x14a0003c)
#define rDP3_4 (*(volatile unsigned *)0x14a00040)
#define rDP4_5 (*(volatile unsigned *)0x14a00044)
#define rDP6_7 (*(volatile unsigned *)0x14a00048)
#define rDITHMODE (*(volatile unsigned *)0x14a0004c)
#define rTPAL (*(volatile unsigned *)0x14a00050)
#define PALETTE (0x14a00400)
//=======================================================================================
// UART
//=======================================================================================
#define rULCON0 (*(volatile unsigned *)0x15000000)
#define rUCON0 (*(volatile unsigned *)0x15000004)
#define rUFCON0 (*(volatile unsigned *)0x15000008)
#define rUMCON0 (*(volatile unsigned *)0x1500000c)
#define rUTRSTAT0 (*(volatile unsigned *)0x15000010)
#define rUERSTAT0 (*(volatile unsigned *)0x15000014)
#define rUFSTAT0 (*(volatile unsigned *)0x15000018)
#define rUMSTAT0 (*(volatile unsigned *)0x1500001c)
#define rUBRDIV0 (*(volatile unsigned *)0x15000028)
#define rULCON1 (*(volatile unsigned *)0x15004000)
#define rUCON1 (*(volatile unsigned *)0x15004004)
#define rUFCON1 (*(volatile unsigned *)0x15004008)
#define rUMCON1 (*(volatile unsigned *)0x1500400c)
#define rUTRSTAT1 (*(volatile unsigned *)0x15004010)
#define rUERSTAT1 (*(volatile unsigned *)0x15004014)
#define rUFSTAT1 (*(volatile unsigned *)0x15004018)
#define rUMSTAT1 (*(volatile unsigned *)0x1500401c)
#define rUBRDIV1 (*(volatile unsigned *)0x15004028)
#define rUTXH0 (*(volatile unsigned char *)0x15000020)
#define rURXH0 (*(volatile unsigned char *)0x15000024)
#define rUTXH1 (*(volatile unsigned char *)0x15004020)
#define rURXH1 (*(volatile unsigned char *)0x15004024)
#define WrUTXH0(ch) (*(volatile unsigned char *)0x15000020)=(unsigned char)(ch)
#define RdURXH0() (*(volatile unsigned char *)0x15000024)
#define WrUTXH1(ch) (*(volatile unsigned char *)0x15004020)=(unsigned char)(ch)
#define RdURXH1() (*(volatile unsigned char *)0x15004024)
#define UTXH0 (0x15000020) // byte_access address by DMA
#define URXH0 (0x15000024)
#define UTXH1 (0x15004020)
#define URXH1 (0x15004024)
//=======================================================================================
// PWM TIMER
//=======================================================================================
#define rTCFG0 (*(volatile unsigned *)0x15100000)
#define rTCFG1 (*(volatile unsigned *)0x15100004)
#define rTCON (*(volatile unsigned *)0x15100008)
#define rTCNTB0 (*(volatile unsigned *)0x1510000c)
#define rTCMPB0 (*(volatile unsigned *)0x15100010)
#define rTCNTO0 (*(volatile unsigned *)0x15100014)
#define rTCNTB1 (*(volatile unsigned *)0x15100018)
#define rTCMPB1 (*(volatile unsigned *)0x1510001c)
#define rTCNTO1 (*(volatile unsigned *)0x15100020)
#define rTCNTB2 (*(volatile unsigned *)0x15100024)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -