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.
上傳時間: 2015-01-02
上傳用戶:panpanpan
三菱FX-PLC 的通訊協議參考(含有源碼):三菱FX 系列PLC 專用協議通信指令一覽FX 系列PLC 專用協議通信指令一覽以下將詳細列出PLC 專用協議通信的指令指令 注釋BR 以1 點為單位,讀出位元件的狀態WR 以16 點為單位,讀出位元件的狀態,或以1 字為單位讀出字元件的值BW 以1 點為單位,寫入位元件的狀態WW 以16 點為單位,寫入位元件的狀態或以1 字為單位寫入值到字元件BT 以1 點為單位,SET/RESET 位元件WT 以16 點為單位,SET/RESET 位元件,或寫入值到字元件RR 控制PLC 運行RUNRS 控制PLC 停止STOPPC 讀出PLC 設備類型TT 連接測試注:位元件包括X,Y,M,S 以及T,C 的線圈等字元件包括D,T,C,KnX,KnY,KnM 等。
上傳時間: 2015-01-02
上傳用戶:gdgzhym
用途:測量地磁方向,測量物體靜止時候的方向,測量傳感器周圍磁力線的方向。注意,測量地磁時候容易受到周圍磁場影響,主芯片HMC5883 三軸磁阻傳感器特點(抄自網上): 1,數字量輸出:I2C 數字量輸出接口,設計使用非常方便。 2,尺寸小: 3x3x0.9mm LCC 封裝,適合大規模量產使用。 3,精度高:1-2 度,內置12 位A/D,OFFSET, SET/RESET 電路,不會出現磁飽和現象,不會有累加誤差。 4,支持自動校準程序,簡化使用步驟,終端產品使用非常方便。 5,內置自測試電路,方便量產測試,無需增加額外昂貴的測試設備。 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); }
上傳時間: 2014-03-20
上傳用戶:tianyi223
/* *可以本機單打,本機雙打,聯機雙打 *用戶一的鍵盤控制為: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 *聯機雙打時,請先建立服務器端,然后建立客戶機端 **/
標簽: key_right key_down key_left key_up
上傳時間: 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.
標簽: MMC interface multiple supports
上傳時間: 2014-01-07
上傳用戶:qilin
1、 利用8031作為主控制器組成一個電子跑表,采用4位LED顯示器。 2、 上電或RESET后能啟動顯示當前(時:分):首次上電復位顯示為0時0分,以后各次RESET均顯示正確的當前時間。 3、 當按下START鍵時,作為跑表使用,顯示范圍是:000.0-999.9秒,當按下STOP鍵時,跑表停止運行,并保留所停位置的時間顯示不變。 4、 利用H鍵作為時鐘校正,即當按下H鍵時,顯示的當前小時值以每秒加一的速度遞增(24點即為0點),利用N鍵作為分校正,使用方法同H鍵,但60分鐘即為0分。
上傳時間: 2013-12-19
上傳用戶:ardager
設計一個模塊,從一個竄行數據流里檢測出碼流“11100”,這個模塊包括RESET,clk,datain及輸出端pmatch
標簽: 模塊
上傳時間: 2015-04-18
上傳用戶:zhichenglu
VHDL 關于2DFFT設計程序 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.
標簽: scinode1 scinode details 2DFFT
上傳時間: 2014-12-02
上傳用戶:15071087253
c8051f020 實時時鐘模塊程序 內含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 )
標簽: c8051f020 SYSTEM CLOCK IIC
上傳時間: 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!
標簽: the 20060125 project WinAVR
上傳時間: 2014-10-10
上傳用戶:yan2267246