搜索资源列表
UART0-communication
- C8051F系列单片机,此程序用UART0实现RS-232通信,运行前将TX0和P00 短接,RX0和P01短接,当接收到一个数据后,再将接收到的数据送出。
64x64LED.16字 LED点阵屏+DS1302电子钟 C 程序
- 16字 LED点阵屏+DS1302电子钟 C 程序 1 脚接+5V 2,3脚32768HZ晶振 4脚接地 5脚接S51的P02 6脚接S51的P01 7接S51的P00 8脚接后备电源,可以接老计算机主板上的3.6V电池,也可以通过二级管隔离接一个大容量电解电容 电压在2.5V以上即可维持 595连级输出数据,138行驱动 P1_0为时钟模式转换键、P2_1为时钟加键、P1_2为时钟减键、P2_3为时钟复位键。在对时钟调整时未对调整 项做闪烁处理,16-chara
P00
- 主要是做灯的程序,和风扇一起做控制作用 就是起到调节他的亮度-Lamp is mainly to do the procedure, and fan control to work together is to play a role in regulating the brightness of his
ds18b20
- #include<reg51.h> #include<absacc.h> #include<stdio.h> #include<math.h> #define uchar unsigned char #define uint unsigned int sbit P00=P0^0 sbit P01=P0^1 sbit P02=P0^2 sbit P03=P0^3 sbit P04=P0^4 sbi
P005E_Formular
- 输入两个整数m和n,及另一正整数k,计算m/n,结果精确到小数点后k位-Enter two integers m and n, and another positive integer k, calculated m/n, the result is accurate to k decimal places
UART0
- 此程序用UART0实现RS-232通信,运行前将TX0和P00 短接,RX0和P01短接,当接收到一个数据后,再将接收到的数据送出。-UART0 achieved with this procedure RS-232 communications, running before TX0 and P00 shorted, RX0 and P01 shorted, when a data is received, and then receives the data sent.
anjiansaomiao
- 按键扫描程序,上电时, 点亮P00口LED,操作室注意结对引脚-Key scanner, operating room pay attention to the pin junction
up51s005
- 按键扫描程序,上电时, 点亮P00口LED ,按下AN1时, LED向下移一位 , 按下AN2时, LED向上移一位-Scanner button, power on, the light P00 port LED, when pressed AN1, LED down 1 to press the AN2 time, LED move up a
dianzizhong
- 1 脚接+5V 2,3脚32768HZ晶振 4脚接地 5脚接S51的P02 6脚接S51的P01 7接S51的P00 8脚接后备电源,可以接老计算机主板上的3.6V电池,也可以通过二级管隔离接一个大容量电解电容 电压在2.5V以上即可维持 按键说明:1. 共三个键,低电平有效 2. P04 和 P05 同时按:初始化 3. P06 端口按键:选择要调整的项目 4. P05 端口按键:增加;P04端口按键:减少 [注:AT89S51使用12M晶振]-A pi
Ex26
- 程序功能:STC单片机,开机后,步进电机无动作;按一下s1键,电机正转,按下s2键,电机反转,按下s3键,电机不转 学习重点: 1、步进电机的控掣方法 2、多模块的交互 A组线圈对应 P00 B组线圈对应 P01 C组线圈对应 P02 D组线圈对应 P03-Program features: STC microcontroller, boot, stepper motor no action s1 button click, the motor is
led
- 按P01 LED向右移一位按P00 LED向左移一位连续按动按钮LED会不停的左移或右移 -By P01 LED P00 LED to the right one by pressing the button to the left a continuous LED will stop left or right
RS485
- 此程序用UART1外扩MAX485实现RS-485通信,运行前将TX1和P00 短接,RX1和P01短接,当接收到一个数据后,再将接收到的数据送出。-Expand this program in use UART1 MAX485 RS-485 communication, running before the TX1 and P00 short, short RX1 and P01, then the received data when the receiver to a data send.
Interrupts
- C8051F340单片机系统中断测试,P00和P01用作外部中断端口-C8051F340 SCM system interrupt test, P00 and P01 as an external interrupt port
PinChangeInt-master
- arduino的引脚是已经定义了的。如,我在51上模拟arduino的方式写的就是0是P00,27就是P27。然后用digitalWrite(0,HIGH)方法来让P00引脚置1。因为sbit类型的引脚位定义是不能作为参数传递的。(Arduino pins is already defined. For example, I wrote on the 51 of the method of simulation arduino is 0 is P00, 27 is P27. Then use d