Location:
Search - TCS2
Search list
Description: 51单片连tcs230的源程序,绝对原创,可以记忆颜色。
#define uchar unsigned char
#include <reg52.h>
#include<math.h>
sbit S0=P1^7
sbit S1=P1^0 //端口定义
sbit S2=P1^1
sbit S3=P1^2
sbit OE=P1^3
sbit OUT=P3^4 //频率从TO口输入
sbit key0=P1^5
sbit LED=P1^6
sbit a=P3^0
sbit b=P3^1
uchar color //1:blue 2:green 3:red
uchar T[4] //color timer
uchar TH[4]
uchar TL[4]
uchar bizhi[4]
void time1() interrupt 3
{
TH[color]=TH0
TL[color]=TL0
T[color]=(TH[color]*0xff+TL[color])
TR0=0 //关定时器
TR1=0
TH1=0xB1
TL1=0xE0 //归0
TH0=0x00
TL0=0x00 //归0
}-51 monolithic tcs230 even the source is absolutely original, you can remember the color.# Define uchar unsigned char# Include
Platform: |
Size: 1024 |
Author: 黄胜 |
Hits:
Description: 这是贪吃蛇小游戏中的一个文件,其功能在另外两个文件中应用-Snake game This is a document, and its function in a separate document, the application of two
Platform: |
Size: 2048 |
Author: 赵强 |
Hits:
Description: 可编程彩色光频转换器TCS230在61单片机上的应用-Programmable color optical frequency converter TCS230 at 61 on the application of single-chip microcomputer
Platform: |
Size: 273408 |
Author: liao |
Hits:
Description: 彩色传感器的程序 包括设置频率输出,滤波模式-Color sensors include setting the frequency of output filter mode
Platform: |
Size: 8192 |
Author: 王飞 |
Hits:
Description: TCS230颜色传感器,白平衡的调节,颜色的获取,滤波,比例因子的获得,都有详细解释,经测试通过。-TCS230 color sensor, white balance adjustment, color of the acquisition, filtering, scaling factor of the acquisition, has explained in detail by the test.
Platform: |
Size: 50176 |
Author: sjk |
Hits:
Description: 颜色传感器TCS230及其模块的相关资料和 原理图PCB图 实物图 测试C代码 汇编程序-TCS230 Color Sensor and module PCB related materials and schematic diagram physical map test C code assembler
Platform: |
Size: 2577408 |
Author: lanzhiten |
Hits: