#include<msp430x14x.h>
#include<lcd.h>
#include<key.h>
#define uchar unsigned char
#define uint unsigned int
uchar table[8] = {0x01,0x02,0x04,0x08,0x10,0x20,0x40,0x80};
uchar duan[10] = {0x3f,0x06,0x5b,0x4f,0x66,0x6d,0x7d,0x07,0x7f,0x6f};
void main(void)
{
P1DIR |=0Xff; //设P1.0为输出//----0 --->Input ..1 ---->Output
P2DIR |=0Xff; //设P2.0为输出
P3DIR |=0X0f; //设P3.0为输入/输出0000 1111
P4DIR |=0XFF; //设P4.0为输出
lcd_init();//configure the lcd
write_long_char(0,2,"chen chen");
while(1)
{
key_scan();
}
}
没有合适的资源?快使用搜索试试~ 我知道了~
msp430f249 仿真开发板
共26个文件
ewd:3个
ewp:3个
h:2个
3星 · 超过75%的资源 需积分: 10 19 下载量 126 浏览量
2013-06-14
18:04:14
上传
评论
收藏 225KB ZIP 举报
温馨提示
基于protues 的msp430f249仿真实验板子,可实现流水灯,液晶,矩阵键盘等多种初学者常用的功能使用很方便
资源推荐
资源详情
资源评论
收起资源包目录
msp430f249 of protues电路及程序.zip (26个子文件)
msp430f249 of protues电路及程序
4
Backup (2) of test.ewp 49KB
Debug
Obj
test.pbd 373KB
main.pbi.cout 10KB
main.r43 34KB
main.pbi 371KB
test.pbd.browse 373KB
List
Exe
test.hex 2KB
test.d43 8KB
test.ewp 51KB
testCustomSfr.sfr 25B
key.h 2KB
test.dep 2KB
Backup (2) of test.ewd 20KB
test.eww 158B
test.ewd 20KB
lcd.h 2KB
Backup of test.ewp 43KB
settings
test.cspy.bat 2KB
test.wsdt 3KB
test.dni 992B
test.dbgdt 5KB
main.c 603B
Backup of test.ewd 13KB
Last Loaded FANGZHEN.DBK 264KB
FANGZHEN.PWI 2KB
FANGZHEN.DSN 264KB
共 26 条
- 1
资源评论
- 小码农95272014-05-10电路图还是挺好的,就是程序只是一个测试程序!
- ChenFeynman2013-08-26此文档和本网站上“”msp430f249 of protues仿真及程序“内容一模一样,白白浪费我10个积分呀!!!!仿真图内容丰富,但只有一个测试的例程
cc_co
- 粉丝: 0
- 资源: 2
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功