文件名称:newHD7279
介绍说明--下载内容均来自于网络,请自行研究使用
#include <reg51.h>
/*--------------------------------------------
调用方式:自行I/O 口定义﹫2001/05/12
函数说明:私有函数,各接口定义
--------------------------------------------*/
sbit HD7279_CS=P1^4 // HD7279_CS--P1.4
sbit HD7279_CLK=P1^5 // HD7279_CLK-- P1.5
sbit HD7279_DATA=P1^6 // HD7279_DATA-- P1.2
sbit HD7279_KEY =P1^7 // HD7279_KEY-- P1.3
/*--------------------------------------------
调用方式: HD7279A 各指令定义﹫2001/05/12
函数说明:私有函数,接口定义
--------------------------------------------*
/#define HD7279_RESET 0xa4 //复位
#define HD7279_TEST 0xbf //测试
#define HD7279_RLC 0xa3 //循环左移
#define HD7279_RRC 0xa2 //循环右移
#define HD7279_RL 0xa1 //左移
#define HD7279_RR 0xa0 //右移
#define HD7279_DECODE0 0x80 //译码方式0
#define HD7279_DECODE1 0xc8 //译码方式1
-# Include <reg51.h> /*-------------------------------------------- call way: on their own I/O port function definition @ 2001/05/12 Descr iption: private function, the interface definition--------------------------------------------*/ sbit HD7279_CS = P1 ^ 4// HD7279_CS- P1.4sbit HD7279_CLK = P1 ^ 5// HD7279_CLK- P1. 5sbit HD7279_DATA = P1 ^ 6// HD7279_DATA- P1.2sbit HD7279_KEY = P1 ^ 7// HD7279_KEY- P1.3 /*-------------------------------------------- way call: HD7279A the command function definition @ 2001/05/12 Descr iption: private function, interface definitions--------------------------------------------*/# define HD7279_RESET 0xa4// reset# define HD7279_TEST 0xbf// test# define HD7279_RLC 0xa3// circle left# define HD7279_RRC 0xa2// cycle shifted to right# define HD7279_RL 0xa1// left# define HD7279_RR 0xa0// Move right# define HD7279_DECODE0 0x80// decoding means 0# define HD7279_DECODE1 0xc8// decoding mode 1
/*--------------------------------------------
调用方式:自行I/O 口定义﹫2001/05/12
函数说明:私有函数,各接口定义
--------------------------------------------*/
sbit HD7279_CS=P1^4 // HD7279_CS--P1.4
sbit HD7279_CLK=P1^5 // HD7279_CLK-- P1.5
sbit HD7279_DATA=P1^6 // HD7279_DATA-- P1.2
sbit HD7279_KEY =P1^7 // HD7279_KEY-- P1.3
/*--------------------------------------------
调用方式: HD7279A 各指令定义﹫2001/05/12
函数说明:私有函数,接口定义
--------------------------------------------*
/#define HD7279_RESET 0xa4 //复位
#define HD7279_TEST 0xbf //测试
#define HD7279_RLC 0xa3 //循环左移
#define HD7279_RRC 0xa2 //循环右移
#define HD7279_RL 0xa1 //左移
#define HD7279_RR 0xa0 //右移
#define HD7279_DECODE0 0x80 //译码方式0
#define HD7279_DECODE1 0xc8 //译码方式1
-# Include <reg51.h> /*-------------------------------------------- call way: on their own I/O port function definition @ 2001/05/12 Descr iption: private function, the interface definition--------------------------------------------*/ sbit HD7279_CS = P1 ^ 4// HD7279_CS- P1.4sbit HD7279_CLK = P1 ^ 5// HD7279_CLK- P1. 5sbit HD7279_DATA = P1 ^ 6// HD7279_DATA- P1.2sbit HD7279_KEY = P1 ^ 7// HD7279_KEY- P1.3 /*-------------------------------------------- way call: HD7279A the command function definition @ 2001/05/12 Descr iption: private function, interface definitions--------------------------------------------*/# define HD7279_RESET 0xa4// reset# define HD7279_TEST 0xbf// test# define HD7279_RLC 0xa3// circle left# define HD7279_RRC 0xa2// cycle shifted to right# define HD7279_RL 0xa1// left# define HD7279_RR 0xa0// Move right# define HD7279_DECODE0 0x80// decoding means 0# define HD7279_DECODE1 0xc8// decoding mode 1
(系统自动生成,下载前可以参看下载内容)
下载文件列表
newHD7279.doc