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

📄 sblcda2.h

📁 449的程序430Interfacing the DAC8831EVM to MSP430 Processors
💻 H
字号:
/********************************************************************
*
* Bit definitions for the SoftBaugh Customized LCD
* #SBLCDA2 Rev 1.1.0, 15 July 2002.
*
* Texas Instruments, Version 1.1
*
********************************************************************/

#ifndef __SBLCDA2
#define __SBLCDA2

/************************************************************
* STANDARD BITS
************************************************************/
#define BIT0                (0x0001)
#define BIT1                (0x0002)
#define BIT2                (0x0004)
#define BIT3                (0x0008)
#define BIT4                (0x0010)
#define BIT5                (0x0020)
#define BIT6                (0x0040)
#define BIT7                (0x0080)
#define BIT8                (0x0100)
#define BIT9                (0x0200)
#define BITA                (0x0400)
#define BITB                (0x0800)
#define BITC                (0x1000)
#define BITD                (0x2000)
#define BITE                (0x4000)
#define BITF                (0x8000)

/************************************************************
* Segments for Main Digits 1-7
************************************************************/
#define MA             (0x80)
#define MB             (0x40)
#define MC             (0x20)
#define MD             (0x10)
#define ME             (0x20)
#define MF             (0x40)
#define MG             (0x04)
#define MH             (0x08)
#define MJ             (0x08)
#define MK             (0x04)
#define MM             (0x02)
#define MN             (0x01)
#define MP             (0x01)
#define MQ             (0x02)
#define NONE           (0x00)
#define DP             (0x10)

/************************************************************
* Digits 0-9 Main - LCDM[6..19]
************************************************************/
#define M_ZERO_UB         (ME+MF)
#define M_ZERO_LB         (MA+MB+MC+MD)
#define M_ONE_UB          (NONE)
#define M_ONE_LB          (MB+MC)
#define M_TWO_UB          (MG+ME)
#define M_TWO_LB          (MA+MB+MM+MD)
#define M_THREE_UB        (MG)
#define M_THREE_LB        (MA+MB+MM+MC+MD)
#define M_FOUR_UB         (MG+MF)
#define M_FOUR_LB         (MB+MC+MM)
#define M_FIVE_UB         (MF+MG)
#define M_FIVE_LB         (MA+MM+MC+MD)
#define M_SIX_UB          (MF+ME+MG)
#define M_SIX_LB          (MA+MD+MC+MM)
#define M_SEVEN_UB        (NONE)
#define M_SEVEN_LB        (MA+MB+MC)
#define M_EIGHT_UB        (MF+MG+ME)
#define M_EIGHT_LB        (MA+MM+MC+MD+MB)
#define M_NINE_UB         (MF+MG)
#define M_NINE_LB         (MA+MM+MB+MC)
#define M_DecPt_UB        (DP)

/************************************************************
* Digits 8-9 Upper Left  - LCDM[5..4]
************************************************************/
#define UL_ZERO            (0xD7)
#define UL_ONE             (0x06)
#define UL_TWO             (0xE3)
#define UL_THREE           (0xA7)
#define UL_FOUR            (0x36)
#define UL_FIVE            (0xB5)
#define UL_SIX             (0xF5)
#define UL_SEVEN           (0x07)
#define UL_EIGHT           (0xF7)
#define UL_NINE            (0x37)
#define UD_A               (0x77)
#define UD_D               (0xD7)
#define UD_C               (0x78)

/************************************************************
* Digits 10-11 Upper Right  - LCDM[3..2]
************************************************************/
#define UR_ZERO            (0x7D)
#define UR_ONE             (0x05)
#define UR_TWO             (0x5B)
#define UR_THREE           (0x1F)
#define UR_FOUR            (0x27)
#define UR_FIVE            (0x3E)
#define UR_SIX             (0x7E)
#define UR_SEVEN           (0x15)
#define UR_EIGHT           (0x7F)
#define UR_NINE            (0x37)
#define TEN_COL            (0x80)
#define TEN_DP             (0x08)

/************************************************************
* Special Symbols
************************************************************/
#define PLUS                (0x80)
#define MINUS               (0x1000)
#define Tie_BL              (0x8000)
#define Tie_B0              (0x8000)
#define Tie_B1              (0x8000)
#define Tie_B2              (0x8000)
#define Tie_BR              (0x8000)

#define SoftBaugh          (0x80)

#define ANT               (0x20)
#define A0                (0x10)
#define A1                (0x80)
#define A2                (0x40)

#define AL                (0x01)
#define AU                (0x02)
#define AR                (0x04)
#define AD                (0x08)

#define PBL                (0x80)
#define PB0                (0x40)
#define PB1                (0x20)
#define PB2                (0x10)
#define PB3                (0x80)
#define PB4                (0x40)
#define PB5                (0x20)
#define PB6                (0x10)
#define PB7                (0x08)
#define PB8                (0x04)
#define PB9                (0x02)
#define PBR                (0x01)


/************************************************************
* End of Modules
************************************************************/

#endif /* #ifndef __SBLCDA2 */

⌨️ 快捷键说明

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