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

📄 stkreg_u.h

📁 TQ公司的STK16x开发系统的源码
💻 H
字号:
/* File: STKXREG.H */

/****************************************************************************
*
* STK16XSW.STKREG
* ===============
*
* Routines for the Acces to the stepper motor and the LCD-Display
*
* TQ-Systems GmbH
* ---------------
* Customer: TQ-Components
* Project : TQMX16XU
* Tools   : uVision 2.33
*
*
* Rev: Date:     Name:            Modification:
* ----+---------+----------------+------------------------------------------
* 100  05.02.01  A. Lichte        Begin
* 200  28.05.03  Volker Jung      changes for XC161/XC167 Prozessoren
* 251  29.07.03  Volker Jung	  Anpassung an TQ_Select
*****************************************************************************/


#include "header.h"

/*==========================================================================*
* extern available definitions (#DEFINE):
*===========================================================================*/

#define STKREG_BASEADDR    0x00A008
#define STKREG_FCON		   0x000001	  /*  8 Bit - Demultiplex  */
#define STKREG_TCON        0x006A6D
#define STKREG_ADDR        0xA00000
#define STKREG_DATA_ADDR   0xA20000
#define STKREG_CTRL_ADDR   0xA10000

#define pPLD XARRAY (unsigned char,0x800200)

#define LCD_R_W     1
#define LCD_RS      2
#define LCD_EN      4
#define SMT_EN      8
#define SMT_LINES   0xF0

/*==========================================================================*
* extern available type definitions (TYPEDEF):
*===========================================================================*/

/*==========================================================================*
* extern available constants (CONST):
*===========================================================================*/

/*==========================================================================*
* globale extern available variables (EXTERN):
*===========================================================================*/

/*==========================================================================*
* extern available functions:
*===========================================================================*/

/*-------------------------------------------------------------------------*
* void stkreg_init(void)
*--------------------------------------------------------------------------*
* FT: Initialize databus for CS4
* EP: -
* RW: -
* GP: stkreg_sreg: Backgrond Register for the STKREG
*--------------------------------------------------------------------------*/
void stkreg_init(void);

/*-------------------------------------------------------------------------*
* void stkreg_sethigh(BYTE change, BYTE value)
*--------------------------------------------------------------------------*
* FT: Change Bits of the higher Port of the STKREG
* EP: change: Bitmask: Bits whitch become changed
*     value : New value of the changed Bits
* RW: -
* GP: stkreg_sreg: Backgrond Register for the STKREG
*--------------------------------------------------------------------------*/
void stkreg_sethigh(BYTE change, BYTE value);

/*-------------------------------------------------------------------------*
* void stkreg_writelow(BYTE value)
*--------------------------------------------------------------------------*
* FT: Set the Lowbyte of the STKREG
* EP: value : New value of the Lowbyte of the STKREG
* RW: -
* GP: -
*--------------------------------------------------------------------------*/
void stkreg_writelow(BYTE value);

/*-------------------------------------------------------------------------*
* BYTE stkreg_readlow(void)
*--------------------------------------------------------------------------*
* FT: Read the Lowbyte of the STKREG
* EP: value : New value of the Lowbyte of the STKREG
* RW: -
* GP: -
*--------------------------------------------------------------------------*/
BYTE stkreg_readlow(void);

⌨️ 快捷键说明

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