- 博客(1)
- 资源 (2)
- 收藏
- 关注
原创 Linux 试玩笔记之 message
使用 tail / var/log/messages 报告没有文件; 编辑 /etc/rsyslog.d/50-default.conf # *.=debug;\ auth,authpriv.none;\ news.none;mail.none -/var/log/debug *.=info;*.=notice;*.=warn;\ auth,authpriv.none;\ cron,daemon.none;\ mail,news.none -/var/log/messages # 后重启 r
2021-03-14 13:56:34
225
用单片机读写IPS eprom
使用模拟方法 读写 fm25256
sbit lcdrs = P2^2; //寄存器选择,H:数据,L:命令
sbit lcdrw = P2^1; //H:读 L:写
sbit lcdcs = P2^0; //片选
sbit fmcs1=P3^4; //EPROM片选U32
sbit fmcs2=P3^5; //EPROM片选U33
sbit fmsio=P3^6; //EPROM信号
sbit fmsck=P3^7; //EPROM时钟
const uint wren = 0x06; //set write enable latch
const uint wrdi = 0x08; //write disable
const uint rdsr = 0x05; //read status register
const uint wrsr = 0x01; //write status register
const uint read = 0x03; //read memory data
const uint write = 0x02; //write memory data
2011-04-23
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人