搜索资源列表
EXAMPLE4.15
- PIC16887A单片机一个双机通信,2个单片机异步串行通信接口相连方式为:RX和TX交叉对接,左边的单片机U1,每按下按键S1就发送一个字节数,从0x20开始发送,每送一个数据,此数加1.发送的同时在D口上输出。右边单片机U2为接收状态,采用中断方式,如有接收中断,则进入中断,将接收到的数直接在D口上输出-PIC16887A a two-machine communications microcontroller, two asynchronous serial communication i
EXAMPLE4.16
- PIC16887A单片机单片机U1为主控发送,从动接收,U2为从动接收,产控发送的双机通信:开始时,由U1担任主控方,向从动方U2发送字符”hello!”,发送完毕并转为同步从动接收状态,如接收到的字符为”How are you?”则LED闪亮,通信结束.U2开始时被设置为同步从动接收状态,收到7个字符并确认接收的字符为”hello!”后,再转为主控发送方式,回送字符”How are you?”,进入LED闪亮状态,通信结束-U1 is the master SCM SCM PIC16887A
EXAMPLE4.17
- PIC16887A单片机主控发送接收,与从动接收发送的双机通信,和上例一样,不管接收还是发送U1始终为主控方,U2始终为从动方,过程和上例一样-PIC16887A master microcontroller sending and receiving, sending and receiving the double slave communication, and, like the example above, whether received or sent is always the
easy_spi
- avr单片机的spi协议,使用两块atmega16芯片做双机通信,结构简单,易于理解和学习。并且带protues仿真-avr microcontroller spi protocol, using two atmega16 do dual-chip communication, simple structure, easy to understand and learn. And simulation with protues
51-comunicate-DS18B20
- 以8951单片机为主的双机通信系统,传输的数据为ds18b20测量的温度数据-To 8951 microcontroller-based two-machine communication system, transmission of data to measure the temperature data ds18b20
zhongduan
- 用PIC单片机内部定时器0,作为16位定时器使用,并开启溢出中断。单片机的外部中断0引脚接开关SW2,并设置为下降沿的触发方式。单片机的UART接口工作于全双工异步模式,1个起始位,8个数据位,1个停止位,波特率为9600,并开启接收中断,与PC机通信。编写程序实现功能:SW2按键按下时,LCD上显示“Timer0 Start”, 定时器0开始工作,然后LCD上显示“Timer0 Working”,当UART接收到PC机发送的命令“P”时,定时器0停止工作,LCD上显示“Timer0 Stop”
chuangxing
- 配置CCP1模块使之工作于PWM模式,并初始化周期和占空比。单片机的UART接口工作于全双工异步模式,1个起始位,8个数据位,1个停止位,波特率为9600,并开启接收中断,与PC机通信。编写程序实现功能:当UART接收到命令“S”时,LCD上显示“PWM Start”, PWM开始工作。当UART接收到命令“U”时,占空比增加,当UART接收到命令“D”时,占空比减少,并在LCD上显示占空比。当UART接收到命令“P”时, PWM停止工作,LCD上显示“PWM Stop”。并用示波器观察PWM输
rcv
- PIC单片机双机串口通信程序,主频4Mhz,波特率9600BPS-Dual PIC microcontroller serial communication program, clocked 4Mhz, baud 9600BPS