⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 sdefine.h

📁 是关于KeilC下串口Baudrat设定的。
💻 H
字号:
/*------------------------------------------------------------------------------
;  This file is part of the RLC instruction
;  Copyright (c)
;  Version: 1.0 
;-------------------------------------------------------------------------------
;  Filename:
;  sdefine.h
;  Function:   
;
;  Author:
;  pirate
;     
;  Writedate:
;  Oct.15 2005
;  Moddate(latest):
;  Oct.15 2005
;-------------------------------------------------------------------------------
*/
#ifndef _SDEFINE_H
#define _SDEFINE_H

//--------------------------------------
// Included files
//--------------------------------------
// none


//*************************************
//SPI wire and SFR defination
//*************************************

//define special function register of AP180
sfr     DPS         = 0x86;
sfr     RAMCON      = 0xF3;


//define the wire name of SPI interface
sbit    SCK         = P1^5;
sbit    NPD         = P1^6;
sbit    NSS		    = P1^7;   
sbit    MISO        = P2^7;
sbit    MOSI        = P2^6;
sbit    NRESET      = P2^5;
sbit    IRQ         = P2^4;


//define a test pin
sbit    TEST_PIN    = P2^0;


//define a test bit
sbit    JG_B        = PSW^5; 


sbit    PARAM       = P0^0;
 

//------------------------------------------------------------------------------
//
#endif

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -