-
1. 本程序使用一个定时器和任意 2 个 I/O 口模拟一个串行口。
2. 1位起始位,8位数据位,1位停止位。发数据位时先发低位。
3. 支持半双...
1. 本程序使用一个定时器和任意 2 个 I/O 口模拟一个串行口。
2. 1位起始位,8位数据位,1位停止位。发数据位时先发低位。
3. 支持半双工通讯。收、发波特率相同。
4. 应把定时器中断优先级设置为最高级。
5. 本程序每接收一个字节后就把它放到一个队列缓冲区中(也可使用环行缓冲区),
待缓冲区满后,将缓冲区中的内容原样发回。这是为了测试多字节连续收发的
能力和简化程序。实际应用中应防止缓冲区溢出。
6. 由接收转换到发送时要先调用 soft_send_enable ();
由发送转换到接收时要先调用 soft_receive_enable ()。
7. 发送最后一个字节后如果要立刻转为接收,必须等待最后一个字节后发送完毕
while ( rs_f_TI == 0) // 等待最后一个字节发送完毕-err
- 2022-06-19 08:35:11下载
- 积分:1
-
Fiscal Cash Register Source: Pinyin input method, LCD, VFD drives, IC card drive...
税控收款机源码:拼音输入法,LCD,VFD驱动,IC卡驱动,税控国标-Fiscal Cash Register Source: Pinyin input method, LCD, VFD drives, IC card driver, Tax GB
- 2022-02-21 19:36:01下载
- 积分:1
-
MSP430
MSP430-LCD1602液晶显示驱动程序,MSP430-LCD1602液晶显示驱动程序-MSP430-LCD1602 LCD driver, MSP430-LCD1602 LCD driver
- 2023-05-22 15:25:03下载
- 积分:1
-
430 to do a door control system of procedures, using inverter 482, such as commu...
430做的一种门控系统的程序,用到变频器,482通信协议等-430 to do a door control system of procedures, using inverter 482, such as communication protocols
- 2023-03-16 01:45:03下载
- 积分:1
-
在现代电子系统中,有为数众多的IC需要进行相互之间以及与外界的通信。为了提供硬件 的效率和简化电路的设计,PHILIPS开发了一种用于内部IC控制的简单的双向两...
在现代电子系统中,有为数众多的IC需要进行相互之间以及与外界的通信。为了提供硬件 的效率和简化电路的设计,PHILIPS开发了一种用于内部IC控制的简单的双向两线串行总线I2C-In modern electronic systems, there are a large number of IC need each other and communicate with the outside world. In order to provide the efficiency and simplify the hardware circuit design, PHILIPS developed an IC for internal control, a simple bi-directional two-wire serial bus I2C.
- 2023-08-21 21:45:03下载
- 积分:1
-
2410电机驱动,ADS编译,测试没问题对触摸屏有兴趣的初学者可以用...
2410电机驱动,ADS编译,测试没问题对触摸屏有兴趣的初学者可以用-2410 motor drive, ADS compiler, testing is no problem on the touch screen are interested in the beginners can use
- 2022-03-12 12:55:34下载
- 积分:1
-
matter for the control coupled with the process, if the error is found, immediat...
用于事时监控着发大器的工作进程,如果发现错误,立即发出警告。-matter for the control coupled with the process, if the error is found, immediately issued a warning.
- 2022-05-25 17:28:12下载
- 积分:1
-
c8051f020 cp1 simple application
c8051f020 cp1 的简单应用
-c8051f020 cp1 simple application
- 2022-03-12 20:25:27下载
- 积分:1
-
AVR128的C代码,外部中断,串口中断,IO操作
AVR128的C代码,外部中断,串口中断,IO操作-AVR128 C-code, external interrupt, serial port interrupts, IO operation
- 2022-10-12 17:50:04下载
- 积分:1
-
单片机液晶显示程序,请大家批评指教
单片机液晶显示程序,请大家批评指教-Single-chip liquid crystal display program, please advise everyone to criticize
- 2022-01-26 03:53:50下载
- 积分:1