| RSS
深圳电器感厂家
您当前的位置:电感器制造商 > 技术知识

基于uClinux内核移植ARM开发板应用

来源:    作者:     发布时间:2015-04-24 17:53:26     点击数:

存放矢量表:

;IRQ ==the program put this phrase to 0xc000000

ExceptionHanlderBegin

b .

ldr pc, MyHandleUndef ; HandlerUndef

ldr

pc, MyHandleSWI ; HandlerSWI

ldr pc, MyHandlePabort ; HandlerPabort

ldr

pc, MyHandleDabort ; HandlerDAbort

b . ; HandlerReserved

ldr pc,

MyHandleIRQ ; HandlerIRQ

ldr pc, MyHandleFIQ ; HandlerFIQ

MyHandleUndef DCD HandleUndef ;reserve a word(32bit)

MyHandleSWI DCD

HandleSWI

MyHandlePabort DCD HandlePabort

MyHandleDabort DCD

HandleDabort

MyHandleIRQ DCD HandleIRQ

MyHandleFIQ DCD HandleFIQ

ExceptionHanlderEnd

建立二级矢量表:

;****************************************************

;* Setup IRQ handler

*

;****************************************************

ldr

r0,=(_IRQ_BASEADDRESS + 0x100)

ldr r2,=_IRQ_BASEADDRESS

add r3,r0,

#0x100

0电感器的识别

CMP r0, r3

STRCC r2, [r0], #4;cc:Carry clear;save R2 to R0

address, R0 =R0+ 4。

BCC %B0

ldr r1,=_IRQ_BASEADDRESS

ldr r0,=ExceptionHanlderBegin ;if there isn't

'subs pc,lr,#4' at 0x18, 0x1c

ldr r3,=ExceptionHanlderEnd

0

CMP r0, r3

;put the vector table at _IRQ_BASEADDRESS(0xc000000)

LDRCC r2, [r0],

#4

STRCC r2, [r1], #4

BCC %B0

ldr r1,=DIsrIRQ;put the IRQ judge program at

_IRQ_BASEADDRESS+0x80(0xc000080)

ldr r0,=IsrIRQ ;i电感生产f there isn't 'subs

pc,lr,#4' at 0x18, 0x1c

ldr r3,=IsrIRQEnd

0

CMP r0, r3

LDRCC r2,

[r0], #4

STRCC r2, [r1], #4

BCC %B0

ldr r1, =MyHandleIRQ ;MyHandleIRQ point to DIsrIRQ

ldr r0,

=ExceptionHanlderBegin

ldr r4, =_IRQ_BASEADDRESS;

sub r0, r1, r0

add

r0, r0,r4

ldr r1, =DIsrIRQ

str r1, [r0]

定义Handlexxx:

^ (_IRQ_BASEADDRESS)

HandleReset # 4

HandleUndef # 4

HandleSWI #

4

HandlePabort # 4

HandleDabort # 4

HandleReserved # 4

HandleIRQ #

4

HandleFIQ # 4

^ (_IRQ_BASEADDRESS+0x80)

DIsrIRQ # 4

;IntVectorTable

^

(_IRQ_BASEADDRESS+0x100)

HandleADC # 4

HandleRTC # 4

HandleUTXD1 #

4

HandleUTXD0 # 4

HandleSIO # 4

HandleIIC # 4

HandleURXD1 #

4

HandleURXD0 # 4

HandleTIMER5 # 4

HandleTIMER4 # 4

HandleTIMER3 #

4

HandleTIMER2 # 4

HandleTIMER1 # 4

HandleTIMER0 # 4

HandleUERR01 #

4

HandleWDT # 4

HandleBDMA1 # 4

HandleBDMA0 # 4

HandleZDMA1 #

4

HandleZDMA0 # 4

HandleTICK # 4

HandleEINT4567 # 4

HandleEINT3 #

4

HandleEINT2 # 4

