C Datasheet

  • C

  • C Compiler Startup Files for the M16C/62 MCU

  • 356.42KB

  • 16页

  • ETC

扫码查看芯片数据手册

上传产品规格书

PDF预览

C Compiler Startup Files for the M16C/62 MCU
M16C/62
;---------------------------------------------------------------------
; STACK SIZE definition. Unless the system is running an RTOS, both
; interrupts and function calls should use the istack only (default startup
; configuration). If not required and need this RAM for other
; usage, reduce the value of USTACKSIZE.
;---------------------------------------------------------------------
STACKSIZE
.equ
300h
;---------------------------------------------------------------------
; INTERRUPT STACK SIZE definition
;---------------------------------------------------------------------
ISTACKSIZE
.equ
300h
;---------------------------------------------------------------------
; INTERRUPT VECTOR ADDRESS. do not set within a flash memory block used by
; the ROM Monitor.
;---------------------------------------------------------------------
VECTOR_ADR
.equ
0ef000h
;====================================================================
; Initialize Macro declarations. These macro's are used in the startup
; file (ncrto.a30)for initializing C variables. Clears global variables,
; sets intialized variables, etc.
;---------------------------------------------------------------------
N_BZERO
.macro TOP_ ,SECT_
mov.b #00H, R0L
mov.w #(TOP_ & 0FFFFH), A1
mov.w #sizeof SECT_ , R3
sstr.b
.endm
N_BCOPY .macro
FROM_,TO_,SECT_
mov.w #(FROM_ & 0FFFFH),A0
mov.b #(FROM_ >>16),R1H
mov.w #TO_ ,A1
mov.w #sizeof SECT_ , R3
smovf.b
.endm
BZERO .macro
push.w
push.w
pusha
pusha
TOP_,SECT_
#sizeof SECT_ >> 16
#sizeof SECT_ & 0ffffh
TOP_ >>16
TOP_ & 0ffffh
.glb
_bzero
jsr.a _bzero
.endm
AN-DECE-MCU-23-A
February 2002
7

C相关型号PDF文件下载

您可能感兴趣的PDF文件资料

热门IC型号推荐

扫码下载APP,
一键连接广大的电子世界。

在线人工客服

买家服务:
卖家服务:
技术客服:

0571-85317607

网站技术支持

13606545031

客服在线时间周一至周五
9:00-17:30

关注官方微信号,
第一时间获取资讯。

建议反馈
返回顶部

建议反馈

联系人:

联系方式:

按住滑块,拖拽到最右边
>>
感谢您向阿库提出的宝贵意见,您的参与是维库提升服务的动力!意见一经采纳,将有感恩红包奉上哦!