资源简介
MC9S12HY64 (板子是DEMO9S12HY64) 上的休眠 按键唤醒例程。 板子得电后,LED闪烁20下后,休眠。 按SW3键后,MCU唤醒,LED闪烁20下后,休眠。 如此重复。
代码片段和文件信息
/******************************************************************************
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 2017-09-01 13:47 S12HY STOP KEY WAKE UP\
文件 855 2009-09-14 14:48 S12HY STOP KEY WAKE UP\C_Layout.hwl
文件 161 2004-06-15 15:46 S12HY STOP KEY WAKE UP\Default.mem
文件 2142 2009-11-03 10:55 S12HY STOP KEY WAKE UP\P&E_Multili
文件 2010 2017-09-01 13:44 S12HY STOP KEY WAKE UP\P&E_Multili
文件 64358 2017-09-01 11:38 S12HY STOP KEY WAKE UP\S12HY STOP KEY WAKE UP.mcp
目录 0 2017-09-01 13:47 S12HY STOP KEY WAKE UP\S12HY_STOP_KEY_WAKE_UP_Data\
文件 4195 2017-09-01 14:03 S12HY STOP KEY WAKE UP\S12HY_STOP_KEY_WAKE_UP_Data\CWSettingsWindows.stg
目录 0 2017-09-01 13:47 S12HY STOP KEY WAKE UP\S12HY_STOP_KEY_WAKE_UP_Data\P&E_Multili
目录 0 2017-09-01 13:47 S12HY STOP KEY WAKE UP\S12HY_STOP_KEY_WAKE_UP_Data\P&E_Multili
文件 6769 2017-09-01 13:47 S12HY STOP KEY WAKE UP\S12HY_STOP_KEY_WAKE_UP_Data\P&E_Multili
文件 16480 2017-09-01 13:47 S12HY STOP KEY WAKE UP\S12HY_STOP_KEY_WAKE_UP_Data\P&E_Multili
文件 5977 2017-09-01 13:47 S12HY STOP KEY WAKE UP\S12HY_STOP_KEY_WAKE_UP_Data\P&E_Multili
文件 9612 2017-09-01 13:47 S12HY STOP KEY WAKE UP\S12HY_STOP_KEY_WAKE_UP_Data\P&E_Multili
文件 11500 2017-09-01 13:47 S12HY STOP KEY WAKE UP\S12HY_STOP_KEY_WAKE_UP_Data\P&E_Multili
文件 184112 2017-09-01 13:47 S12HY STOP KEY WAKE UP\S12HY_STOP_KEY_WAKE_UP_Data\P&E_Multili
文件 523201 2017-09-01 14:03 S12HY STOP KEY WAKE UP\S12HY_STOP_KEY_WAKE_UP_Data\P&E_Multili
目录 0 2017-09-01 13:45 S12HY STOP KEY WAKE UP\S12HY_Template_Data\
文件 4537 2009-09-16 10:27 S12HY STOP KEY WAKE UP\S12HY_Template_Data\CWSettingsWindows.stg
目录 0 2017-09-01 13:45 S12HY STOP KEY WAKE UP\S12HY_Template_Data\P&E_Multili
目录 0 2017-09-01 13:45 S12HY STOP KEY WAKE UP\S12HY_Template_Data\P&E_Multili
文件 6649 2009-09-15 15:44 S12HY STOP KEY WAKE UP\S12HY_Template_Data\P&E_Multili
文件 15656 2009-09-15 15:44 S12HY STOP KEY WAKE UP\S12HY_Template_Data\P&E_Multili
文件 5701 2009-09-14 15:07 S12HY STOP KEY WAKE UP\S12HY_Template_Data\P&E_Multili
文件 9596 2009-09-14 15:07 S12HY STOP KEY WAKE UP\S12HY_Template_Data\P&E_Multili
文件 15800 2009-09-16 10:25 S12HY STOP KEY WAKE UP\S12HY_Template_Data\P&E_Multili
文件 152810 2009-09-14 15:07 S12HY STOP KEY WAKE UP\S12HY_Template_Data\P&E_Multili
文件 606399 2009-09-16 10:25 S12HY STOP KEY WAKE UP\S12HY_Template_Data\P&E_Multili
文件 1112 2009-09-15 13:12 S12HY STOP KEY WAKE UP\SofTec_HCS12.ini
目录 0 2017-09-01 13:45 S12HY STOP KEY WAKE UP\Sources\
目录 0 2017-09-01 13:45 S12HY STOP KEY WAKE UP\Sources\Drivers & Vectors\
............此处省略33个文件信息
相关资源
- MAC地址唤醒电脑
- nRF51822低功耗睡眠函数应用
- 防止硬盘休眠,防止硬盘自动断电批
- 基于飞思卡尔MC9S12G128芯片的uds诊断代
- 如何实现ZigBee休眠与唤醒
- cc1101 wor 无线唤醒 430程序
- 基于MC9S12XS128的LCD12864驱动程序
- STM32的待机唤醒程序,亲测能用
- bcb待机休眠关闭显示器开启显示器上
- 单片机MC9S12XS128串口接收指令控制小车
- 基于MC9S12XEP100的整车控制器CANBootLoa
- MC9s12单片机AD16库
- Linux/Windows局域网远程开机唤醒的例程
- 飞思卡尔MC9S12G128CAN发送数据例程
- 基于MC9S12XS128的电磁智能小车的硬件设
- 用MC9S12XS128实现超声波测距使用PIT模块
- 飞思卡尔 MC9S12XEP100 App Demo用于Bootlo
- MC9S12G128 bootloader
- 基于MC9S12XS128飞思卡尔单片机的电子闹
- 低频唤醒接收唤醒原理图.pdf
- 飞思卡尔MC9S12单片机教程
- MC9S12XDP512的CAN编程
- Wake On LAN (WOL) 网络唤醒
- windows睡眠休眠唤醒助手
- MC9S12xs128最小系统原理图及PCB
- STM32_AWU_停止模式_RTC闹钟事件唤醒_L
- jqweui js 唤醒微信支付
- STM32低功耗三种方式唤醒
- intel NUC 8代 几乎已经完美 3卡驱动 睡
- EC200系列硬体说明书.zip
评论
共有 条评论