📄 m42800.inc
字号:
#------------------------------------------------------------------------------
#- ATMEL Microcontroller Software Support - ROUSSET -
#------------------------------------------------------------------------------
# The software is delivered "AS IS" without warranty or condition of any
# kind, either express, implied or statutory. This includes without
# limitation any warranty or condition with respect to merchantability or
# fitness for any particular purpose, or against the infringements of
# intellectual property rights of others.
#------------------------------------------------------------------------------
#- File Name : m42800.inc
#- Object : AT91M42800 Definition File.
#-
#- 1.0 25/05/00 PF : Creation
#------------------------------------------------------------------------------
#------------------------
#- Peripheral Memory Map
#------------------------
# AIC, PMC, SF and EBI base addresses are described in periph header files.
.EQU ST_BASE, 0xFFFF8000 @- ST: System Timer
.EQU PIOB_BASE, 0xFFFF0000 @- Parallel I/O Controller B
.EQU PIOA_BASE, 0xFFFEC000 @- Parallel I/O Controller A
.EQU TCB1_BASE, 0xFFFD4000 @- Channels 3, 4, 5
.EQU TCB0_BASE, 0xFFFD0000 @- Channels 0, 1, 2
.EQU USART1_BASE, 0xFFFC4000 @- USART 1
.EQU USART0_BASE, 0xFFFC0000 @- USART 0
.EQU SPIA_BASE, 0xFFFC8000 @- SPIA
.EQU SPIB_BASE, 0xFFFCC000 @- SPIB
#----------------------------------
# Internal Memory Mapping and Size
#----------------------------------
.EQU RAM_BASE, 0
.EQU RAM_SIZE, (8*1024)
.EQU RAM_LIMIT, (RAM_BASE+RAM_SIZE)
.EQU RAM_BASE_BOOT, 0x00300000
#---------------------
# ARM Core : ARM7TDMI
#---------------------
.INCLUDE "../../periph/arm7tdmi/arm.inc"
#-----------------------------
#- Special Function Registers
#-----------------------------
.INCLUDE "../../periph/special_function/sf.inc"
#------------------------
# External Bus Interface
#------------------------
.INCLUDE "../../periph/ebi/ebi.inc"
#-------------
# Sytem Timer
#-------------
.INCLUDE "../../periph/system_timer/st.inc"
#-----------------------------
# Power Management Controller
#-----------------------------
.INCLUDE "../../periph/power_saving/pmc42800.inc"
#-------------------------------------------------
# AIC Interrupt Sources and peripheral Identifier
#-------------------------------------------------
.INCLUDE "../../periph/aic/aic.inc"
.EQU AIC_FIQ_ID, 0 @- Fast Interrupt
.EQU AIC_SWIRQ_ID, 1 @- Soft Interrupt (generated by the AIC)
.EQU AIC_US0IRQ_ID, 2 @- USART Channel 0 interrupt
.EQU AIC_US1IRQ_ID, 3 @- USART Channel 1 interrupt
.EQU AIC_US2IRQ_ID, 4 @- USART Channel 2 interrupt
.EQU AIC_SPIRQ_ID, 5 @- SPI interrupt
.EQU AIC_TC0IRQ_ID, 6 @- Timer Channel 0 interrupt
.EQU AIC_TC1IRQ_ID, 7 @- Timer Channel 1 interrupt
.EQU AIC_TC2IRQ_ID, 8 @- Timer Channel 2 interrupt
.EQU AIC_TC3IRQ_ID, 9 @- Timer Channel 3 interrupt
.EQU AIC_TC4IRQ_ID, 10 @- Timer Channel 4 interrupt
.EQU AIC_TC5IRQ_ID, 11 @- Timer Channel 5 interrupt
.EQU AIC_WDIRQ_ID, 12 @- Watchdog interrupt
.EQU AIC_PIOAIRQ_ID, 13 @- Parallel I/O Controller A interrupt
.EQU AIC_PIOBIRQ_ID, 14 @- Parallel I/O Controller B interrupt
.EQU AIC_IRQ3_ID, 28 @- External interrupt 3
.EQU AIC_IRQ2_ID, 29 @- External interrupt 2
.EQU AIC_IRQ1_ID, 30 @- External interrupt 1
.EQU AIC_IRQ0_ID, 31 @- External interrupt 0
#-----------------
# PIO Controllers
#-----------------
.INCLUDE "../../periph/pio/pioa.inc"
.INCLUDE "../../periph/pio/piob.inc"
.EQU NB_PIOA, 30 @- Number of PIO A Lines
.EQU NB_PIOB, 28 @- Number of PIO A Lines
# Port A
.EQU TCLK3, PA0
.EQU TIOA3, PA1
.EQU TIOB3, PA2
.EQU PIN_TC3, (TIOA3|TIOB3|TCLK3)
.EQU TCLK4, PA3
.EQU TIOA4, PA4
.EQU TIOB4, PA5
.EQU PIN_TC4, (TIOA4|TIOB4|TCLK4)
.EQU TCLK5, PA6
.EQU TIOA5, PA7
.EQU TIOB5, PA8
.EQU PIN_TC5, (TIOA5|TIOB5|TCLK5)
.EQU PIN_IRQ0, PA9
.EQU PIN_IRQ1, PA10
.EQU PIN_IRQ2, PA11
.EQU PIN_IRQ3, PA12
.EQU PIN_FIQ, PA13
.EQU SCK0, PA14
.EQU TXD0, PA15
.EQU RXD0, PA16
.EQU PIN_USART0, (SCK0|TXD0|RXD0)
.EQU SCK1, PA17
.EQU TXD1, PA18
.EQU RXD1, PA19
.EQU PIN_USART1, (SCK1|TXD1|RXD1)
.EQU SCK2, PA20
.EQU TXD2, PA21
.EQU RXD2, PA22
.EQU PIN_USART2, (SCK2|TXD2|RXD2)
.EQU SPCK, PA23
.EQU MISO, PA24
.EQU MOSI, PA25
.EQU NPCS0, PA26
.EQU NPCS1, PA27
.EQU NPCS2, PA28
.EQU NPCS3, PA29
# Port B
.EQU TCLK0, PB19
.EQU TIOA0, PB20
.EQU TIOB0, PB21
.EQU PIN_TC0, (TIOA0|TIOB0|TCLK0)
.EQU TCLK1, PB22
.EQU TIOA1, PB23
.EQU TIOB1, PB24
.EQU PIN_TC1, (TIOA1|TIOB1|TCLK1)
.EQU TCLK2, PB25
.EQU TIOA2, PB26
.EQU TIOB2, PB27
.EQU PIN_TC2, (TIOA2|TIOB2|TCLK2)
.EQU MCKO, PB17
.EQU BMS, PB18
.EQU MPI_NOE, PB0
.EQU MPI_NLB, PB1
.EQU MPI_NUB, PB2
# .END
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -