Location:
![](/images/right.gif)
Search - _crol_
Search list
Description: c51中的intrins.h库函数
_crol_ 字符循环左移
_cror_ 字符循环右移
_irol_ 整数循环左移
_iror_ 整数循环右移
_lrol_ 长整数循环左移
_lror_ 长整数循环右移
_nop_ 空操作8051 NOP 指令
_testbit_ 测试并清零位8051 JBC 指令
Platform: |
Size: 794 |
Author: 极光 |
Hits:
Description: 单片机利用函数_crol_函数实现流水灯的控制
Platform: |
Size: 1001 |
Author: flyer |
Hits:
Description: c51中的intrins.h库函数
_crol_ 字符循环左移
_cror_ 字符循环右移
_irol_ 整数循环左移
_iror_ 整数循环右移
_lrol_ 长整数循环左移
_lror_ 长整数循环右移
_nop_ 空操作8051 NOP 指令
_testbit_ 测试并清零位8051 JBC 指令 -C51 in the library function intrins.h cycle _crol_ characters characters left _cror_ cycle shifted to right _irol_ the left circle _iror_ integer integer integer cycle shifted to right _lrol_ long cycle of the left circle _lror_ long integer _nop_ air operation shifted to right 8051 NOP instructions _testbit_ tested and cleared 8051 JBC-bit instruction
Platform: |
Size: 1024 |
Author: 极光 |
Hits:
Description: 单片机利用函数_crol_函数实现流水灯的控制-Singlechip _crol_ function realize the use of function water control lights
Platform: |
Size: 1024 |
Author: flyer |
Hits:
Description:
Platform: |
Size: 1024 |
Author: 李帅 |
Hits:
Description: 间隔300ms第一次一个管亮,第二次两个管亮,依次到8个管亮,之后,第一次最后一个管亮,第二次倒数两个管亮,然后重复整个过程。注意<<与——_crol_的却别!-300ms interval of a first light pipe, the second two tube-liang, followed by the 8 tube light, after the first possession of the last light, the second countdown to two tube light, and then repeat the whole process. Note < < and- _crol_ but do not!
Platform: |
Size: 8192 |
Author: hao |
Hits:
Description: 间隔一定时间,第一次一个管亮流动一次(注意每个都要流动一次),第二次两个管亮流动,依次到8个管亮,之后,第一次最后一个管亮,第二次倒数两个管亮,然后重复整个过程。<<与_crol_的综合应用-A certain time interval, a first movement of a light tube (Note that each should flow once), and the second two tube light flows, followed by the eight tube-liang, after the first possession of the last light, the second countdown two tube light, and then repeat the whole process. < < And the General Application _crol_
Platform: |
Size: 12288 |
Author: hao |
Hits:
Description: _crol_演示及条件11111单片机 -_crol_ demonstration and conditions of the 11111 MCU MCU
Platform: |
Size: 36864 |
Author: 大卫 |
Hits:
Description: 取键值程序 功能:等待键入,并刷新显示,并返回键值放 A 占用: PSW,A,DPTR,R0,R2,R3,R4,R6,R7 入口:无 出口: A ORG 0190H WAT_KB: MOV R0,#3FH WAT_0: ACALL DISP_0 刷新显示器 ACALL T_KB JZ WAT_0 无键 , 循环 ACALL KEY_LD 延时消抖-#include<reg51.h>
#include<intrins.h>
#define uchar unsigned char
#define uint unsigned int
sbit SDA=P1^0
sbit CLK=P1^1
sbit P1_2=P1^2
uchar checkKey[8] ={1,2,4,8,16,32,64,128}
code uchar Table[10]={0x3f,0x06,0x5b,0x4f,0x66,0x6d,0x7d,0x07,0x7f,0x6f}
void delay()
{
uint i
for(i=0 i<=500 i++)
}
void send(uchar a)
{
uchar i
for(i=0 i<8 i++)
{
if(_crol_(a,i)&0x80)
SDA=1
else
SDA=0
CLK=0
CLK=1
}
}
void xianshi(uchar a)
{
uchar coun
uchar com=0xbf
coun=a 10
P1=0xff
send(~Table[coun])
P1=com
delay()
P1=0xff
}
int main(void)
{
uint i
uchar keyValue
while(1)
{
send(0x00)
if(P1_2 == 0)
{
for(i = 0 i <8 i++)
{
send(~checkKey[i])
if(P1_2 == 0)
{
keyValue = i
xianshi(keyValue)
break
}
}
}
}
}
Platform: |
Size: 1024 |
Author: lgp |
Hits:
Description: 8只LED左右来回点亮
程序利用循环移位函数_crol_和_cror_形成来回滚动的效果-8 LED light back and forth about
Platform: |
Size: 12053504 |
Author: 王荣志 |
Hits:
Description: 51单片机函数法流水灯循环左/右移函数(_crol_(a,b)_ 和 _cror_(a,b)_ 方法:把a中的值移动b位后返回值,包含文件为<intrins.h>)-51 MCU// function method light water cycle left/right shift function (_crol_ (a, b) _ and _cror_ (a, b) _ Method: mobile b-bit value in a return value that contains the file <intrins.h> )
Platform: |
Size: 18432 |
Author: RAINWOLF |
Hits:
Description: 利用_crol_命令对IO口实现循环左移函数流水灯,(FlashLED using the loop left shift function)
Platform: |
Size: 7168 |
Author: lh020604
|
Hits: