verilog實(shí)現(xiàn)I2C通信的slave模塊源碼狀態(tài)機(jī)設(shè)位計(jì)可做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;
標(biāo)簽:
verilog
i2c
通信
slave
上傳時(shí)間:
2022-02-03
上傳用戶:
隨著科技發(fā)展及工業(yè)4.0 進(jìn)程推進(jìn),機(jī)械臂應(yīng)用范圍越來越廣,并演化出各種各樣的機(jī)械臂,如碼垛機(jī)械臂、焊接機(jī)械臂、裝配機(jī)械臂以及手術(shù)機(jī)械臂等。現(xiàn)利用solidworks 進(jìn)行三維建模,設(shè)計(jì)制作一款基于stm32f103c8t6 單片機(jī)的主從式桌面級(jí)機(jī)械臂,該機(jī)械臂包括一個(gè)主動(dòng)機(jī)械臂和一個(gè)從動(dòng)機(jī)械臂,采用藍(lán)牙傳輸信號(hào)方式進(jìn)行同步運(yùn)動(dòng),并且詳細(xì)介紹了該機(jī)械臂材料選擇、結(jié)構(gòu)設(shè)計(jì)、工作原理、組成部分和設(shè)計(jì)特點(diǎn)。With the development of science and technology and the advancement of Industry 4.0, the application range of the mechanical arm has become wider and wider, and various types of mechanical arms, such as palletizing robot arms, welding robot arms, assembly robot arms, and surgical robot arms, have been developed. Now using solidworks for 3D modeling, design and manufacture a master-slave desktop-level robot arm based on stm32f103c8t6 single-chip microcomputer. The robot arm includes an active robot arm and a slave robot arm, which uses Bluetooth to transmit signals for synchronous motion. The material selection, structural design, working principle, components and design features of the manipulator are introduced.
標(biāo)簽:
stm32f103c8t6
單片機(jī)
上傳時(shí)間:
2022-03-27
上傳用戶: