This is a verilog code used oversampled clock to implement SPI SLAVE. Also include C code for a ARM processor as the SPI master
標簽: code oversampled implement include
上傳時間: 2013-12-13
上傳用戶:leixinzhuo
This driver supports both master mode, SLAVE mode & mixed mode operation.
標簽: mode operation supports driver
上傳時間: 2013-12-11
上傳用戶:894898248
很少見的nios i2c SLAVE程序,對nios工程師很有幫助
上傳時間: 2020-02-27
上傳用戶:zqszqs
verilog實現I2C通信的SLAVE模塊源碼狀態機設位計可做I2C接口的仿真模型//`timescale 1ns/1psmodule I2C_slv (input [6:0] slv_id,input RESET,input scl_i, //I2C clkinput sda_i, //I2C data ininput [7:0] I2C_RDDATA,////////////////////////output reg sda_o, //I2C data outoutput reg reg_w, //reg write enable pulse (1T of scl_i)output reg [7:0] I2C_ADDR,output reg [7:0] I2C_DATA); parameter ST_ADDR = 4'd0; parameter ST_ACK = 4'd1; parameter ST_WDATA1 = 4'd2; parameter ST_WACK1 = 4'd3; parameter ST_WDATA2 = 4'd4; parameter ST_WACK2 = 4'd5; parameter ST_WDATA3 = 4'd6; parameter ST_WACK3 = 4'd7; parameter ST_RDATA1 = 4'd8; parameter ST_RACK1 = 4'd9; parameter ST_IDLE = 4'd15;//---------------------------------------------------------------------------// Signal Declaration//--------------------------------------------------------------------------- reg i2c_start_n, i2c_stop_n; //wire RESET_scl; wire i2c_stp_n, i2c_RESET; reg [3:0] i2c_cs, i2c_ns; reg [3:0] cnt_bit; reg [7:0] d_vec; reg i2c_rd, i2c_ack; reg [7:0] I2C_RDDATA_latch;
上傳時間: 2022-02-03
上傳用戶:
STM32 USB HID(SLAVE)應用源碼,有需要的可以參考!
上傳時間: 2022-04-15
上傳用戶:
英文描述: Dual Negative-Edge-Triggered Master-SLAVE J-K Flip-Flops with Clear and Complementary Outputs 中文描述: 雙下降沿觸發主從JK觸發器明確和互補輸出
上傳時間: 2013-04-24
上傳用戶:黃華強
mcu與cpld之間spi接口程序,mcu為master,cpld用verilog寫成SLAVE模塊
上傳時間: 2013-08-14
上傳用戶:1039312764
為解決電致變色器件的顏色變化受外界環境顏色控制的問題,設計了一種基于單片機的便攜式顏色自適應識別電路。與傳統顏色識別電路相比較,該電路利用數字式的顏色傳感器來獲取外界環境顏色,產生的數字顏色信號易于單片機進行處理。在電路中,下位機部分主要負責獲取電致變色器件變色參數及控制電致變色器件的顏色變化;而上位機部分主要負責把下位機獲取的電致變色器件變色參數進行電壓到顏色的曲線擬合,并通過藍牙通信把擬合曲線參數傳遞給下位機。結果表明,該電路能自動根據環境顏色提供-4~4 V范圍步進為0.1 V的電壓來驅動電致變色器件的顏色顯示,與傳統的顏色識別電路設計相比,識別的精度和速度都得到了明顯改善。 Abstract: In this paper, a portable adaptive circuit for color identification(PACCI) based on MCU was designed. Compared to the traditional color identification circuit, the PACCI adopts digital sensor to detect the color data from external environment and further generate digital color data, which can be processed easily by MCU. In PACCI, the SLAVE is mainly responsible for detecting the color parameters of the corresponding elcreochromic device and further driving it. For the master, which is mainly responsible for the color curve fitting based on the parameters of the electrochromic device, and transmits the fitting parameters to the SLAVE through the bluetooth device. The results show that the PACCI can provide the basis voltage range from -4V to 4V automatically based on the colors of external environment with step as 0.1V to drive the corresponding electrochromic device. Compared to the traditional color recognition circuit, the recognition accuracy and speed of PACCI have been improved significantly.
上傳時間: 2013-11-09
上傳用戶:franktu
闡述了一個由上位PC機和AT89C52下位單片機組成的主從分布式溫度巡回檢測系統。主從機采用RS-485 串行通訊標準進行通信,可在下位單片機實現基本的溫度數據巡回檢測基礎上,由上位PC機實現綜合處理功能或擴展為遠程操作。整個系統具有巡檢速度快,擴展性好的特點。 Abstract: In this paper,a top PC and AT89C52 under-bit microcontrollers from the main component of the tour distributed temperature detection system is presented. Master and SLAVE can use RS-485 serial communication standards for communications.Based on next-bit machine for basic goods temperature detected data Tour, the top can achieve the integrated treatment of PC functions or for the expansion of long-distance operation. The entire inspection system is fast, expansion.
上傳時間: 2013-10-13
上傳用戶:zhoujunzhen
摘 要:以EZ2USB FX2為基礎設計了一種單片機的USB接口方式.該設計應用EZ2USB FX2芯片構建單片機和主機的數據管道,接口符合USB2.0協議.EZ2USBFX2芯片工作在從屬FIFO方式下,通過適當的配置與單片機方便地進行連接,單片機可以象訪問外部存儲器一樣訪問FX2的端點.主機應用程序通過USB接口向單片機發送相應的命令,并能夠接收單片機上傳的數據.該設計硬件連接方便、編程簡單.文中詳細介紹了該設計的硬件組成和軟件設計,包括FX2的固件程序和主機用戶程序.關鍵詞:FX2;SLAVE FIFO;USB;接口
上傳時間: 2013-12-26
上傳用戶:swz13842860183