📄 reg2410.a
字号:
GPDCON EQU 0x56000030 ;Port D control
GPDDAT EQU 0x56000034 ;Port D data
GPDUP EQU 0x56000038 ;Pull-up control D
GPECON EQU 0x56000040 ;Port E control
GPEDAT EQU 0x56000044 ;Port E data
GPEUP EQU 0x56000048 ;Pull-up control E
GPFCON EQU 0x56000050 ;Port F control
GPFDAT EQU 0x56000054 ;Port F data
GPFUP EQU 0x56000058 ;Pull-up control F
GPGCON EQU 0x56000060 ;Port G control
GPGDAT EQU 0x56000064 ;Port G data
GPGUP EQU 0x56000068 ;Pull-up control G
GPHCON EQU 0x56000070 ;Port H control
GPHDAT EQU 0x56000074 ;Port H data
GPHUP EQU 0x56000078 ;Pull-up control H
MISCCR EQU 0x56000080 ;Miscellaneous control
DCKCON EQU 0x56000084 ;DCLK0/1 control
EXTINT0 EQU 0x56000088 ;External interrupt control register 0
EXTINT1 EQU 0x5600008c ;External interrupt control register 1
EXTINT2 EQU 0x56000090 ;External interrupt control register 2
EINTFLT0 EQU 0x56000094 ;Reserved
EINTFLT1 EQU 0x56000098 ;Reserved
EINTFLT2 EQU 0x5600009c ;External interrupt filter control register 2
EINTFLT3 EQU 0x560000a0 ;External interrupt filter control register 3
EINTMASK EQU 0x560000a4 ;External interrupt mask
EINTPEND EQU 0x560000a8 ;External interrupt pending
GSTATUS0 EQU 0x560000ac ;External pin status
GSTATUS1 EQU 0x560000b0 ;Chip ID(0x32410000)
GSTATUS2 EQU 0x560000b4 ;Reset type
GSTATUS3 EQU 0x560000b8 ;Saved data0(32-bit) before entering POWER_OFF mode
GSTATUS4 EQU 0x560000bc ;Saved data1(32-bit) before entering POWER_OFF mode
vGPFDAT EQU 0xb1600054 ;Port F data
vGPIOBASE EQU 0xb1600000 ;Port A control
oGPACON EQU 0x00
oGPADAT EQU 0x04 ;Port A data
oGPBCON EQU 0x10 ;Port B control
oGPBDAT EQU 0x14 ;Port B data
oGPBUP EQU 0x18 ;Pull-up control B
oGPCCON EQU 0x20 ;Port C control
oGPCDAT EQU 0x24 ;Port C data
oGPCUP EQU 0x28 ;Pull-up control C
oGPDCON EQU 0x30 ;Port D control
oGPDDAT EQU 0x34 ;Port D data
oGPDUP EQU 0x38 ;Pull-up control D
oGPECON EQU 0x40 ;Port E control
oGPEDAT EQU 0x44 ;Port E data
oGPEUP EQU 0x48 ;Pull-up control E
oGPFCON EQU 0x50 ;Port F control
oGPFDAT EQU 0x54 ;Port F data
oGPFUP EQU 0x58 ;Pull-up control F
oGPGCON EQU 0x60 ;Port G control
oGPGDAT EQU 0x64 ;Port G data
oGPGUP EQU 0x68 ;Pull-up control G
oGPHCON EQU 0x70 ;Port H control
oGPHDAT EQU 0x74 ;Port H data
oGPHUP EQU 0x78 ;Pull-up control H
oMISCCR EQU 0x80 ;Miscellaneous control
oDCKCON EQU 0x84 ;DCLK0/1 control
oEXTINT0 EQU 0x88 ;External interrupt control register 0
oEXTINT1 EQU 0x8c ;External interrupt control register 1
oEXTINT2 EQU 0x90 ;External interrupt control register 2
oEINTFLT0 EQU 0x94 ;Reserved
oEINTFLT1 EQU 0x98 ;Reserved
oEINTFLT2 EQU 0x9c ;External interrupt filter control register 2
oEINTFLT3 EQU 0xa0 ;External interrupt filter control register 3
oEINTMASK EQU 0xa4 ;External interrupt mask
oEINTPEND EQU 0xa8 ;External interrupt pending
oGSTATUS0 EQU 0xac ;External pin status
oGSTATUS1 EQU 0xb0 ;Chip ID(0x32410000)
oGSTATUS2 EQU 0xb4 ;Reset type
oGSTATUS3 EQU 0xb8 ;Saved data0(32-bit) before entering POWER_OFF mode
oGSTATUS4 EQU 0xbc ;Saved data1(32-bit) before entering POWER_OFF mode
vMISCCR EQU 0xb1600080 ;Miscellaneous control
;******************************************************************************
; RTC
;******************************************************************************
RTCCON EQU 0x57000040 ;RTC control
TICNT EQU 0x57000044 ;Tick time count
RTCALM EQU 0x57000050 ;RTC alarm control
ALMSEC EQU 0x57000054 ;Alarm second
ALMMIN EQU 0x57000058 ;Alarm minute
ALMHOUR EQU 0x5700005c ;Alarm Hour
ALMDAY EQU 0x57000060 ;Alarm day
ALMMON EQU 0x57000064 ;Alarm month
ALMYEAR EQU 0x57000068 ;Alarm year
RTCRST EQU 0x5700006c ;RTC round reset
BCDSEC EQU 0x57000070 ;BCD second
BCDMIN EQU 0x57000074 ;BCD minute
BCDHOUR EQU 0x57000078 ;BCD hour
BCDDAY EQU 0x5700007c ;BCD day
BCDDATE EQU 0x57000080 ;BCD date
BCDMON EQU 0x57000084 ;BCD month
BCDYEAR EQU 0x57000088 ;BCD year
;******************************************************************************
; ADC
;******************************************************************************
ADCCON EQU 0x58000000 ;ADC control
ADCTSC EQU 0x58000004 ;ADC touch screen control
ADCDLY EQU 0x58000008 ;ADC start or Interval Delay
ADCDAT0 EQU 0x5800000c ;ADC conversion data 0
ADCDAT1 EQU 0x58000010 ;ADC conversion data 1
;******************************************************************************
; SPI
;******************************************************************************
SPCON0 EQU 0x59000000 ;SPI0 control
SPSTA0 EQU 0x59000004 ;SPI0 status
SPPIN0 EQU 0x59000008 ;SPI0 pin control
SPPRE0 EQU 0x5900000c ;SPI0 baud rate prescaler
SPTDAT0 EQU 0x59000010 ;SPI0 Tx data
SPRDAT0 EQU 0x59000014 ;SPI0 Rx data
SPCON1 EQU 0x59000020 ;SPI1 control
SPSTA1 EQU 0x59000024 ;SPI1 status
SPPIN1 EQU 0x59000028 ;SPI1 pin control
SPPRE1 EQU 0x5900002c ;SPI1 baud rate prescaler
SPTDAT1 EQU 0x59000030 ;SPI1 Tx data
SPRDAT1 EQU 0x59000034 ;SPI1 Rx data
;******************************************************************************
; SD Interface
;******************************************************************************
SDICON EQU 0x5a000000 ;SDI control
SDIPRE EQU 0x5a000000 ;SDI baud rate prescaler
SDICmdArg EQU 0x5a000000 ;SDI command argument
SDICmdCon EQU 0x5a000000 ;SDI command control
SDICmdSta EQU 0x5a000000 ;SDI command status
SDIRSP0 EQU 0x5a000000 ;SDI response 0
SDIRSP1 EQU 0x5a000000 ;SDI response 1
SDIRSP2 EQU 0x5a000000 ;SDI response 2
SDIRSP3 EQU 0x5a000000 ;SDI response 3
SDIDTimer EQU 0x5a000000 ;SDI data/busy timer
SDIBSize EQU 0x5a000000 ;SDI block size
SDIDatCon EQU 0x5a000000 ;SDI data control
SDIDatCnt EQU 0x5a000000 ;SDI data remain counter
SDIDatSta EQU 0x5a000000 ;SDI data status
SDIFSTA EQU 0x5a000000 ;SDI FIFO status
SDIIntMsk EQU 0x5a000000 ;SDI interrupt mask
SDIDAT EQU 0x5a00003c ;SDI data
;******************************************************************************
; PENDING BIT
;******************************************************************************
BIT_EINT0 EQU (0x1)
BIT_EINT1 EQU (0x1<<1)
BIT_EINT2 EQU (0x1<<2)
BIT_EINT3 EQU (0x1<<3)
BIT_EINT4_7 EQU (0x1<<4)
BIT_EINT8_23 EQU (0x1<<5)
BIT_NOTUSED6 EQU (0x1<<6)
BIT_BAT_FLT EQU (0x1<<7)
BIT_TICK EQU (0x1<<8)
BIT_WDT EQU (0x1<<9)
BIT_TIMER0 EQU (0x1<<10)
BIT_TIMER1 EQU (0x1<<11)
BIT_TIMER2 EQU (0x1<<12)
BIT_TIMER3 EQU (0x1<<13)
BIT_TIMER4 EQU (0x1<<14)
BIT_UART2 EQU (0x1<<15)
BIT_LCD EQU (0x1<<16)
BIT_DMA0 EQU (0x1<<17)
BIT_DMA1 EQU (0x1<<18)
BIT_DMA2 EQU (0x1<<19)
BIT_DMA3 EQU (0x1<<20)
BIT_SDI EQU (0x1<<21)
BIT_SPI0 EQU (0x1<<22)
BIT_UART1 EQU (0x1<<23)
BIT_NOTUSED24 EQU (0x1<<24)
BIT_USBD EQU (0x1<<25)
BIT_USBH EQU (0x1<<26)
BIT_IIC EQU (0x1<<27)
BIT_UART0 EQU (0x1<<28)
BIT_SPI1 EQU (0x1<<29)
BIT_RTC EQU (0x1<<30)
BIT_ADC EQU (0x1<<31)
BIT_ALLMSK EQU (0xffffffff)
;******************************************************************************
; Memory Configuration
;******************************************************************************
DW8 EQU (0x0)
DW16 EQU (0x1)
DW32 EQU (0x2)
WAIT EQU (0x1<<2)
UBLB EQU (0x1<<3)
B1_BWSCON EQU (DW32)
B2_BWSCON EQU (DW16)
B3_BWSCON EQU (DW16 + WAIT + UBLB)
B4_BWSCON EQU (DW16)
B5_BWSCON EQU (DW16)
B6_BWSCON EQU (DW32)
B7_BWSCON EQU (DW32)
;******************************************************************************
; BANK0CON
;******************************************************************************
B0_Tacs EQU 0x0 ;0clk
B0_Tcos EQU 0x0 ;0clk
B0_Tacc EQU 0x7 ;14clk
B0_Tcoh EQU 0x0 ;0clk
B0_Tah EQU 0x0 ;0clk
B0_Tacp EQU 0x0
B0_PMC EQU 0x0 ;normal
;******************************************************************************
; BANK1CON
;******************************************************************************
B1_Tacs EQU 0x0 ;0clk
B1_Tcos EQU 0x0 ;0clk
B1_Tacc EQU 0x7 ;14clk
B1_Tcoh EQU 0x0 ;0clk
B1_Tah EQU 0x0 ;0clk
B1_Tacp EQU 0x0
B1_PMC EQU 0x0 ;normal
;******************************************************************************
; Bank 2 parameter
;******************************************************************************
B2_Tacs EQU 0x0 ;0clk
B2_Tcos EQU 0x0 ;0clk
B2_Tacc EQU 0x7 ;14clk
B2_Tcoh EQU 0x0 ;0clk
B2_Tah EQU 0x0 ;0clk
B2_Tacp EQU 0x0
B2_PMC EQU 0x0 ;normal
;******************************************************************************
; Bank 3 parameter
;******************************************************************************
B3_Tacs EQU 0x0 ;0clk
B3_Tcos EQU 0x0 ;0clk
B3_Tacc EQU 0x7 ;14clk
B3_Tcoh EQU 0x0 ;0clk
B3_Tah EQU 0x0 ;0clk
B3_Tacp EQU 0x0
B3_PMC EQU 0x0 ;normal
;******************************************************************************
; Bank 4 parameter
;******************************************************************************
B4_Tacs EQU 0x0 ;0clk
B4_Tcos EQU 0x0 ;0clk
B4_Tacc EQU 0x7 ;14clk
B4_Tcoh EQU 0x0 ;0clk
B4_Tah EQU 0x0 ;0clk
B4_Tacp EQU 0x0
B4_PMC EQU 0x0 ;normal
;******************************************************************************
; Bank 5 parameter
;******************************************************************************
B5_Tacs EQU 0x0 ;0clk
B5_Tcos EQU 0x0 ;0clk
B5_Tacc EQU 0x7 ;14clk
B5_Tcoh EQU 0x0 ;0clk
B5_Tah EQU 0x0 ;0clk
B5_Tacp EQU 0x0
B5_PMC EQU 0x0 ;normal
;******************************************************************************
; Bank 6 parameter
;******************************************************************************
B6_MT EQU 0x3 ;SDRAM
B6_Trcd EQU 0x1 ;3clk
B6_SCAN EQU 0x1 ;9bit
;******************************************************************************
; Bank 7 parameter
;******************************************************************************
B7_MT EQU 0x3 ;SDRAM
B7_Trcd EQU 0x1 ;3clk
B7_SCAN EQU 0x1 ;9bit
;******************************************************************************
; REFRESH parameter
;******************************************************************************
REFEN EQU 0x1 ;Refresh enable
TREFMD EQU 0x0 ;CBR(CAS before RAS)/Auto refresh
Trp EQU 0x0 ;2clk
Trc EQU 0x3 ;7clk
Tchr EQU 0x2 ;3clk
REFCNT EQU 1113 ;period=15.6us, HCLK=60Mhz, (2048+1-15.6*60)
END
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -