共2条
1/1 1 跳转至页
问
AT90S1200接收来自PB的1 Byte数据,然后用软件以同步串行模式从PD口输出,要求最快的速度,请问软件如何实现?
现在的做法是,测试该数据某位是否为1,如果是1置输出口为1,否则置0,这样做速度一般。
AVR中有个位数据传送数据,可惜只能是寄存器之间的传送,不能传送给I/O口。
请问那位朋友有更快的办法? 答 1: 如果用mega8,可以采用硬件同步串口。最高速率为fosc/2的波特率。 答 2: 最快的方法:可以以时钟的1/2进行发送。但是PD口不能做其他用,而且输出为PD0。
in temp,pinb
out portd,temp
ror temp
out portd,temp
ror temp
out portd,temp
ror temp
out portd,temp
ror temp
out portd,temp
ror temp
out portd,temp
ror temp
out portd,temp
ror temp
out portd,temp
ror temp
现在的做法是,测试该数据某位是否为1,如果是1置输出口为1,否则置0,这样做速度一般。
AVR中有个位数据传送数据,可惜只能是寄存器之间的传送,不能传送给I/O口。
请问那位朋友有更快的办法? 答 1: 如果用mega8,可以采用硬件同步串口。最高速率为fosc/2的波特率。 答 2: 最快的方法:可以以时钟的1/2进行发送。但是PD口不能做其他用,而且输出为PD0。
in temp,pinb
out portd,temp
ror temp
out portd,temp
ror temp
out portd,temp
ror temp
out portd,temp
ror temp
out portd,temp
ror temp
out portd,temp
ror temp
out portd,temp
ror temp
out portd,temp
ror temp
共2条
1/1 1 跳转至页
回复
我要赚赏金打赏帖 |
|
|---|---|
| 【S32K3学习整理】使用 LPUART 的loopback 模式实现核间通讯被打赏¥28元 | |
| arduinounoq原生zephyr环境搭建被打赏¥31元 | |
| 树莓派3+Klipper,MPU6050共振补偿被打赏¥41元 | |
| GroveCreatorKit套件+摇杆测评被打赏¥18元 | |
| 设备功耗web监控界面(ESP32C5)被打赏¥28元 | |
| OrangePiZero2W系统被打赏¥33元 | |
| Linux环境下以模拟方式快速实现出入管理功能测试被打赏¥24元 | |
| 树莓派3+Klipper,老3D打印机满血升级被打赏¥33元 | |
| OK1126B-S开发板下串口屏及其应用被打赏¥21元 | |
| 低功耗超声波液位测距仪(ESP32S3)被打赏¥27元 | |
我要赚赏金
