- 2
- 0
- 约 21页
- 2017-09-10 发布于重庆
- 举报
基于MSP430的12864串行底层函数
/* * 12864.c * * Created on: 2014-7-21 * Author: John *//*********************12864(ST7920)串口程序****************************/#includeMSP430x24x.h#include string.h#includestdio.h//P5.0:CS(模组片选段,高电平有效)//P5.1:SID(串行数据输入端)//P5.3:CLK(串行同步时钟,上升沿时读取SID数据)typedef unsigned char uchar;typedef unsigned int uint;#define CS_H P5OUT |= BIT0#define CS_L P5OUT = ~BIT0#define SID_H P5OUT |= BIT1#define SID_L P5OUT = ~BIT1#define CLK_H P5OUT |= BIT3#define CLK_L P5OUT = ~BIT3#define BIT(x)(1 (x))extern const unsigned char shuzi_table[];unsigned char store[1024];unsigned char ReadH=0,ReadL=0;/************
原创力文档

文档评论(0)