查看: 4125|回复: 0

MC9S08LL16.H 库函数解析说明一

[复制链接]
  • TA的每日心情
    难过
    2021-12-15 16:01
  • 签到天数: 1 天

    连续签到: 1 天

    [LV.1]初来乍到

    305

    主题

    4701

    帖子

    0

    中级会员

    Rank: 3Rank: 3

    积分
    377
    最后登录
    2023-8-16
    发表于 2010-4-15 09:48:03 | 显示全部楼层 |阅读模式
    #ifndef _MC9S08LL16_H
    #define _MC9S08LL16_H
    //下面这部分是类型定义,方便我们在程序编写的时候对各种类型记忆。
    /* Types definition */
    typedef unsigned char byte;
    typedef unsigned int word;
    typedef unsigned long dword;
    typedef unsigned long dlong[2];
    //下面这部分是用来使用看门狗的,及看门狗的喂狗操作。
    /* Watchdog reset macro */
    #ifndef __RESET_WATCHDOG
    #ifdef _lint
      #define __RESET_WATCHDOG()  /* empty */
    #else
      #define __RESET_WATCHDOG() {asm sta SRS;}
    #endif
    #endif /* __RESET_WATCHDOG */
    //下面是定义IO寄存器区域的基准地址
    #define REG_BASE 0x0000                /* Base address for the I/O register block */
    #pragma MESSAGE DISABLE C1106 /* WARNING C1106: Non-standard bitfield type */
    //下面是中断向量数
    /**************** interrupt vector numbers ****************/
    #define VectorNumber_Vtod               19
    #define VectorNumber_Vacmp              18
    #define VectorNumber_Vadc               17
    #define VectorNumber_Vkeyboard          16
    #define VectorNumber_Viic               15
    #define VectorNumber_Vscitx             14
    #define VectorNumber_Vscirx             13
    #define VectorNumber_Vscierr            12
    #define VectorNumber_Vspi               11
    #define VectorNumber_Vlcd               10
    #define VectorNumber_Vtpm2ovf           9
    #define VectorNumber_Vtpm2ch1           8
    #define VectorNumber_Vtpm2ch0           7
    #define VectorNumber_Vtpm1ovf           6
    #define VectorNumber_Vtpm1ch1           5
    #define VectorNumber_Vtpm1ch0           4
    #define VectorNumber_Vlvd               3
    #define VectorNumber_Virq               2
    #define VectorNumber_Vswi               1
    #define VectorNumber_Vreset             0
    //下面是中断向量地址列表,我们只使用中断中可以使用上诉中断号或者下面的列表。
    /**************** interrupt vector table ****************/
    #define Vtod                            0x0000FFD8
    #define Vacmp                           0x0000FFDA
    #define Vadc                            0x0000FFDC
    #define Vkeyboard                       0x0000FFDE
    #define Viic                            0x0000FFE0
    #define Vscitx                          0x0000FFE2
    #define Vscirx                          0x0000FFE4
    #define Vscierr                         0x0000FFE6
    #define Vspi                            0x0000FFE8
    #define Vlcd                            0x0000FFEA
    #define Vtpm2ovf                        0x0000FFEC
    #define Vtpm2ch1                        0x0000FFEE
    #define Vtpm2ch0                        0x0000FFF0
    #define Vtpm1ovf                        0x0000FFF2
    #define Vtpm1ch1                        0x0000FFF4
    #define Vtpm1ch0                        0x0000FFF6
    #define Vlvd                            0x0000FFF8
    #define Virq                            0x0000FFFA
    #define Vswi                            0x0000FFFC
    #define Vreset                          0x0000FFFE
    该会员没有填写今日想说内容.
    回复

    使用道具 举报

    您需要登录后才可以回帖 注册/登录

    本版积分规则

    关闭

    站长推荐上一条 /3 下一条

    Archiver|手机版|小黑屋|恩智浦技术社区

    GMT+8, 2025-8-3 23:29 , Processed in 0.077915 second(s), 19 queries , MemCache On.

    Powered by Discuz! X3.4

    Copyright © 2001-2024, Tencent Cloud.

    快速回复 返回顶部 返回列表