Here are the functions for Hamming code 7.4 and Extended Hamming code 8.4 encoding and decoding. For 7.4 code, one error per 7-bit codeword can be corrected. For 8.4 code, one error per 8-bit codeword can be corrected and not less than 2 errors can be detected.
標簽: Hamming code and functions
上傳時間: 2014-01-05
上傳用戶:Amygdala
IIC接口E2PROM(AT24C64) 讀寫VERILOG 驅(qū)動源碼+仿真激勵文件:module i2c_dri #( parameter SLAVE_ADDR = 7'b1010000 , //EEPROM從機地址 parameter CLK_FREQ = 26'd50_000_000, //模塊輸入的時鐘頻率 parameter I2C_FREQ = 18'd250_000 //IIC_SCL的時鐘頻率 ) ( input clk , input rst_n , //i2c interface input i2c_exec , //I2C觸發(fā)執(zhí)行信號 input bit_ctrl , //字地址位控制(16b/8b) input i2c_rh_wl , //I2C讀寫控制信號 input [15:0] i2c_addr , //I2C器件內(nèi)地址 input [ 7:0] i2c_data_w , //I2C要寫的數(shù)據(jù) output reg [ 7:0] i2c_data_r , //I2C讀出的數(shù)據(jù) output reg i2c_done , //I2C一次操作完成 output reg i2c_ack , //I2C應(yīng)答標志 0:應(yīng)答 1:未應(yīng)答 output reg scl , //I2C的SCL時鐘信號 inout sda , //I2C的SDA信號 //user interface output reg dri_clk //驅(qū)動I2C操作的驅(qū)動時鐘 );//localparam definelocalparam st_idle = 8'b0000_0001; //空閑狀態(tài)localparam st_sladdr = 8'b0000_0010; //發(fā)送器件地址(slave address)localparam st_addr16 = 8'b0000_0100; //發(fā)送16位字地址localparam st_addr8 = 8'b0000_1000; //發(fā)送8位字地址localparam st_data_wr = 8'b0001_0000; //寫數(shù)據(jù)(8 bit)localparam st_addr_rd = 8'b0010_0000; //發(fā)送器件地址讀localparam st_data_rd = 8'b0100_0000; //讀數(shù)據(jù)(8 bit)localparam st_stop = 8'b1000_0000; //結(jié)束I2C操作//reg definereg sda_dir ; //I2C數(shù)據(jù)(SDA)方向控制reg sda_out ; //SDA輸出信號reg st_done ; //狀態(tài)結(jié)束reg wr_flag ; //寫標志reg [ 6:0] cnt ; //計數(shù)reg [ 7:0] cur_state ; //狀態(tài)機當前狀態(tài)reg [ 7:0] next_state; //狀態(tài)機下一狀態(tài)reg [15:0] addr_t ; //地址reg [ 7:0] data_r ; //讀取的數(shù)據(jù)reg [ 7:0] data_wr_t ; //I2C需寫的數(shù)據(jù)的臨時寄存reg [ 9:0] clk_cnt ; //分頻時
標簽: iic 接口 e2prom at24c64 verilog 驅(qū)動 仿真
上傳時間: 2021-11-05
上傳用戶:
■ High Performance, Low Power AVR? 8-Bit Microcontroller ■ Advanced RISC Architecture –120 Powerful Instructions – Most Single Clock Cycle Execution –32 x 8 General Purpose Working Registers –Fully Static Operation
標簽: Atmel
上傳時間: 2013-06-01
上傳用戶:tccc
These 8-bit shift registers feature gated serial inputs andan asynchronous clear. A LOW logic le
上傳時間: 2013-06-12
上傳用戶:qq521
80C51 8-bit microcontroller family 4K/128 OTP/ROM/ROMless low voltage 2.7V.5.5V, low power, high speed 33 MHz
上傳時間: 2013-04-24
上傳用戶:qweqweqwe
英文描述: 8-Bit Serial-Input/Parallel-Output Shift Register 中文描述: 8位Serial-Input/Parallel-Output移位寄存器
上傳時間: 2013-04-24
上傳用戶:epson850
英文描述: 8-Bit Parallel In/Serial Output Shift Registers 中文描述: 8位并行/串行輸出移位寄存器
上傳時間: 2013-06-03
上傳用戶:林魚2016
英文描述: 8-BIT SHIFT REGISTERS WITH OUTPUT LATCHES 中文描述: 8位移位寄存器與輸出鎖存器
上傳時間: 2013-06-23
上傳用戶:327000306
很不錯的教材
標簽: Microcontrollers Programmig PIC bit
上傳時間: 2013-11-01
上傳用戶:brain kung
現(xiàn)有基于MAX7219芯片的數(shù)碼管驅(qū)動電路只適用于小尺寸LED,為擴展其使用范圍,在介紹動態(tài)顯示芯片MAX7219功能的基礎(chǔ)上,提出了一個基于該芯片的8位高亮度8英寸數(shù)碼管驅(qū)動電路。電路保留了MAX7219芯片的功能強大、編程簡單等優(yōu)點,通過74LS273鎖存器和ULN2803達林頓驅(qū)動器,實現(xiàn)了對任意大尺寸數(shù)碼管提供較高電壓和電流驅(qū)動的靜態(tài)顯示,并亮度可調(diào)。 Abstract: The existing display-driving circuit based on MAX7219 was only applicable to small-size LED. To expand its use, based on the function introduction of dynamic display chip MAX7219, a display-driving circuit for high-brightness 8-bit LED with the size of 8-inch was proposed. The advantages of MAX7219 were retained, such as powerful function and simple programming. Static display with adjustable brightness for large-size LED with higher voltage and current was achieved with the help of 74LS273 and ULN2803.
上傳時間: 2013-10-23
上傳用戶:31633073
蟲蟲下載站版權(quán)所有 京ICP備2021023401號-1