资源简介
OLED的各类单片机底层驱动源码,看完必会!注释非常详细!(四处收集整理的),当时就很快调通了!
代码片段和文件信息
/******************************************************************************
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 2015-10-09 14:48 OLED 液晶屏\
目录 0 2015-09-23 23:43 OLED 液晶屏\SPI OLED显示屏用户资料\
文件 464971 2015-03-29 10:16 OLED 液晶屏\SPI OLED显示屏用户资料\OLED 模块 使用说明.pdf
目录 0 2015-09-23 23:43 OLED 液晶屏\SPI OLED显示屏用户资料\OLED裸屏用户资料\
文件 133404 2013-04-18 11:36 OLED 液晶屏\SPI OLED显示屏用户资料\OLED裸屏用户资料\OLED开发设计说明-研发必读-100309(1).pdf
文件 1739946 2009-06-10 06:55 OLED 液晶屏\SPI OLED显示屏用户资料\OLED裸屏用户资料\SAS1-9046-B UG-2864HSWEG01-Univision.pdf
文件 1876686 2009-01-17 15:49 OLED 液晶屏\SPI OLED显示屏用户资料\OLED裸屏用户资料\SSD1306-Revision 1.1 (Charge Pump).pdf
文件 119812 2009-02-01 16:28 OLED 液晶屏\SPI OLED显示屏用户资料\OLED裸屏用户资料\UG-2864HSWEG01 Drawing - 090120B.pdf
文件 521161 2009-02-19 13:07 OLED 液晶屏\SPI OLED显示屏用户资料\OLED裸屏用户资料\UG-2864HSWEG01 user guide.pdf
目录 0 2015-09-23 23:43 OLED 液晶屏\SPI OLED显示屏用户资料\取模软件\
文件 130 2002-05-11 12:05 OLED 液晶屏\SPI OLED显示屏用户资料\取模软件\ASC.PTL
文件 18092 2002-05-15 15:31 OLED 液晶屏\SPI OLED显示屏用户资料\取模软件\Gb2312.PTL
文件 385 2015-09-30 00:17 OLED 液晶屏\SPI OLED显示屏用户资料\取模软件\PCtoLCD.INI
文件 310272 2002-05-11 19:53 OLED 液晶屏\SPI OLED显示屏用户资料\取模软件\PCtoLCD.exe
文件 403 2006-05-23 09:44 OLED 液晶屏\SPI OLED显示屏用户资料\取模软件\PCtoLCD2002.INI
文件 676352 2002-02-01 22:00 OLED 液晶屏\SPI OLED显示屏用户资料\取模软件\RTL60.BPL
文件 1326080 2002-02-01 22:00 OLED 液晶屏\SPI OLED显示屏用户资料\取模软件\VCL60.BPL
文件 2 2003-10-31 20:40 OLED 液晶屏\SPI OLED显示屏用户资料\取模软件\_index.TXT
文件 2122 2002-05-12 00:14 OLED 液晶屏\SPI OLED显示屏用户资料\取模软件\notice.txt
文件 4427 2002-05-12 00:13 OLED 液晶屏\SPI OLED显示屏用户资料\取模软件\readme2002.txt
文件 1006 2003-08-27 10:35 OLED 液晶屏\SPI OLED显示屏用户资料\取模软件\shuzi.TXT
文件 52 2003-08-27 10:35 OLED 液晶屏\SPI OLED显示屏用户资料\取模软件\shuzi.TXT_index.TXT
文件 723390 2015-03-29 07:56 OLED 液晶屏\SPI OLED显示屏用户资料\字模软件的使用.pdf
目录 0 2015-03-29 08:51 OLED 液晶屏\SPI OLED显示屏用户资料\程序例程\
目录 0 2015-09-23 23:43 OLED 液晶屏\SPI OLED显示屏用户资料\程序例程\(01)OLED_XS128 用PA0123\
文件 855 2010-01-22 12:10 OLED 液晶屏\SPI OLED显示屏用户资料\程序例程\(01)OLED_XS128 用PA0123\C_Layout.hwl
文件 161 2004-06-15 14:46 OLED 液晶屏\SPI OLED显示屏用户资料\程序例程\(01)OLED_XS128 用PA0123\Default.mem
文件 57972 2015-01-12 21:15 OLED 液晶屏\SPI OLED显示屏用户资料\程序例程\(01)OLED_XS128 用PA0123\LQ-XS128-OLED.mcp
目录 0 2015-09-23 23:43 OLED 液晶屏\SPI OLED显示屏用户资料\程序例程\(01)OLED_XS128 用PA0123\LQ-XS128-OLED_Data\
文件 4179 2015-03-29 08:44 OLED 液晶屏\SPI OLED显示屏用户资料\程序例程\(01)OLED_XS128 用PA0123\LQ-XS128-OLED_Data\CWSettingsWindows.stg
目录 0 2015-09-23 23:43 OLED 液晶屏\SPI OLED显示屏用户资料\程序例程\(01)OLED_XS128 用PA0123\LQ-XS128-OLED_Data\Standard\
............此处省略1538个文件信息
- 上一篇:智能家居 DIY
- 下一篇:IAI-X-SEL软件资料大全.rar
评论
共有 条评论