armega16与24c16的操作
#include
#include
#define uchar unsigned char
#define uint unsigned int
#define Start() TWCR|=(1
#define Wait() while(!(TWCR&(1
#define Test() (TWSR&0XF8)
#define Write(X) {TWDR=X;TWCR=(1
#define Read() TWCR|=(1
extern const uchar table[]={
~0x3f,~0x06,~0x5b,~0x4f,
~0x66,~0x6d,~0x7d,~0x07,
~0x7f,~0x6f,~0x77,~0x7c,
~0x39,~0x5e,~0x79,~0x71};
void delay(uint t)
{
void init()
{
}
//可以通过读出Test()来看TWSR处于什么状态,也可以不用使用Test()
uchar write()
{
//
//
//
}
uchar read()
{
}
void main()
{
}
armega1624c1 相关文章:
- Windows CE 进程、线程和内存管理(11-09)
- RedHatLinux新手入门教程(5)(11-12)
- uClinux介绍(11-09)
- openwebmailV1.60安装教学(11-12)
- Linux嵌入式系统开发平台选型探讨(11-09)
- Windows CE 进程、线程和内存管理(二)(11-09)