登录
首页 » PDF » DS18B20_cn[1]

DS18B20_cn[1]

于 2010-03-21 发布 文件大小:1036KB
0 76
下载积分: 1 下载次数: 0

代码说明:

说明:  详尽介绍了ds18b20的用途,应用环境。(Ds18b20 detailed descriptions of the purpose, application environment.)

下载说明:请别用迅雷下载,失败请重下,重下不扣分!

发表评论

0 个回复

  • example6_TIM
    本例展示了如何设置TIM,用它来测量一个外部输入信号的频率和占空比。 TIM2时钟设置为72MHz,预分频设置为0,TIM2计数器时钟可表达为: TIM2 counter clock = TIMxCLK / (Prescaler +1) = 72 MHz,因此可测量的最小频率值为1100Hz。 设置TIM2工作在PWM输入模式(PWM Input Mode),把外部信号作为输入连接到TIM2通道2。 利用TIM2计数器中断来测量信号的频率和占空比。在TIM2_IRQHandler中,计算信号的频率和占空比,方法如下: 变量"Frequency"为由下式得到的外部信号频率: Frequency = TIM2 counter clock / TIM2_CCR2 单位Hz 变量"Duty_Cycle"为由下式得到的外部信号占空比: Duty_Cycle = (TIM2_CCR1*100)/(TIM2_CCR2) 单位 (This example shows how to set up the TIM, and use it to measure the frequency and duty cycle of an external input signal. TIM2 clock set to 72MHz and the prescaler is set to 0, TIM2 is counter clock can be expressed as: TIM2 is counter clock = TIMxCLK/(prescaler. Ppls1) = 72 MHz, the minimum measurable frequency value of 1100 Hz. Set TIM2 PWM input mode (PWM Input Mode), the external signal as an input connected to the the TIM2 Channel 2. TIM2 counter interrupt signal to measure frequency and duty cycle. Calculate the frequency and duty cycle of the signal in TIM2_IRQHandler as follows: variable " Frequency" on the grounds of the external signal frequency by the following formula: Frequency = TIM2 is counter clock/TIM2_CCR2 unit Hz variable Duty_Cycle " on the grounds of the following formula to get external duty cycle: Duty_Cycle = (TIM2_CCR1* 100)/(TIM2_CCR2) in )
    2012-05-18 18:28:47下载
    积分:1
  • SPI
    飞思卡尔8位单片机的SPI通信操作,简单明了,可以直接使用,也可以移植使用!(Freescale 8-bit microcontroller SPI communication operations, straightforward, and can be used directly, and also can be ported to use!)
    2013-03-13 15:43:42下载
    积分:1
  • kaven2
    功能非常强大的计算器,单片机飞思卡尔LCD屏幕显示,可以完成加减乘除还有括号运算(Very powerful calculator microcontroller Freescale LCD screen display, the completion of the addition, subtraction there brackets operator)
    2012-12-26 22:41:35下载
    积分:1
  • MPU6050 串口显示
    通过串口实时显示MOU6050数据,希望可以帮到大家(Real-time display of MOU6050 data through serial port, I hope it can help you.)
    2020-06-16 06:40:02下载
    积分:1
  • vscrecTw
    IN PSCAD THE DESING OF THE VARIABLE TYPE WIND FARM
    2014-04-03 14:33:20下载
    积分:1
  • 567222
    自定义数字键盘,IOS编程学习源码,很好的参考资料。(Custom digital keyboard, learning IOS programming source code, a good reference.)
    2013-12-05 09:10:35下载
    积分:1
  • ques3c
    Calculation of phase matched angles of BBO
    2014-06-04 23:11:15下载
    积分:1
  • STM32-MP3
    基于STM32的MP3音乐播放器设计,完整工程(STM32 MP3)
    2020-12-14 10:49:14下载
    积分:1
  • energy-meter
    使用LPC932制作的一款电表,程序注释详细,学习参考好资料,不可商业。(LPC932 produced using a meter, program notes in detail, with reference to good learning materials, non-commercial.)
    2014-01-02 22:49:47下载
    积分:1
  • W5200_TCPS
    STM32F103RBT6和W5200网络芯片的服务期端的测试程序,减少了很多不必要的设置,测试更方便(W5200 STM32F103RBT6 and end of service network chip testing procedures, to reduce a lot of unnecessary settings, the test is more convenient)
    2013-07-21 15:14:34下载
    积分:1
  • 696522资源总数
  • 104027会员总数
  • 45今日下载