本驅(qū)動程序在linux2.6.17中測試通過。yangxing msn:lelma_yx@hotmail.com 希望對SPI操作的朋友有所幫助。 一、工作方式: 從設(shè)備:SPI為MASTER模式 S3C2410:SPI為SLAVE模式+DMA 二、工作流程 1.S3C2410從接收:當(dāng)從設(shè)備發(fā)送數(shù)據(jù)時,S3C2410利用DMA方式收數(shù),收到指定長度的數(shù)據(jù),則進入DMA中斷,將接收的數(shù)據(jù)拷出。 2.S3C2410從發(fā)送:當(dāng)S3C2410需要發(fā)送,首先由RTS請求發(fā)送,然后等待從設(shè)備應(yīng)答CTS,當(dāng)從設(shè)備應(yīng)答CTS時,進入外部中斷,啟動DMA發(fā)送,發(fā)送完成,再次進入從接收狀態(tài)。 三、文件位置 spi_dma_slave.c spi_dma_slave.h circular_buf.c circular_buf.h 等文件存放入driver/char/目錄 dma.c存放于arch/arm/mach-s3c2410/目錄 dma.h存放于include/arm-asm/mach-s3c2410/目錄 四、使用環(huán)境 1.arm-linux-gcc-3.4.1
標(biāo)簽: SPI lelma_yx yangxing hotmail
上傳時間: 2015-08-11
上傳用戶:徐孺
A complete set of bit banged, software driven I2C routines I created for any PIC device - and they work!! These functions are single master only functions, and are ideal for communicating with things like EEPROMs, LCD Drivers, ADC Converters etc
標(biāo)簽: complete routines software created
上傳時間: 2013-12-17
上傳用戶:王小奇
一般我們要根據(jù)數(shù)據(jù)庫的紀(jì)錄變化時,進行某種操作。我們習(xí)慣的操作方式是在程序中不停的查詢表,判斷是否有新紀(jì)錄。這樣耗費的資源就很高,如何提高這種效率,我想在表中創(chuàng)建觸發(fā)器,在觸發(fā)器中調(diào)用外部動態(tài)連接庫通過消息或事件通知應(yīng)用程序就可實現(xiàn)。而master的存儲過程中最好能調(diào)用外部的動態(tài)連接庫,我們在觸發(fā)器中調(diào)用master的存儲過程即可。本文提供了動態(tài)庫與存儲過程的具體實現(xiàn)
標(biāo)簽: 數(shù)據(jù)庫 變化
上傳時間: 2015-09-28
上傳用戶:rocketrevenge
可以支持連續(xù)讀寫的i2cslave源碼,很適合作為master的testbench來用
上傳時間: 2014-01-18
上傳用戶:dapangxie
本程序是在網(wǎng)友vagrant的升級程序上增加了SQL數(shù)據(jù)庫的更新升級功能,系統(tǒng)中采用了ACCES來存儲數(shù)據(jù)更新的指令,從而達到逐步執(zhí)行SQL代碼的功能,因為在SQL中要創(chuàng)建表、存儲過程、視圖等對象時,需要刪除原有老的對象,但是SQL不支持將這些指令存放在一起,從而導(dǎo)致出錯。所以用ACCES來存儲數(shù)據(jù)了 例中將在MASTER中創(chuàng)建p_killspid,該程序過程是用來恢復(fù)與備份數(shù)據(jù)的一部分。 MENTOROUSER.INI為數(shù)據(jù)服務(wù)地址,曾經(jīng)有網(wǎng)友問過我如何做服務(wù)登錄的系統(tǒng),此文件是個關(guān)鍵,具體的連接請參考代碼 SQLTEXT.MDB為數(shù)據(jù)庫更新用的文件,請自行修改記錄,但是記錄先后順序一定要根據(jù)指令的先后順序來添加。 mentoro.htm為存放在網(wǎng)站上的文件,具體內(nèi)容自已改吧。(您也可以用INI文件) CHIS.INI為更新配置文件
標(biāo)簽: vagrant SQL 程序 數(shù)據(jù)庫
上傳時間: 2015-11-13
上傳用戶:yxgi5
jsf做的增刪改的例子,比較短小,代碼不多,但展現(xiàn)了做master-detail時的思路,可以參考
標(biāo)簽: jsf
上傳時間: 2013-12-18
上傳用戶:yepeng139
VHDL實現(xiàn)SPI功能源代碼 -- The SPI bus is a 3 wire bus that in effect links a serial shift -- register between the "master" and the "slave". Typically both the -- master and slave have an 8 bit shift register so the combined -- register is 16 bits. When an SPI transfer takes place, the master and -- slave shift their shift registers 8 bits and thus exchange their 8 -- bit register values.
標(biāo)簽: SPI bus register effect
上傳時間: 2013-12-23
上傳用戶:lx9076
如文件名,在LPC2138上的I2C的Master發(fā)送接受測試程序。里面的readme.txt(英)有詳細說明。
標(biāo)簽:
上傳時間: 2015-12-01
上傳用戶:eclipse
Avalon Interface Specification,The Avalon interface specification is designed to accommodate peripheral development for the system-on-a-programmable-chip (SOPC) environment. The specification provides peripheral designers with a basis for describing the address-based read/write interface found on master and slave peripherals, such as microprocessors, memory, UART, timer, etc.
標(biāo)簽: Avalon Specification specification accommodate
上傳時間: 2014-03-06
上傳用戶:pompey
An AHB system is made of masters slaves and interconnections. A general approach to include all possible "muxed" implementation of multi layered AHB systems and arbitrated AHB ones can be thought as an acyclic graph where every source node is a master, every destination node is a slave and every internal node is an arbiter there must be one and only one arc exiting a master and one or more entering a slave (single slave verus multi-slave or arbitrated slave) an arbiter can have as many input and output connections as needed. A bridge is a special node that collapses one or more slave nodes and a master node in a new "complex" node.
標(biāo)簽: interconnections approach general include
上傳時間: 2015-12-12
上傳用戶:lyy1234
蟲蟲下載站版權(quán)所有 京ICP備2021023401號-1