CodeBus
www.codebus.net
Search
Sign in
Sign up
Hot Search :
Source
embeded
web
remote control
p2p
game
More...
Location :
Home
Search - light off
Main Category
SourceCode
Documents
Books
WEB Code
Develop Tools
Other resource
Search - light off - List
[
ARM-PowerPC-ColdFire-MIPS
]
UART_RVMDK
DL : 1
本源码为STM32的UART使用例程,主要测试UART1的功能。开发环境realviewMDK 程序运行前先打开串口调试软件,UART被配置为: 波特率:9600bps 字长 :8位 校验位:无 停止位:1位 程序正常运行,调试软件的数据接收区将显示ASCII码字符表中的‘0’到‘z’范围内的字符;同时开发板上的小灯LD3~LD6将会顺序点亮,然后顺序熄灭。-The source code for the STM32' s UART to use routines, the main test UART1 function. Open the serial port before running debugging software, UART is configured as follows: Baud Rate: 9600bps Word Length: 8 bits Parity: None Stop bit: 1-bit programs running, debugging software, data reception area will display characters in ASCII code table The ' 0 ' to' z ' within the scope of the characters while developing on-board a small light LD3 ~ LD6 will be the order of light, and then the order off.
Date
: 2025-12-29
Size
: 149kb
User
:
huangshengqun
[
ARM-PowerPC-ColdFire-MIPS
]
GPIO_INT
DL : 0
程序正常运行时,熄灭LED指示灯 当按键按下时·触发中断,点亮LED指示灯。按键放开后 又熄灭LED指示灯-Program during normal operation, off LED indicator when the button is pressed interrupt, lit LED lights. LED indicator light turns off after button release
Date
: 2025-12-29
Size
: 26kb
User
:
刘成
[
ARM-PowerPC-ColdFire-MIPS
]
Test-preparation-programs
DL : 0
1.试编写程序:INT0外部中断。P1口接8个LED,4个为一组,交替亮灭,当INT0出现低脉冲,响应中断,显示流水灯效果。 2.试编写程序:T0计数中断。P1口接8个LED,4个为一组,交替亮灭,当T0计数3次,响应中断,显示流水灯效果。 3.试编写程序: T0定时中断。P1口接8个LED,4个为一组,交替亮灭,当T0定时器定时3秒中断,显示流水灯效果。 -1. Test preparation programs: INT0 external interrupt. P1 port connected 8 LED, 4 in groups, alternating light off, when the INT0 low pulse occurs, the response disruption, showing water light effects. 2. Test preparation programs: T0 counter interrupt. P1 port connected 8 LED, 4 in groups, alternating light off, when the count of 3 times T0, response interruption, water light show effects. 3. Test preparation programs: T0 timer interrupt. P1 port connected 8 LED, 4 in groups, alternating light off, 3 seconds when the T0 timer interrupt timer, display light water effects.
Date
: 2025-12-29
Size
: 12kb
User
:
gaoyilang
[
ARM-PowerPC-ColdFire-MIPS
]
clalender
DL : 0
(1)利用EK3210B评估板上的4位米字LCD显示日历和时间信息,用按键切换显示内容。日期和时间信息利用电池供电的RTC模块和备份寄存器保存。 (2)需要显示的内容包括:年、月、日、时、分、秒。 (3)可以用按键当前修改日期和时间。修改过程中,修改的信息用闪烁表示;修改完成,显示内容不再闪烁。 (3)闹钟设定:按小时分钟(HHMM)设定闹钟,能关闭/启动闹钟。启动了闹钟时,要有所显示。闹钟定时到时,用4个LED发光管的10次亮灭,或蜂鸣器声音表示闹钟发生了。 (4)将上述内容同时经过串行通信口在PC的超级终端上实现(包括日期、日间信息显示、设定和闹钟设定)。 -(1) the use of EK3210B evaluation board 4 meters character LCD display the calendar and time information, with buttons to switch the display. Date and time information using the RTC module and battery-powered backup registers saved. (2) to display the content including: year, month, day, hour, minute and second. (3) can be modified with the key current date and time. Modify the process, modify the information, said with flashing change is made, the display no longer blinks. (3) alarm settings: by the hour minutes (HHMM) set the alarm, to shut down/start the clock. Start the clock, to be displayed. Alarm time to time, with four LED light tube 10 light off, or buzzer alarm sounds that occurred.
Date
: 2025-12-29
Size
: 552kb
User
:
feidan
[
ARM-PowerPC-ColdFire-MIPS
]
key-control-LED
DL : 0
按键控制LED亮灭 按KEY0 LED0亮,按KEY1 LED1亮 按KEY2 LED2亮 按KEY3 全灭-Key Control LED light off by KEY0 LED0 light, according to KEY1 LED1 lit by KEY2 LED2 lit by KEY3 Quanmie
Date
: 2025-12-29
Size
: 294kb
User
:
alex
[
ARM-PowerPC-ColdFire-MIPS
]
MAIN
DL : 0
用STM32F013RBT6单片机开发的学习例程,可以控制LED的亮灭,也可控制步进电机-MCU development with STM32F013RBT6 learning routines, you can control the LED light off, but also control the stepper motor
Date
: 2025-12-29
Size
: 1kb
User
:
du
[
ARM-PowerPC-ColdFire-MIPS
]
AVR_FlowLamp
DL : 0
C语言编写的AVR单片机跑马灯程序,通过轮循控制PortB口电平,实现LED发光二极管的点亮与熄灭,是掌握AVR单片机端口控制和练习C语言编程的非常不错的应用实例。-C language program AVR microcontroller Marquee, by round robin control PortB port level, the LED light emitting diode and off, is to master the control of the AVR port programming in C language and practice a very good application examples.
Date
: 2025-12-29
Size
: 10kb
User
:
xue200001
[
ARM-PowerPC-ColdFire-MIPS
]
timer_led
DL : 0
stm32 定时器例程,通过通用定时器驱动LED的亮灭时间-the stm32 timer routines, general-purpose timers drive the LED light off time
Date
: 2025-12-29
Size
: 720kb
User
:
huihui
[
ARM-PowerPC-ColdFire-MIPS
]
key
DL : 0
tiny6410 裸机按键控制led等亮灭,带中断-tiny6410 bare metal buttons control led, and other light off, with interrupt
Date
: 2025-12-29
Size
: 58kb
User
:
张博
[
ARM-PowerPC-ColdFire-MIPS
]
CCD_Test
DL : 0
流水灯的程序用来控制发光二级管的亮与灭是一种智能控制-On and off the program of light water is used to control the light-emitting diode is an intelligent control
Date
: 2025-12-29
Size
: 515kb
User
:
sky
[
ARM-PowerPC-ColdFire-MIPS
]
PIT_a_EXTI
DL : 0
K60的定时中断和外部中断,可以实现进入定时中断循环点亮2个LED灯,同时嵌入外部中断,控制LED亮灭-K60 the timer interrupt and external interrupt, lit two LED lights into the timer interrupt cycle, while embedding external interrupt control the LED light off
Date
: 2025-12-29
Size
: 2kb
User
:
戴敏
[
ARM-PowerPC-ColdFire-MIPS
]
STM32F103-GPIO
DL : 0
STM32F103 的控制GPIO口操作,控制LED指示灯的亮灭,,写1,写0-STM32F103 control GPIO port operation, control the LED light off, and write one, write 0
Date
: 2025-12-29
Size
: 3.31mb
User
:
jixiang
[
ARM-PowerPC-ColdFire-MIPS
]
led-traffic
DL : 0
初始状态两个路口的红灯全亮;之后东西路口的绿灯亮,南北路口的红灯亮,此时东西方向开始通车;延迟一段时间,东西路口的的绿灯灭,然后黄灯闪烁;闪烁若干次后东西路口的红灯亮,同时南北路口的绿灯亮,南北方向开始通车;延迟一段时间后,南北路口的的绿灯灭,然后黄灯闪烁;闪烁若干次后南北路口的红灯亮,同时东西路口的绿灯亮;反复上述过程-Initial state two junctions red light something after crossing the green light, red light intersection north and south, east-west direction at this time opened to traffic delay time, the intersection of the green stuff off, then flashing yellow light flashing number times things junction red light green light while north-south junction, north-south direction was opened delayed for some time after the north and south of the junction of the green light is off, then the yellow light flashes blink several times after crossing the red light north-south, while something green light intersection repeated the above process
Date
: 2025-12-29
Size
: 415kb
User
:
fengchao
[
ARM-PowerPC-ColdFire-MIPS
]
RTCclockPrj
DL : 0
基于STM32, 1、数码管或液晶显示时钟,显示时分即可,中间的两个发光管 3种模式:实时时钟(发光管秒闪),修改时钟(发光管灭), 设定闹钟(发光管亮);10秒未操作自动回到实时时钟显示; 2、采用RTC实时时钟功能,断电走时 3、四个按键切换显示模式和设定数值,功能定义分别为: Wake up模式键、KEY0右移、KEY1加1; 4、能同时用按键和红外遥控器修改时钟和设定闹钟, 遥控器要求能用数字键直接设置; 按键音和闹铃通过蜂鸣器或喇叭输出。 闹铃蜂鸣器最多响一分钟,按键可以关闭; 闹铃使能:实时时钟模式下按加1或减1键 5、利用单片机内部EEPROM保存闹钟时间,实现掉电保持功能; 6、遥控器的电源键可以使能数码管的显示,静音键使能按键声音。 -Based on STM32, 1, digital tube or LCD clock showing midnight to the middle of the two luminous tube 3 modes: real-time clock (LED second flash), modify the clock (LED off), set the alarm (LED light) 10 seconds is not operated automatically return to real-time clock display 2, using RTC real time clock function, power walking when three, four buttons to switch the display mode and set the value, the function defined as follows: Wake up mode key, KEY0 Right shift, KEY1 plus 1 4, simultaneously with the buttons and infrared remote control to modify the clock and set the alarm, the remote control requires numeric keys can be set directly key tones and alarm through the buzzer or speaker output. Alarm buzzer rang up to one minute, the key can be turned off Alarm Enable: real-time clock mode, press the plus one or minus one key 5, MCU internal EEPROM to save the alarm time, realize retentive function 6, remote control The power button can be enabled digital tube display, key sound mut
Date
: 2025-12-29
Size
: 1.42mb
User
:
jingcun
[
ARM-PowerPC-ColdFire-MIPS
]
GPIO
DL : 0
Keil基于LPC2138的程序设计与电路仿真 1. GPIO程序设计与电路仿真 使用P0.0~P0.7的输出功能来控制LED闪烁。采用灌电流的方式驱动LED,即输出低电平时控制LED点亮。 首先运用PINSEL0、PINSEL1寄存器设置所有引脚连接GPIO,使用IO0DIR寄存器设置P0.0~P0.7为控制输出口,运用IO0SET寄存器进行置位操作,通过使用while、for循环语句,同时调用延时程序,利用清零寄存器IO0CLR、置位寄存器IO0SET交替进行操作,驱动LED的亮灭。 -Keil LPC2138-based program design and circuit simulation 1. GPIO program design and circuit simulation using P0.0 ~ P0.7 output function to control LED flashes. Approach adopted Sink drive LED, which controls the LED lights when output low. First use PINSEL0, PINSEL1 register set all pin GPIO, use IO0DIR register setting P0.0 ~ P0.7 to control the output, use IO0SET register set operations, through the use of while, for loops, while calling delay procedure , the use of clear register IO0CLR, set registers operate alternately IO0SET to drive the LED light off.
Date
: 2025-12-29
Size
: 99kb
User
:
宋喜佳
[
ARM-PowerPC-ColdFire-MIPS
]
TIMER
DL : 0
6. 定时器程序设计与电路仿真 LPC2138微控制器具有两个32位定时器,分别具有4路捕获收入,4路匹配比较输出,定时器是增量计数的,但溢出时并不会使中断标志置位,而只能通过比较匹配或捕获输入产生中断标志。 定义LED的输出端口,设置所有的引脚连接,使用IO0DIR寄存器定义LED控制口的输出,初始化定时器0,设置定时器0的分频、比较值。等待定时时间到,清除中断标志,通过IO0SET、IO0CLR寄存器控制LED的亮灭。 -6 Timer program design and circuit simulation LPC2138 microcontroller has two 32-bit timers, each with 4 capture revenue, four matched comparison output, the timer count is incremental, but does not cause overflow interrupt flag is set, but only by compare match or input capture interrupt flag. Definition LED output ports, set all the pin connections, use IO0DIR Register Definition LED control output port, initialize the timer 0, set the timer 0 prescaler compare values. Wait regular time to clear the interrupt flag, through IO0SET, IO0CLR registers control the LED light off.
Date
: 2025-12-29
Size
: 137kb
User
:
宋喜佳
[
ARM-PowerPC-ColdFire-MIPS
]
Periodic32bitT0Ints_4F120
DL : 0
在特定时间内使用Timer0的32位周期模式中断,测量期间观察连接到PF3-1上的示波器或LED 在使用的色轮的时候,PF2端口上的蓝色LED有四个连续中断,然后关闭四个连续的中断。-Use Timer0 in 32-bit periodic mode to request interrupts at a particular period. oscilloscope or LED connected to PF3-1 for period measurement When using the color wheel, the blue LED on PF2 is on for four consecutive interrupts then off for four consecutive interrupts. Blue is off for: dark, red, yellow, green Blue is on for: light blue, blue, purple, white Therefore, the frequency of the pulse measured on PF2 is 1/8 of the frequency of the Timer0A interrupts.
Date
: 2025-12-29
Size
: 85kb
User
:
pierrefonds
[
ARM-PowerPC-ColdFire-MIPS
]
tiny6410_key_interrupt
DL : 0
开发环境为RVDS4.0,基于开发板Tiny6410,,按键控制led和beep,按键通过外部中断方式来控制;当按下K1,四个用户led显示为流水灯;当按下K2,led全灭;当按下K3,led全亮;当按下K4,beep响一声;-Development environment for RVDS4.0, based development board Tiny6410,, key control led and beep, buttons to control through external interrupt When you press K1, four user led display as water lights When you press K2, led all off When you press K3, led all light When you press K4, beep beep
Date
: 2025-12-29
Size
: 14kb
User
:
geng
[
ARM-PowerPC-ColdFire-MIPS
]
msp430g2553_led
DL : 0
msp430g2553简单的io口应用,利用输出寄存器改变io口输出状态,从而使LED0亮灭。-msp430g2553 simple io port applications to change the use of the output register io port output state, so that LED0 light off.
Date
: 2025-12-29
Size
: 17kb
User
:
魏中振
[
ARM-PowerPC-ColdFire-MIPS
]
source
DL : 0
按A模块的按键 -控制B模块的LED亮灭-Press the A button - control module B module LED light off
Date
: 2025-12-29
Size
: 17.03mb
User
:
wang
«
1
2
»
CodeBus
is one of the largest source code repositories on the Internet!
Contact us :
1999-2046
CodeBus
All Rights Reserved.