-
FM24CL04
c8051f020单片机控制铁电存储器FM24CL04的驱动程序,环境keil,汇编编写(C8051f020 SCM control FM24CL04 ferroelectric memory of the driver, c51 environment, compilation preparation)
- 2006-06-27 16:01:23下载
- 积分:1
-
交通灯循环 - 副本
说明: 实现普通交通等的控制,使用超声波增加了车流量的检测(To achieve the control of general traffic, the use of ultrasound increases the detection of traffic flow.)
- 2019-04-04 09:40:08下载
- 积分:1
-
stm32-usart-RS485-RS232
stm32的usart1和usart3配置为串口通信,均用中断实现串口接收。(stm32 usart1 and usart3 configured for serial communication, both with the serial port receive interrupt achieve.)
- 2014-09-05 16:22:08下载
- 积分:1
-
12864yejing
12864液晶显示,运行环境是AVR单片机。文件问一个工程,可行。(12864 LCD, the AVR microcontroller operating environment. File ask a project feasible.)
- 2011-10-01 16:25:56下载
- 积分:1
-
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
-
speed
采用霍尔传感器3020T,根据霍尔效应原理,在电机转轴边沿上放一永久磁钢,转轴附近放一个别3020T,当转轴旋转时,受磁钢的影响,霍地尔器件输出脉冲信号,送至单片机中断引脚,转速计数加1,单片机内部产生5s的定时,计算出1分钟的转速,送至显示单元,(Using Hall sensors 3020T, according to Hall-effect principle, the motor shaft of a permanent magnet placed on the edge, do not put a shaft near the 3020T, when the shaft rotates by magnet effect, HUO Di Seoul device output pulse signal, sent to microcontroller interrupt pin, speed count plus 1, the microcontroller internally generated timing 5s to calculate the speed of 1 minute, sent to the display unit,)
- 2010-12-18 22:35:31下载
- 积分:1
-
在Keil环境使用stm32F407写的带死区控制的互补PWM驱动
在Keil环境使用stm32F407写的带死区控制的互补PWM驱动,很适合做双路电机控制,这是一个完整的工程,可以直接编译使用(In complementary PWM Keil environment stm32F407 write with dead-time control of the drive, it is suitable for dual motor control, which is a complete project, can be directly compiled using)
- 2020-06-27 10:00:02下载
- 积分:1
-
AT12864
12864驱动程序(51串行)已通过检测,用时注意端口的定义(12864 Driver (51 serial))
- 2021-01-20 11:38:41下载
- 积分:1
-
硬件i2c
利用TI公司生产的ARM款单片机MSP432实现硬件I2C,具有更加强大的性能(ARM chip microcomputer MSP432 produced by TI company is used to realize hardware I2C, which has more powerful performance)
- 2020-06-21 19:00:02下载
- 积分:1
-
xitong
简单的LCD多级菜单显示,单片机C语言,在KEIL下运行。(Simple multi-level menu LCD display, single-chip C language, running under KEIL.)
- 2007-08-30 15:37:33下载
- 积分:1