HandleEINT1 # 4

HandleEINT0 # 4

将异常中断矢量重构到SDRAM,这样的好处就是可以在其它的功能程序内对中断处理程序的地址任意赋值。为此,我们在44b.h文件中定义:

/* ISR */

#define pISR_RESET (*(unsigned

*)(_IRQ_BASEADDRESS+0x0))

#define pISR_UNDEF (*(unsigned

*)(_IRQ_BASEADDRESS+0x4))

#define pISR_SWI (*(unsigned

*)(_IRQ_BASEADDRESS+0x8))

#define pISR_PABORT (*(unsigned

*)(_IRQ_BASEADDRESS+0xc))

#define pISR_DABORT (*(unsigned

*)(_IRQ_BASEADDRESS+0x10))

#define pISR_RESERVED (*(unsigned

*)(_IRQ_BASEADDRESS+0x14))

#define pISR_IRQ (*(unsigned

*)(_IRQ_BASEADDRESS+0x18))

#define pISR_FIQ (*(unsigned

*)(_IRQ_BASEADDRESS+0x1c))

#define pISR_ADC (*(unsigned *)(_IRQ_BASEADDRESS+0x100))//0x20))

#define

pISR_RTC (*(unsigned *)(_IRQ_BASEADDRESS+0x104))//0x24))

#define pISR_UTXD1

(*(unsigned *)(_IRQ_BASEADDRESS+0x108))//0x28))

#define pISR_UTXD0

(*(unsigned *)(_IRQ_BASEADDRESS+0x10c))//0x2c))

#define pISR_SIO (*(unsigned

*)(_IRQ_BASEADDRESS+0x110))//0x30))

#define pISR_IIC (*(unsigned

*)(_IRQ_BASEADDRESS+0x114))//0x34))

#define pISR_URXD1 (*(unsigned

*)(_IRQ_BASEADDRESS+0x118))//0x38))

#define pISR_URXD0 (*(unsigned

*)(_IRQ_BASEADDRESS+0x11c))//0x3c))

#define pISR_TIMER5 (*(unsigned

*)(_IRQ_BASEADDR差模电感器ESS+0x120))//0x40))

#电感厂家define pISR_TIMER4 (*(unsigned

*)(_IRQ_BASEADDRESS+0x124))//0x44))

#define pISR_TIMER3 (*(unsigned

*)(_IRQ_BASEADDRESS+0x128))//0x48))

#define pISR_TIMER2 (*(unsigned

*)(_IRQ_BASEADDRESS+0x12c))//0x4c))

#define pISR_TIMER1 (*(unsigned

*)(_IRQ_BASEADDRESS+0x130))//0x50))

#define pISR_TIMER0 (*(unsigned

*)(_IRQ一体成型电感_BASEADDRESS+0x134))//0x54))

#define pISR_UERR01 (*(unsigned1

集成门极换向晶闸管(IGCT)是集成门极驱动电路和门极换流晶闸管(GCT)的总称,其中GCT是以GTO为基础的器件。IGCT采用了硬驱动、缓冲层和透明阳极发射极等新技术,与GTO相比具有开

贴片绕线电感的作用。基本作用:电感滤波、振荡、延迟、陷波等;形象说法: 通直流,阻交流 细模压电感生产厂化解说:在电子线路中,电感线圈对交流有限流作用,它与电阻器或电容器能组成高通或低通滤波器、移

插件电感器工厂 相信大家对开关电源变压器并不陌生,开关电源变压器在各种电子装备中都常被用到,它作为一种主要的软磁一体成型电感厂家电磁元件,在电源技术中和电力电子技术中得到广泛的应用,开关电功率电感器


上一篇: AT89C51串并转换驱动数码管实验指导
下一篇:功率电感器
来顶一下
返回首页
返回首页
相关文章
推荐资讯
电感数字转换器
电感数字转换器
相关文章
栏目更新
栏目热门