a8259 可編程中斷控制 altera提供 The a8259 is designed to simplify the implementation of the interrupt interface in 8088 and 8086 based microcomputer systems. The device is known as a programmable interrupt controller. The a8259 receives and prioritizes up to 8 interrupts, and in the cascade mode, this can be expanded up to 64 interrupts. An asynchronous Reset and a clock input have been added to improve operation and reliability.
上傳時(shí)間: 2015-01-02
上傳用戶:panpanpan
三菱FX-PLC 的通訊協(xié)議參考(含有源碼):三菱FX 系列PLC 專用協(xié)議通信指令一覽FX 系列PLC 專用協(xié)議通信指令一覽以下將詳細(xì)列出PLC 專用協(xié)議通信的指令指令 注釋BR 以1 點(diǎn)為單位,讀出位元件的狀態(tài)WR 以16 點(diǎn)為單位,讀出位元件的狀態(tài),或以1 字為單位讀出字元件的值BW 以1 點(diǎn)為單位,寫入位元件的狀態(tài)WW 以16 點(diǎn)為單位,寫入位元件的狀態(tài)或以1 字為單位寫入值到字元件BT 以1 點(diǎn)為單位,SET/Reset 位元件WT 以16 點(diǎn)為單位,SET/Reset 位元件,或?qū)懭胫档阶衷R 控制PLC 運(yùn)行RUNRS 控制PLC 停止STOPPC 讀出PLC 設(shè)備類型TT 連接測試注:位元件包括X,Y,M,S 以及T,C 的線圈等字元件包括D,T,C,KnX,KnY,KnM 等。
標(biāo)簽: FX-PLC 三菱 通訊協(xié)議 有源
上傳時(shí)間: 2015-01-02
上傳用戶:gdgzhym
用途:測量地磁方向,測量物體靜止時(shí)候的方向,測量傳感器周圍磁力線的方向。注意,測量地磁時(shí)候容易受到周圍磁場影響,主芯片HMC5883 三軸磁阻傳感器特點(diǎn)(抄自網(wǎng)上): 1,數(shù)字量輸出:I2C 數(shù)字量輸出接口,設(shè)計(jì)使用非常方便。 2,尺寸小: 3x3x0.9mm LCC 封裝,適合大規(guī)模量產(chǎn)使用。 3,精度高:1-2 度,內(nèi)置12 位A/D,OFFSET, SET/Reset 電路,不會出現(xiàn)磁飽和現(xiàn)象,不會有累加誤差。 4,支持自動校準(zhǔn)程序,簡化使用步驟,終端產(chǎn)品使用非常方便。 5,內(nèi)置自測試電路,方便量產(chǎn)測試,無需增加額外昂貴的測試設(shè)備。 6,功耗低:供電電壓1.8V, 功耗睡眠模式-2.5uA 測量模式-0.6mA 連接方法: 只要連接VCC,GND,SDA,SDL 四條線。 Arduino GND -> HMC5883L GND Arduino 3.3V -> HMC5883L VCC Arduino A4 (SDA) -> HMC5883L SDA Arduino A5 (SCL) -> HMC5883L SCL (注意,接線是A4,A5,不是D4,D5) 源程序: #include <Wire.h> #include <HMC5883L.h> HMC5883Lcompass; voidsetup() { Serial.begin(9600); Wire.begin(); compass = HMC5883L(); compass.SetScale(1.3); compass.SetMeasurementMode(Measurement_Continuous); } voidloop() { MagnetometerRaw raw = compass.ReadRawAxis(); MagnetometerScaled scaled = compass.ReadScaledAxis(); float xHeading = atan2(scaled.YAxis, scaled.XAxis); float yHeading = atan2(scaled.ZAxis, scaled.XAxis); float zHeading = atan2(scaled.ZAxis, scaled.YAxis); if(xHeading < 0) xHeading += 2*PI; if(xHeading > 2*PI) xHeading -= 2*PI; if(yHeading < 0) yHeading += 2*PI; if(yHeading > 2*PI) yHeading -= 2*PI; if(zHeading < 0) zHeading += 2*PI; if(zHeading > 2*PI) zHeading -= 2*PI; float xDegrees = xHeading * 180/M_PI; float yDegrees = yHeading * 180/M_PI; float zDegrees = zHeading * 180/M_PI; Serial.print(xDegrees); Serial.print(","); Serial.print(yDegrees); Serial.print(","); Serial.print(zDegrees); Serial.println(";"); delay(100); }
標(biāo)簽: Arduino 5883L 5883 HMC
上傳時(shí)間: 2014-03-20
上傳用戶:tianyi223
/* *可以本機(jī)單打,本機(jī)雙打,聯(lián)機(jī)雙打 *用戶一的鍵盤控制為:up= key_up down= key_down left = key_left right = key_right * pause = key_space Reset = key_r *用戶二的鍵盤控制為:up = w down = s left = a right = d * pause = 1 Reset = 2 *@auther 張恩來 *@e-mail:zhang_elai@cvicse.com *聯(lián)機(jī)雙打時(shí),請先建立服務(wù)器端,然后建立客戶機(jī)端 **/
標(biāo)簽: key_right key_down key_left key_up
上傳時(shí)間: 2015-03-04
上傳用戶:大融融rr
This module can be used to interface to the MMC card in MMC or * SPI modes. It supports a multiple card environment. The Reset and * identification processes assume multiple cards on the bus. * In MMC mode, the card number is used as the RCA operand in the * commands.
標(biāo)簽: MMC interface multiple supports
上傳時(shí)間: 2014-01-07
上傳用戶:qilin
1、 利用8031作為主控制器組成一個(gè)電子跑表,采用4位LED顯示器。 2、 上電或Reset后能啟動顯示當(dāng)前(時(shí):分):首次上電復(fù)位顯示為0時(shí)0分,以后各次Reset均顯示正確的當(dāng)前時(shí)間。 3、 當(dāng)按下START鍵時(shí),作為跑表使用,顯示范圍是:000.0-999.9秒,當(dāng)按下STOP鍵時(shí),跑表停止運(yùn)行,并保留所停位置的時(shí)間顯示不變。 4、 利用H鍵作為時(shí)鐘校正,即當(dāng)按下H鍵時(shí),顯示的當(dāng)前小時(shí)值以每秒加一的速度遞增(24點(diǎn)即為0點(diǎn)),利用N鍵作為分校正,使用方法同H鍵,但60分鐘即為0分。
上傳時(shí)間: 2013-12-19
上傳用戶:ardager
設(shè)計(jì)一個(gè)模塊,從一個(gè)竄行數(shù)據(jù)流里檢測出碼流“11100”,這個(gè)模塊包括Reset,clk,datain及輸出端pmatch
標(biāo)簽: 模塊
上傳時(shí)間: 2015-04-18
上傳用戶:zhichenglu
VHDL 關(guān)于2DFFT設(shè)計(jì)程序 u scinode1 ∼ scinode9.vhd: Every SCI node RTL vhdl code. The details can be seen in the following section. u 2dfft.vhd: The top module includes these scinodes and form a 3x3 SCI Torus network, and it support these sub-modules scinode1∼ scinode9 Reset and clk and global_cnt signals to synchronous the sub-modules to simplify the overall design. u proj2.wfc: VSS simulation result that is the same as the ModelSim simulation result. u Pro2_2.wfc: VSS simulation result of another test pattern can’t cause overflow situation.
標(biāo)簽: scinode1 scinode details 2DFFT
上傳時(shí)間: 2014-12-02
上傳用戶:15071087253
c8051f020 實(shí)時(shí)時(shí)鐘模塊程序 內(nèi)含IIC模塊程序/********************** SYSTEM CLOCK 8M********************************/ extern unsigned char xdata currenttime[16]={0} extern unsigned char xdata settime[16]={ 0x00, // control regesiter 1 0x00, // control regesiter 2 0x01, //current second 0x19, //current minute 0x20, //current hour 0x29, //current data 0x04, //current week 0x07, //current month 0x05, //current year 0x00, // alarm value Reset 0x00, // alarm value Reset 0x00, // alarm value Reset 0x00, // alarm value Reset 0x00, // clk out disable 0x00, // close timer 0x00, } /*********************************************************************/ extern void Current_Time ( void ) extern void Set_Time ( void )
標(biāo)簽: c8051f020 SYSTEM CLOCK IIC
上傳時(shí)間: 2015-06-30
上傳用戶:edisonfather
his project was built and tested with WinAVR-20060125. Make sure the MCU target define in the Makefiles corresponds to the AVR you are using!! To build the code, just install WinAVR and run "make" from the console in echomaster and echoslave subdirs. "make program" will program the device if you have a AVRISP attached. Remember to set the AVR device to at least 8MHz. The AVR may use the programmable clock from MC1319x, just remember to check if the MC1319x and SPI communication is working FIRST! Otherwise you wont get any clock signal to the AVR and then you can t program it or Reset the fuses! The MC1319x has default clock output of 32kHz so you will have to set your programmer to a very low frequency (<=32kHz/4) to be able to program it while it is running on that!
標(biāo)簽: the 20060125 project WinAVR
上傳時(shí)間: 2014-10-10
上傳用戶:yan2267246
蟲蟲下載站版權(quán)所有 京ICP備2021023401號-1