-
PWM-ULN2003A
利用ULN2003A进行驱动,产生PWM波,里边有照片,可供参考,通过本例程了解PWM 的基本原理和使用 (#include <reg52.h>
unsigned char timer1
sbit PWM=P1^2
void system_Ini()
{
TMOD|= 0x11
//PWM
TH1 = 0xfe //11.0592
TL1 = 0x33
TR1 = 1
IE =0x8A
}
main()
{
system_Ini()
while(1)
{ if(timer1>100) timer1=0
if(timer1<30) PWM=0
else PWM=1
}
)
- 2013-11-21 15:17:25下载
- 积分:1
-
chuankou-aPC
串口与pc机通讯,51单片机例程,只需要修改io口即可实现。(Serial communication with pc, 51 MCU routine, you only need to modify the io port can be realized.)
- 2013-08-04 16:51:41下载
- 积分:1
-
fengimngqi
基于51单片机的简单c语言小程序,用于蜂鸣器的测试等(Based on 51 single simple small c language program for testing the buzzer)
- 2014-07-28 11:16:31下载
- 积分:1
-
smart-car
在淘宝上购买的毕业论文,价值400的源程序,包含全部文件。一款基于单片机的灭火机器人模型的设计。系统以STC89C52RC单片机为控制核心,创新自制了火焰传感器用来测量火源,使用TCRT5000型光电对管检测循迹黑线,L298驱动电机前后转动,LCD1602液晶显示灭火的次数,通过控制继电器开关风扇灭火。(On Taobao buy thesis, the value of the 400 source code, including all documents. Fire fighting robot model based on a single-chip design. System microcontroller STC89C52RC to control core, innovation homemade flame sensor is used to measure the fire source, tracking black line on the tube use TCRT5000 photoelectric detection, L298 drive motor rotating back and forth, the LCD1602 LCD number of fire-fighting, fire control relay switch fan .)
- 2013-05-16 18:52:49下载
- 积分:1
-
ADC
【AVR + Proteus】数码管显示两路AD转换结果([AVR+ Proteus] digital display two way AD conversion result)
- 2013-09-26 08:16:17下载
- 积分:1
-
MCB_SOR_1.0
固高运动控制卡源代码,内容详细,对入门运动控制的朋友非常有用。(gugao motion control card system source code, detailed content on the entry of the control of the movement of a friend is very helpful)
- 2020-09-10 21:28:02下载
- 积分:1
-
MINISTM32-SPI
STM32 SPI程序 感觉还不错 大家可以试试看(STM32 SPI program I feel pretty good we can give it a try)
- 2012-11-29 16:27:07下载
- 积分:1
-
sd.mcp_0_backup
编写的飞思卡尔的sd卡读写程序,可以完成对sd卡的扇区读写,效率高,执行速度快(Writing the freescale sd card reading and writing program, can complete the sd card to the sector, speaking, reading and writing, high efficiency, the execution speed)
- 2011-12-03 21:49:34下载
- 积分:1
-
111111111222
zigbee cc2530无线数据接受与发送,以外接传感器MQ-2酒精传感器为例,内置协议栈,直接下载就行,IAR版本为8.1(zigbee cc2530 wireless data accepted and sent to the external sensor MQ-2 alcohol sensor, for example, the built-in protocol stack, the direct download on the line)
- 2021-01-03 22:48:55下载
- 积分:1
-
test
用stm32单片机进行pwm输出和ADC设置(USE STM32 MCU OUT PUT PWM WAVE AND ADC)
- 2014-07-14 22:00:54下载
- 积分:1