Slave computer address detection method in master-slave mode serial communication
An address detection and serial communication technology, applied in the field of slave address detection in master-slave serial communication, can solve the problem of sending, the host cannot actively detect the number of connected slaves and the slave address ID, etc. The effect of simplifying the communication interface circuit, strong practical application value, and increasing reliability and detectability
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0032] Set the operating clock frequency of the master to 4MHz, and the operating frequency of all slaves to 32768Hz. Other parameters are as follows:
[0033] time1=2ms
[0034] time2=4ms, all four stages are 1ms
[0035] time3=1ms
[0036] "firstscan" command for voltage waveform such as Figure 4 agreement
[0037] The voltage waveform of the "secondscan" command is as follows Figure 5 agreement
[0038] When the voltage difference between the two communication lines is less than 2 volts, it is the agreed "0" state, otherwise it is "1". Host output voltage > 4 volts; figure 2 The function of the internal level conversion part of the middle slave is to convert the >2 volt voltage output by the rectifier bridge into the high level of the CPU interface voltage of the slave machine, and vice versa to a low level. The internal circuit impedance of the machine connected to the communication line of the slave machine is low impedance. In this example, the electronic switc...
Embodiment 2
[0057] Set the operating clock frequency of the master to 4MHz, and the operating frequency of all slaves to 32768Hz. Other parameters are as follows:
[0058] time1=2ms
[0059] time2=4ms, the four stages are all 1ms
[0060] time3=1ms
[0061] "firstscan" command for voltage waveform such as Image 6 agreement
[0062] The voltage waveform of the "secondscan" command is as follows Figure 7 agreement
[0063] The voltage waveform of the "0" state of the two communication lines is agreed to be a 10KHz frequency signal, and the signal amplitude can be between 4 volts and 10 volts; the voltage waveform of the "1" state of the two communication lines is agreed to be a 20KHz frequency signal, and the signal amplitude Can be between 4 volts and 10 volts; image 3 The function of the internal filter conversion part of the middle slave is to filter the voltage signal output by the rectifier bridge with a frequency of 20K±4KHz and transform it into the high level of the slave C...
PUM
Login to View More Abstract
Description
Claims
Application Information
Login to View More 