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

📄 cmx865.h

📁 CMX865驱动
💻 H
字号:
/*
调用说明:
发起一次通信是执行步骤如下
1、PORTB &=~(1<<M_CSN);//使能865
2、发送地址调用SPI_MasterTransmit("要发送的一个字节");
3、如果还要发送重复2否则向下执行;
4、读取调用c=SPI_MasterTransmit(NULL);
5、没有读取完重复4,否则PORTB |=(1<<M_CSN);

The following C-BUS addresses and registers are used by the CMX865:
General Reset Command (address only, no data). Address $01
General Control Register, 16-bit write only. Address $E0
Transmit Mode Register, 16-bit write-only. Address $E1
Receive Mode Register, 16-bit write-only. Address $E2
Transmit Data Register, 8-bit write only. Address $E3
Receive Data Register, 8-bit read-only. Address $E5
Status Register, 16-bit read-only. Address $E6
Programming Register, 16-bit write-only. Address $E8

启动顺序:
i. Power is applied to the device
ii. Issue a General Reset command
iii. Write to the General Control Register (address $E0) setting both the Powerup bit (b8)
and the Reset bit (b7) to 1 

⌨️ 快捷键说明

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