-
大小: 4.54MB文件类型: .zip金币: 2下载: 0 次发布日期: 2023-09-16
- 语言: 其他
- 标签: freescale S12 S12X Bootloader
资源简介
freescale S12 S12X Bootloader Demo
支持freescale S12系列和S12X系列所有的16位机,BootLoad代码简洁易懂
![](http://www.nz998.com/pic/49636.jpg)
代码片段和文件信息
/******************************************************************************
FILE : datapage.c
PURPOSE : paged data access runtime routines
MACHINE : Freescale 68HC12 (Target)
LANGUAGE : ANSI-C
HISTORY : 21.7.96 first version created
******************************************************************************/
#include “hidef.h“
#include “non_bank.sgm“
#include “runtime.sgm“
#ifndef __HCS12X__ /* it‘s different for the HCS12X. See the text below at the #else // __HCS12X__ */
/*
According to the -Cp option of the compiler the
__DPAGE__ __PPAGE__ and __EPAGE__ macros are defined.
If none of them is given as argument then no page accesses should occur and
this runtime routine should not be used !
To be on the save side the runtime routines are created anyway.
If some of the -Cp options are given an adapted versions which only covers the
needed cases is produced.
*/
/* if no compiler option -Cp is given it is assumed that all possible are given : */
/* Compile with option -DHCS12 to activate this code */
#if defined(HCS12) || defined(_HCS12) || defined(__HCS12__) /* HCS12 family has PPAGE register only at 0x30 */
#define PPAGE_ADDR (0x30+REGISTER_base)
#ifndef __PPAGE__ /* may be set already by option -CPPPAGE */
#define __PPAGE__
#endif
/* Compile with option -DDG128 to activate this code */
#elif defined DG128 /* HC912DG128 derivative has PPAGE register only at 0xFF */
#define PPAGE_ADDR (0xFF+REGISTER_base)
#ifndef __PPAGE__ /* may be set already by option -CPPPAGE */
#define __PPAGE__
#endif
#elif defined(HC812A4)
/* all setting default to A4 already */
#endif
#if !defined(__EPAGE__) && !defined(__PPAGE__) && !defined(__DPAGE__)
/* as default use all page registers */
#define __DPAGE__
#define __EPAGE__
#define __PPAGE__
#endif
/* modify the following defines to your memory configuration */
#define EPAGE_LOW_BOUND 0x400u
#define EPAGE_HIGH_BOUND 0x7ffu
#define DPAGE_LOW_BOUND 0x7000u
#define DPAGE_HIGH_BOUND 0x7fffu
#define PPAGE_LOW_BOUND (DPAGE_HIGH_BOUND+1)
#define PPAGE_HIGH_BOUND 0xBFFFu
#define REGISTER_base 0x0u
#ifndef DPAGE_ADDR
#define DPAGE_ADDR (0x34u+REGISTER_base)
#endif
#ifndef EPAGE_ADDR
#define EPAGE_ADDR (0x36u+REGISTER_base)
#endif
#ifndef PPAGE_ADDR
#define PPAGE_ADDR (0x35u+REGISTER_base)
#endif
/*
The following parts about the defines are assumed in the code of _GET_PAGE_REG :
- the memory region controlled by DPAGE is above the area controlled by the EPAGE and
below the area controlled by the PPAGE.
- the lower bound of the PPAGE area is equal to be the higher bound of the DPAGE area + 1
*/
#if EPAGE_LOW_BOUND >= EPAGE_HIGH_BOUND || EPAGE_HIGH_BOUND >= DPAGE_LOW_BOUND || DPAGE_LOW_BOUND >= DPAGE_HIGH_BOUND || DPAGE_HIGH_BOUND >= PPAGE_LOW_BOUND || PPAGE_LOW_BOUND >= PPAGE_HIGH_BOUND
#error /* please adapt _GET_PAGE_REG for
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
目录 0 2011-02-17 12:56 Bootloader_S12\
目录 0 2011-02-17 12:37 Bootloader_S12\bin\
文件 33508 2011-02-17 12:56 Bootloader_S12\bin\Project.abs
文件 5794 2011-02-17 12:56 Bootloader_S12\bin\Project.abs.phy
文件 5646 2011-02-17 12:56 Bootloader_S12\bin\Project.abs.s19
文件 25603 2011-02-17 12:56 Bootloader_S12\bin\Project.map
文件 4133 2010-12-10 10:58 Bootloader_S12\bin\StartS12.dbg
文件 605751 2010-12-22 10:17 Bootloader_S12\Bootloader_S12.mcp
目录 0 2011-02-17 12:37 Bootloader_S12\Bootloader_S12_Data\
文件 4769 2011-02-17 12:53 Bootloader_S12\Bootloader_S12_Data\CWSettingsWindows.stg
目录 0 2011-02-17 12:37 Bootloader_S12\Bootloader_S12_Data\S12G128\
目录 0 2011-02-17 12:37 Bootloader_S12\Bootloader_S12_Data\S12G128\ob
文件 9797 2010-12-03 13:46 Bootloader_S12\Bootloader_S12_Data\S12G128\ob
文件 6085 2010-12-09 13:58 Bootloader_S12\Bootloader_S12_Data\S12G128\ob
文件 14191 2010-12-09 13:58 Bootloader_S12\Bootloader_S12_Data\S12G128\ob
文件 6517 2010-12-09 13:58 Bootloader_S12\Bootloader_S12_Data\S12G128\ob
文件 13036 2010-12-09 13:58 Bootloader_S12\Bootloader_S12_Data\S12G128\ob
文件 7613 2010-12-09 13:58 Bootloader_S12\Bootloader_S12_Data\S12G128\ob
文件 3041 2010-12-09 13:58 Bootloader_S12\Bootloader_S12_Data\S12G128\ob
文件 83140 2011-02-17 12:56 Bootloader_S12\Bootloader_S12_Data\S12G128\TargetDataWindows.tdt
目录 0 2011-02-17 12:37 Bootloader_S12\Bootloader_S12_Data\S12G96\
目录 0 2011-02-17 12:37 Bootloader_S12\Bootloader_S12_Data\S12G96\ob
文件 59776 2011-02-17 12:56 Bootloader_S12\Bootloader_S12_Data\S12G96\TargetDataWindows.tdt
目录 0 2011-02-17 12:37 Bootloader_S12\Bootloader_S12_Data\S12HA32\
文件 57760 2011-02-17 12:56 Bootloader_S12\Bootloader_S12_Data\S12HA32\TargetDataWindows.tdt
目录 0 2011-02-17 12:37 Bootloader_S12\Bootloader_S12_Data\S12HA48\
文件 57760 2011-02-17 12:56 Bootloader_S12\Bootloader_S12_Data\S12HA48\TargetDataWindows.tdt
目录 0 2011-02-17 12:37 Bootloader_S12\Bootloader_S12_Data\S12HA64\
文件 57760 2011-02-17 12:56 Bootloader_S12\Bootloader_S12_Data\S12HA64\TargetDataWindows.tdt
目录 0 2011-02-17 12:37 Bootloader_S12\Bootloader_S12_Data\S12HY32\
文件 57760 2011-02-17 12:56 Bootloader_S12\Bootloader_S12_Data\S12HY32\TargetDataWindows.tdt
............此处省略443个文件信息
相关资源
- 飞思卡尔单片机MC9S12XS12G128驱动(硬件
- 9s12单片机SPI功能代码
- Codewarrior HCS12 V5.1 license
- 基于ADS1298与WiFi的脑电信号采集与传输
- ADS1232.PDF
- cs1237手册
- 8P_15225714_Unicom_cn_iPhone.ipcc
- 飞思卡尔智能车摄像头组
- MS12-020利用工具 含bug修正版
- ADS1256-STM32+数据采集板资料.zip
- MC9S12系列用户手册中文
- ads1274核心板PCB
- ADS1232评估板程序
- AES加解密aes128/192/256 ecb cbc cfb ofb ctr
- CCP源码、驱动和协议详解 包含了飞思
- QNX SDP 6.6 BSP for the Freescale i.XM6 Solo X
- oled xs128 驱动程序
- ADS1256-MDK5-STM32F103C8.rar
- ADS1256芯片驱动,使用TM4C129
- 飞思卡尔MPC5125参考手册
- ios12 真机支持文件
- 24位AD转换芯片ADS1256的资料
- 飞思卡尔S12系列单片机系统硬件设计
- 飞思卡尔MC9S12单片机完整版说明书(
- xs128 超声波
- iPhoneOS12.1.sdk,低版本xcode不能编译程
- uCOS-II 在Freescale MC9S08DZ60和MC9S12XEP100上
- uCOS-II 在Freescale MC9S08DZ60和MC9S12XEP100上
- MC9S12G128完全手册
- freescale PE入门
评论
共有 条评论