linux 中斷和設(shè)備驅(qū)動(dòng) 本章介紹L i n u x內(nèi)核是如何維護(hù)它支持的文件系統(tǒng)中的文件的,我們先介紹 V F S ( Vi r t u a lFile System,虛擬文件系統(tǒng)),再解釋一下L i n u x內(nèi)核的真實(shí)文件系統(tǒng)是如何得到支持的。L i n u x的一個(gè)最重要特點(diǎn)就是它支持許多不同的文件系統(tǒng)。這使 L i n u x非常靈活,能夠與許多其他的操作系統(tǒng)共存。在寫(xiě)這本書(shū)的時(shí)候, L i n u x共支持1 5種文件系統(tǒng): e x t、 e x t 2、x i a、 m i n i x、 u m s d o s、 msdos 、v f a t、 p r o c、 s m b、 n c p、 i s o 9 6 6 0、 s y s v、 h p f s、 a ffs 和u f s。無(wú)疑隨著時(shí)間的推移,L i n u x支持的文件系統(tǒng)數(shù)還會(huì)增加。
標(biāo)簽: linux 中斷 設(shè)備驅(qū)動(dòng)
上傳時(shí)間: 2013-11-13
上傳用戶:zxh122
AT89C2051驅(qū)動(dòng)步進(jìn)電機(jī)的電路和源碼:AT89C2051驅(qū)動(dòng)步進(jìn)電機(jī)的電路和源碼 程序:stepper.c stepper.hex/* * STEPPER.C * sweeping stepper's rotor cw and cww 400 steps * Copyright (c) 1999 by W.Sirichote */#i nclude c:\mc5151io.h /* include i/o header file */ #i nclude c:\mc5151reg.hregister unsigned char j,flag1,temp; register unsigned int cw_n,ccw_n;unsigned char step[8]={0x80,0xc0,0x40,0x60,0x20,0x30,0x10,0x90} #define n 400/* flag1 mask byte 0x01 run cw() 0x02 run ccw() */main(){ flag1=0; serinit(9600); disable(); /* no need timer interrupt */ cw_n = n; /* initial step number for cw */ flag1 |=0x01; /* initial enable cw() */while(1){ { tick_wait(); /* wait for 10ms elapsed */energize(); /* round-robin execution the following tasks every 10ms */ cw(); ccw(); } }}cw(){ if((flag1&0x01)!=0) { cw_n--; /* decrement cw step number */ if (cw_n !=0) j++; /* if not zero increment index j */ else {flag1&=~0x01; /* disable cw() execution */ ccw_n = n; /* reload step number to ccw counter */ flag1 |=0x02; /* enable cww() execution */ } }
上傳時(shí)間: 2013-11-21
上傳用戶:boyaboy
EDA9060開(kāi)關(guān)量I/O 模塊在電氣控制柜中的典型應(yīng)用—— EDA9060結(jié)合交流接觸器實(shí)現(xiàn)遠(yuǎn)程控制EDA9060開(kāi)關(guān)量I/O模塊是山東力創(chuàng)科技自主研發(fā)的一款分布式DI/DO工控模塊,主要功能特點(diǎn):◎4路開(kāi)關(guān)量輸入,4路繼電器輸出。繼電器兩組常開(kāi)2觸點(diǎn),兩組常開(kāi)常閉3觸點(diǎn)。輸出觸點(diǎn)容量為8A 125VAC(5A 250VAC5A30VDC),由于觸點(diǎn)容量較大,可以直接用在很多的常見(jiàn)電氣控制電路中。輸出有兩種方式,一種電平式,一種脈沖式,可以靈活配置。◎標(biāo)準(zhǔn)的RS485接口,方便組網(wǎng),結(jié)合GPRS DTU無(wú)線模塊可以實(shí)現(xiàn)無(wú)線遠(yuǎn)程控制功能。◎靈活的協(xié)議,兼容研華協(xié)議,支持標(biāo)準(zhǔn)MODBUS RTU協(xié)議,方便上位機(jī)的系統(tǒng)組建。EDA9060在電氣控制柜中有著廣泛的應(yīng)用,通過(guò)增加EDA9060遠(yuǎn)程控制線路,改變了原來(lái)必須依靠人工到現(xiàn)場(chǎng)啟停電氣線路的狀況,實(shí)現(xiàn)無(wú)人值守,節(jié)省資源。線路改造主要通過(guò)EDA9060的繼電器輸出控制交流接觸器,從而實(shí)現(xiàn)遠(yuǎn)程控制現(xiàn)場(chǎng)用電設(shè)備(如常見(jiàn)的工業(yè)泵)的啟停。同時(shí)增加一個(gè)轉(zhuǎn)換開(kāi)關(guān),將手動(dòng)控制線路和EDA9060遠(yuǎn)程控制線路隔離開(kāi),以保證現(xiàn)場(chǎng)操作優(yōu)先的要求,同時(shí)增強(qiáng)操作的可靠性。下面以交流接觸器控制線路在220V電壓等級(jí)以內(nèi)的常見(jiàn)控制電路為例,簡(jiǎn)要說(shuō)明其控制過(guò)程,線路容量大的情況只需要通過(guò)增加合適容量的中間繼電器,擴(kuò)大EDA9060的觸點(diǎn)容量即可解決,示意圖:
標(biāo)簽: 9060 EDA 開(kāi)關(guān)量 典型
上傳時(shí)間: 2013-11-15
上傳用戶:robter
單片機(jī)I/O口的使用:對(duì)單片機(jī)的控制,其實(shí)就是對(duì)I/O口的控制,無(wú)論單片機(jī)對(duì)外界進(jìn)行何種控制,亦或接受外部的控制,都是通過(guò)I/O口進(jìn)行的。單片機(jī)總共有P0、P1、P2、P3四個(gè)8位雙向輸入輸出端口,每個(gè)端口都有鎖存器、輸出驅(qū)動(dòng)器和輸入緩沖器。4個(gè)I/O端口都能作輸入輸出口用,其中P0和P2通常用于對(duì)外部存儲(chǔ)器的訪問(wèn)。§4.1 MCS-51單片機(jī)的并行端口結(jié)構(gòu)與操作 51系列單片機(jī)有4個(gè)I/O端口,每個(gè)端口都是8位準(zhǔn)雙向口,共占32根引腳。每個(gè)端口都包括一個(gè)鎖存器(即專用寄存器P0~P3)、一個(gè)輸出驅(qū)動(dòng)器和輸入緩沖器。通常把4個(gè)端口籠統(tǒng)地表示為P0~P3。
標(biāo)簽: 單片機(jī)
上傳時(shí)間: 2013-11-06
上傳用戶:zhouxuepeng1
The PCA9539; PCA9539R is a 24-pin CMOS device that provides 16 bits of GeneralPurpose parallel Input/Output (GPIO) expansion with interrupt and reset forI2C-bus/SMBus applications and was developed to enhance the NXP Semiconductorsfamily of I2C-bus I/O expanders. I/O expanders provide a simple solution when additionalI/O is needed for ACPI power switches, sensors, push buttons, LEDs, fans, etc.
上傳時(shí)間: 2013-11-10
上傳用戶:ewtrwrtwe
The PCA9540B is a 1-of-2 bidirectional translating multiplexer, controlled via the I2C-bus.The SCL/SDA upstream pair fans out to two SCx/SDx downstream pairs, or channels.Only one SCx/SDx channel is selected at a time, determined by the contents of theprogrammable control register.
標(biāo)簽: 2channel 9540B 9540 mult
上傳時(shí)間: 2014-12-28
上傳用戶:nshark
The PCA9519 is a 4-channel level translating I2C-bus/SMBus repeater that enables theprocessor low voltage 2-wire serial bus to interface with standard I2C-bus or SMBus I/O.While retaining all the operating modes and features of the I2C-bus system during thelevel shifts, it also permits extension of the I2C-bus by providing bidirectional buffering forboth the data (SDA) and the clock (SCL) lines, thus enabling the I2C-bus or SMBusmaximum capacitance of 400 pF on the higher voltage side. The SDA and SCL pins areover-voltage tolerant and are high-impedance when the PCA9519 is unpowered.
標(biāo)簽: 4channel transla level 9519
上傳時(shí)間: 2013-11-19
上傳用戶:jisiwole
The PCA9541 is a 2-to-1 I2C-bus master selector designed for high reliability dual masterI2C-bus applications where system operation is required, even when one master fails orthe controller card is removed for maintenance. The two masters (for example, primaryand back-up) are located on separate I2C-buses that connect to the same downstreamI2C-bus slave devices. I2C-bus commands are sent by either I2C-bus master and are usedto select one master at a time. Either master at any time can gain control of the slavedevices if the other master is disabled or removed from the system. The failed master isisolated from the system and will not affect communication between the on-line masterand the slave devices on the downstream I2C-bus.
標(biāo)簽: master C-bus 9541 PCA
上傳時(shí)間: 2013-10-09
上傳用戶:3294322651
PCA9519 是一個(gè)4 通道的I2C 總線/SMBus 中繼器,可以實(shí)現(xiàn)將低電壓兩線串行總線接口的處理器與標(biāo)準(zhǔn)的I2C 總線或SMBus I/O 相連。該中繼器在電平轉(zhuǎn)換中保持I2C 總線系統(tǒng)所有的模式和特點(diǎn)的同時(shí),允許通過(guò)給數(shù)據(jù)總線(SDA)和時(shí)鐘總線(SCK)提供雙向緩沖區(qū)來(lái)擴(kuò)展I2C 總線,從而使I2C 總線或SMBus 在高電壓下最大容限電容為400PF。SDA 和SCL 引腳具有耐壓保護(hù)功能,當(dāng)PCA9519 掉電時(shí),均呈現(xiàn)出高阻抗特性。
標(biāo)簽: C-bus SMBus 9519 PCA
上傳時(shí)間: 2013-11-23
上傳用戶:brilliantchen
The PCA9542A is a 1-of-2 bidirectional translating multiplexer, controlled via the I2C-bus.The SCL/SDA upstream pair fans out to two SCx/SDx downstream pairs, or channels.Only one SCx/SDx channel is selected at a time, determined by the contents of theprogrammable control register. Two interrupt inputs, INT0 and INT1, one for each of theSCx/SDx downstream pairs, are provided. One interrupt output, INT, which acts as anAND of the two interrupt inputs, is provided.
標(biāo)簽: 2channel 9542A 9542 mult
上傳時(shí)間: 2013-12-07
上傳用戶:europa_lin
蟲(chóng)蟲(chóng)下載站版權(quán)所有 京ICP備2021023401號(hào)-1