Location:
Search - 40khz at89s52
Search list
Description: 調試要求:
1.MCU:AT89S52芯片或AT89C52
2.晶振:12MHz
調試注意:
本程序不帶溫度補償
1.LCD1602液晶屏有顯示後,才接入超聲波模塊。
2.注意超聲波模塊電源的極性。不清楚請參好淘寶的電路圖
3.沒有選用頻率為12MHz晶振,用了別的頻率晶振,單片機定時器的測量值與發出的40KHz頻率脈衝不對。
4.使用者經常誤發出20KHZ脈衝當40KHZ脈衝。(40KHz頻率脈衝,週期25us,占空比為50 = 12.5us)
5.如果是用開發板調超聲波模塊,請檢查開發板上的電路是否與超聲波模塊的
控制腳復用了, 若復用了,請通過跳線分開發板上的電路。
6.如果使用的是萬用板,請確定單片機的復位電路和晶振電路是否正常,同時單片機的31腳(EA)記得
接高電平。-The debugging requirements: 1.MCU: AT89S52 chip AT89C52 2. Crystal: 12MHz debugging Note: the program without the temperature compensation 1.LCD1602 LCD display access ultrasonic module. Note ultrasonic module power supply polarity. Unclear please refer to the a good Taobao circuit diagram 3. Chosen frequency 12MHz crystal oscillator with a different frequency crystal, the microcontroller timer measurement values with the issue 40KHz frequency pulse is not right. Users often mistakenly issued 20KHZ pulse when 40KHZ pulse. (40KHz frequency pulse, cycle 25us, a duty cycle of 50 = 12.5us), 5. Tune with development board ultrasonic module, please check the development board circuit with the the ultrasonic module control pin multiplexing, Ruofu by jumper division developed the circuit board. 6 If you are using a wildcard board, to determine whether the microcontroller reset circuit and crystal oscillator circuit, microcontroller 31 feet (EA) remember to connect the high level
Platform: |
Size: 37888 |
Author: Poter |
Hits:
Description: 超声波测距完整程序、测距计算并实时显示等功能。具体实现过程是:单片机AT89S52产生40KHZ方波,启动单片机外部中断,单片机接收到中断后根据单片机的计算的时间x声速/2即为测量的距离。-Ultrasonic Ranging complete program, ranging calculation and real-time display. The concrete realization: the microcontroller AT89S52 40KHZ square wave is generated to start the external interrupt, time x speed of sound based on the calculation of the single-chip microcontroller received interrupt/2 is the measured distance.
Platform: |
Size: 26624 |
Author: www |
Hits:
Description: 1.MCU:AT89S52芯片或AT89C52
2.晶振:12MHz
本程序带温度补偿,采用DS18B20测量温度
1.LCD1602液晶屏有显示后,才接入超声波模块。
2.注意超声波模块电源的极性。不清楚请参好淘宝的电路图
3.没有选用频率为12MHz晶振,用了别的频率晶振,单片机定时器的测量值与
发出的40KHz频率脉冲不对。
4.使用者经常误发出20KHZ脉冲当40KHZ脉冲。(40KHz频率脉冲,周期25us,
占空比为50 = 12.5us)
5.如果是用开发板调超声波模块,请检查开发板上的电路是否与超声波模块的
控制脚复用了, 若复用了,请通过跳线分开发板上的电路。
6如果使用的是万用板,请确定单片机的复位电路和晶振电路是否正常,同时
单片机的31脚(EA)记得 接高电平。-1.MCU:AT89S52 chip or AT89C52
2: 12MHz crystal
This procedure with temperature compensation, temperature measurement using DS18B20
1.LCD1602 LCD display, ultrasonic module to access.
2 note the polarity ultrasonic module power supply. Not clear please reference the good Taobao circuit diagram
3 does not use frequency of 12MHz crystal, with other frequency oscillator, timer value and measurement
The frequency of 40KHz pulses emitted by the wrong.
4 user often mistakenly sent 20KHZ pulse when the 40KHZ pulse. (40KHz pulse frequency, cycle 25us,
The duty cycle is 50 = 12.5us)
5 if it is adjustable ultrasonic module development board, please check whether the circuit development board and the ultrasonic module
Control pin multiplexing, if reuse, please by jumper circuit development board.
6 if you are using a universal board, please make sure to reset circuit and oscillator circuit of MCU is normal, and at the same time
MCU 31 feet (EA) remember with the high level.
Platform: |
Size: 1888256 |
Author: 董熙科 |
Hits: