-
The MC68HC05K0 is a low cost, low pin Countsingle chip microcomputer with 504 bytes of userROM and 32 bytes of RAM. The MC68HC05K0 isa member of the 68HC05K series of devices whichare available in 16-pin DIL or SOIC packages.It uses the same CPU as the other devices in the68HC05 family and has the same instructions andregisters. Additionally, the device has a 15-stagemulti-function timer and 10 general purposebi-directional I/0 lines. A mask option is availablefor software programmable pull-downs on all ofthe I/O pins and four of the pins are capable ofgenerating interrupts.The device is ideally suited for remote-controlkeyboard applications because the pull-downs andthe interrupt drivers on the port pins allowkeyboards to be built without any externalcomponents except the keys themselves. There isno need for external pull-up or pull-down resistors,or diodes for wired-OR interrupts, as these featuresare already designed into the device.
標(biāo)簽:
Infra-red
Remote
Cont
05K
上傳時(shí)間:
2014-01-24
上傳用戶:zl5712176
-
#include <reg51.h>#include<intrins.h>
#define BUSY1 (DQ1==0) sbit DQ1 = P0^4;
unsigned char idata TMP; unsigned char idata TMP_d; unsigned char f; void wr_ds18_1(char dat);unsigned char rd_ds18_1();
/***************延時(shí)程序,單位us,大于10us*************/void time_delay(unsigned char time){ time=time-10; time=time/6; while(time!=0)time--;}
/*****************************************************//* reset ds18b20 *//*****************************************************/void ds_reset_1(void){ unsigned char idata Count=0; DQ1=0; time_delay(240); time_delay(240); DQ1=1; return;}
標(biāo)簽:
18b20
C51
芯片
溫度測量
上傳時(shí)間:
2013-10-29
上傳用戶:sssnaxie
-
This application note shows how to achieve low-cost, efficient serial configuration for Spartan FPGA designs. The approachrecommended here takes advantage of unused resources in a design, thereby reducing the cost, part Count, memory size,and board space associated with the serial configuration circuitry. As a result, neither processor nor PROM needs to be fullydedicated to performing Spartan configuration.In particular, information is provided on how the idle processing time of an on-board controller can be used to loadconfiguration data from an off-board source. As a result, it is possible to upgrade a Spartan design in the field by sending thebitstream over a network.
標(biāo)簽:
Spartan
XAPP
FPGA
098
上傳時(shí)間:
2014-08-16
上傳用戶:adada
-
多遠(yuǎn)程二極管溫度傳感器-Design Considerations for pc thermal management
Multiple RDTS (remote diode temperature sensing) provides the most accurate method of sensing an IC’s junction temperature. It overcomes thermal gradient and placement issues enCountered when trying to place external sensors. PCB component Count decreases when using a device that provides multiple inputs.Better temperature sensing improves product performance and reliability. Disk drive data integrity suffers at elevated temperatures. IBM published an article stating that a 5°C rise in operating temperature causes a 15% increase in the drive’s failure rate. The overall performance of a system can be improved by providing a more accurate temperature measurement of the most critical devices allowing them to run just a few degrees hotter.The LM83 directly senses its own temperature and the temperature of three external PN junctions. One is dedicated to the CPU of choice, the other two go to other parts of your system that need thermal monitoring such as the disk drive or graphics chip. The SMBus-compatible LM83 supports SMBus timeout and logic levels. The LM83 has two interrupt outputs; one for user-programmable limits and WATCHDOG capability (INT), the other is a Critical Temperature Alarm output (T_CRIT_A) for system power supply shutdown.
標(biāo)簽:
Considerat
Design
遠(yuǎn)程
二極管
上傳時(shí)間:
2014-12-21
上傳用戶:ljd123456
-
Abstract: With industrial/scientific/medical (ISM) band radio frequency (RF) products, often times users are new to the structure of Maxim's low pin-Count transmitters andfully integrated superheterodyne receivers. This tutorial provides simple steps that can be taken to get the best performance out of these transmitters and receivers whileproviding techniques to measure the overall capability of the design.
標(biāo)簽:
ISM
RF
無線電頻率
上傳時(shí)間:
2013-11-02
上傳用戶:yph853211
-
溫濕度傳感器 sht11 仿真程序
sbit out =P3^0; //加熱口
//sbit input =P1^1;//檢測口
//sbit speek =P2^0;//報(bào)警
sbit clo =P3^7;//時(shí)鐘
sbit ST =P3^5;//開始
sbit EOC =P3^6;//成功信號
sbit gwei =P3^4;//個(gè)位
sbit swei =P3^3;//十位
sbit bwei =P3^2;//百位
sbit qwei =P3^1;//千位
sbit speak =P0^0;//報(bào)警音
sbit bjled =P0^1;//報(bào)警燈
sbit zcled =P0^2;//正常LED
int Count;
uchar xianzhi;//取轉(zhuǎn)換結(jié)果
uchar seth;//高時(shí)間
uchar setl;//低時(shí)間
uchar seth_mi;//高時(shí)間
uchar setl_mi;//低時(shí)間
bit hlbz;//高低標(biāo)志
bit clbz;
bit spbz;
///定時(shí)中斷程序///
void t0 (void) interrupt 1 using 0
{
TH0=(65536-200)/256;//5ms*200=1000ms=1s
TL0=(65536-200)%256;
clo=!clo;//產(chǎn)生時(shí)鐘
if(Count>5000)
{
if(hlbz)
{
if(seth_mi==0){seth_mi=seth;hlbz=0;out=0;}
else seth_mi--;
}
if(!hlbz)
{
if(setl_mi==0){setl_mi=setl;hlbz=1;out=1;}
else setl_mi--;
}
Count=0;
}
else Count++;
}
/////////////
///////延時(shí)///////
delay(int i)
{
while(--i);
}
///////顯示處理///////
xianshi()
{
int abcd=0;
int i;
for (i=0;i<5;i++)
{
abcd=xianzhi;
gwei=1;
swei=1;
bwei=1;
qwei=1;
P1=dispcode[abcd/1000];
qwei=0;
delay(70);
qwei=1;
abcd=abcd%1000;
P1=dispcode[abcd/100];
bwei=0;
delay(70);
bwei=1;
abcd=abcd%100;
P1=dispcode[abcd/10];
swei=0;
delay(70);
swei=1;
abcd=abcd%10;
P1=dispcode[abcd];
gwei=0;
delay(70);
gwei=1;
}
}
doing()
{
if(xianzhi>100)
{bjled=0;speak=1;zcled=1;}
else {bjled=1;speak=0;zcled=0;}
}
void main(void)
{
seth=60;//h60秒
setl=90;//l90秒
seth_mi=60;//h60秒
setl_mi=90;//l90秒
TMOD=0X01;//定時(shí)0 16位工作模式
TH0=(65536-200)/256;
TL0=(65536-200)%256;
TR0=1; //開始計(jì)時(shí)
ET0=1; //開定時(shí)0中斷
EA=1; //開全中斷
while(1)
{
ST=0;
_nop_();
ST=1;
_nop_();
ST=0;
// EOC=0;
xianshi();
while(!EOC)
{
xianshi();
}
xianzhi=P2;
xianshi();
doing();
}
}
標(biāo)簽:
sht
11
溫濕度傳感器
仿真程序
上傳時(shí)間:
2013-11-07
上傳用戶:我們的船長
-
This application note shows how to achieve low-cost, efficient serial configuration for Spartan FPGA designs. The approachrecommended here takes advantage of unused resources in a design, thereby reducing the cost, part Count, memory size,and board space associated with the serial configuration circuitry. As a result, neither processor nor PROM needs to be fullydedicated to performing Spartan configuration.In particular, information is provided on how the idle processing time of an on-board controller can be used to loadconfiguration data from an off-board source. As a result, it is possible to upgrade a Spartan design in the field by sending thebitstream over a network.
標(biāo)簽:
Spartan
XAPP
FPGA
098
上傳時(shí)間:
2013-11-01
上傳用戶:wojiaohs
-
溫濕度傳感器 sht11 仿真程序
sbit out =P3^0; //加熱口
//sbit input =P1^1;//檢測口
//sbit speek =P2^0;//報(bào)警
sbit clo =P3^7;//時(shí)鐘
sbit ST =P3^5;//開始
sbit EOC =P3^6;//成功信號
sbit gwei =P3^4;//個(gè)位
sbit swei =P3^3;//十位
sbit bwei =P3^2;//百位
sbit qwei =P3^1;//千位
sbit speak =P0^0;//報(bào)警音
sbit bjled =P0^1;//報(bào)警燈
sbit zcled =P0^2;//正常LED
int Count;
uchar xianzhi;//取轉(zhuǎn)換結(jié)果
uchar seth;//高時(shí)間
uchar setl;//低時(shí)間
uchar seth_mi;//高時(shí)間
uchar setl_mi;//低時(shí)間
bit hlbz;//高低標(biāo)志
bit clbz;
bit spbz;
///定時(shí)中斷程序///
void t0 (void) interrupt 1 using 0
{
TH0=(65536-200)/256;//5ms*200=1000ms=1s
TL0=(65536-200)%256;
clo=!clo;//產(chǎn)生時(shí)鐘
if(Count>5000)
{
if(hlbz)
{
if(seth_mi==0){seth_mi=seth;hlbz=0;out=0;}
else seth_mi--;
}
if(!hlbz)
{
if(setl_mi==0){setl_mi=setl;hlbz=1;out=1;}
else setl_mi--;
}
Count=0;
}
else Count++;
}
/////////////
///////延時(shí)///////
delay(int i)
{
while(--i);
}
///////顯示處理///////
xianshi()
{
int abcd=0;
int i;
for (i=0;i<5;i++)
{
abcd=xianzhi;
gwei=1;
swei=1;
bwei=1;
qwei=1;
P1=dispcode[abcd/1000];
qwei=0;
delay(70);
qwei=1;
abcd=abcd%1000;
P1=dispcode[abcd/100];
bwei=0;
delay(70);
bwei=1;
abcd=abcd%100;
P1=dispcode[abcd/10];
swei=0;
delay(70);
swei=1;
abcd=abcd%10;
P1=dispcode[abcd];
gwei=0;
delay(70);
gwei=1;
}
}
doing()
{
if(xianzhi>100)
{bjled=0;speak=1;zcled=1;}
else {bjled=1;speak=0;zcled=0;}
}
void main(void)
{
seth=60;//h60秒
setl=90;//l90秒
seth_mi=60;//h60秒
setl_mi=90;//l90秒
TMOD=0X01;//定時(shí)0 16位工作模式
TH0=(65536-200)/256;
TL0=(65536-200)%256;
TR0=1; //開始計(jì)時(shí)
ET0=1; //開定時(shí)0中斷
EA=1; //開全中斷
while(1)
{
ST=0;
_nop_();
ST=1;
_nop_();
ST=0;
// EOC=0;
xianshi();
while(!EOC)
{
xianshi();
}
xianzhi=P2;
xianshi();
doing();
}
}
標(biāo)簽:
sht
11
溫濕度傳感器
仿真程序
上傳時(shí)間:
2013-10-16
上傳用戶:黃蛋的蛋黃
-
迅捷簡易網(wǎng)頁計(jì)數(shù)器 Ver2.0
一.系統(tǒng)要求:
ASP+ACCESS
二.程序主要功能:
簡單的頁面計(jì)數(shù)功能。
三.使用方法
1. 上傳全部文件;
2. 用記事本打開setup.asp更改程序按裝路徑;
3. 將 下面的代碼添加到需要計(jì)數(shù)的網(wǎng)頁,
<script language="javascript" src="Count.asp"></script>
其中Count.asp應(yīng)改為計(jì)數(shù)文件的實(shí)際路徑。
四.文件說明
Count.asp 計(jì)數(shù)器主文件.
Count.mdb ACCESS數(shù)據(jù)庫.
index.asp 計(jì)數(shù)器測試文件.
標(biāo)簽:
ACCESS
Ver
2.0
ASP
上傳時(shí)間:
2014-01-09
上傳用戶:LIKE
-
【功能】
1:多用戶統(tǒng)計(jì)系統(tǒng),防止刷新,速度快,適用廣泛
2:綜合統(tǒng)計(jì),最近訪問,地區(qū)分析,地址分析,屏幕大小,來訪頁面,訪問次數(shù),操作系統(tǒng),當(dāng)前在線,IP地址,瀏覽器,年報(bào)表,月報(bào)表,周報(bào)表,歷史報(bào)表,日報(bào)表等
3:可以精確的跟蹤統(tǒng)計(jì)每一位來訪者的IP與在線時(shí)間-同一IP在線每隔5分鐘才能增加一個(gè)計(jì)數(shù)(你也可以修改時(shí)間,在stat.jsp頁你把ExTime改為你想要的時(shí)間,即 int ExTime=5 )。
4:提供詳細(xì)IP數(shù)據(jù)包,讓你清楚的知道來訪者是來是何方。
最好的是它時(shí)時(shí)性,你可以監(jiān)控道現(xiàn)在有誰在瀏覽你的網(wǎng)站,瀏覽你的那個(gè)欄目
【系統(tǒng)配置】
先將此目錄下的“feng”目錄拷貝到你的虛擬目錄下的:\\WEB-INF\classes\下。
本系統(tǒng)這里使用的ACCESS數(shù)據(jù)數(shù)據(jù)庫。
數(shù)據(jù)源名稱:Count,用戶名:admin,密碼:admin (也可以改變jdbc.java 文件的代碼,然后編譯)。
數(shù)據(jù)庫為: Count.mdb
編寫環(huán)境: win2000+j2sdk1.4.0_02+tomcat4.0
測試頁面: test.jsp(你可以看看統(tǒng)計(jì)的效果)
標(biāo)簽:
多用
統(tǒng)計(jì)系統(tǒng)
上傳時(shí)間:
2014-01-27
上傳用戶:star_in_rain