这是一个利用stm32f103读写Flash的程序
2021-09-29 11:06:18 298KB stm32 flash
1
Cyclone2 FPGA读写FLASH SST39VF1601 实验Verilog逻辑源码Quartus工程文件 module FLASH_TEST ( //input input sys_clk , //system clock; input sys_rst_n , //system reset, low is active; //output inout [15:0] FLASH_DQ , output reg [20:0] FLASH_ADDR , output reg FLASH_CE , output reg FLASH_OE , output reg FLASH_WE , output reg FLASH_RST , output reg [ 7:0] LED ); //Reg define reg [3:0] div_cnt ; reg flash_clk ; reg [31:0] wait_cnt ; reg [5:0] ctrl_cnt ; reg [15:0] flash_data_lck ; reg [15:0] flash_din ; //Wire define //************************************************************************************ //** Main Program //** //************************************************************************************ // counter used for div osc clk to flash ctrl clk 50M/16 , one flash ctrl clk cycle is 330ns always @(posedge sys_clk or negedge sys_rst_n) begin if (sys_rst_n ==1'b0) div_cnt <= 4'b0; else div_cnt <= div_cnt + 4'b1; end //gen flash_clk always @(posedge sys_clk or negedge sys_rst_n) begin if (sys_rst_n ==1'b0) flash_clk <= 1'b0 ; else if ( div_cnt <= 4'd7 ) flash_clk <= 1'b1 ; else flash_clk <= 1'b0 ; end // flash ctrl signal gen // read FLASH devid need 5 step : // ctrl_cnt 10 - 13 is write oxaa in addr 0x5555 // ctrl_cnt 14 - 17 is write ox55 in addr 0x2aaa // ctrl_cnt 18 - 21 is write ox90 in addr 0x5555 // ctrl_cnt 22 -30 is wait time for TIDA // ctrl_cnt 31 -34 is read manId in addr 0 // ctrl_cnt 35 -38 is read devid in addr
通过I2C读写flash的内容,产生停止位,低4位清零,为低4位置9作准备
2021-08-11 18:42:27 8KB I2C的读写
1
AVR(Mega8)的study:9、IO口模拟SPI,读写FLASH ,很方便移植到其它AVR芯片中去
2021-08-03 13:45:50 42KB AVR(Mega8) IO口模拟SPI 读写FLASH
1
STM32F407ZE挂载SD卡,并加载文件系统后的读写 ,文件打开、文件读写、文件关闭 、光标偏移等应用
2021-07-16 17:08:11 7.87MB SDK挂载 SDK读写 FLASH挂载
STC12C5608AD通过硬件SPI读写LE25FU406(三洋),软件模拟SPI读写FM25F04(上海复旦微电子),软件模拟I2C单总线挂2个AT24C02进行读写,并用串口发送数据。压缩包内包含源程序、芯片datasheet资料、原理图。
2021-07-07 20:21:09 16.83MB STC12C5608AD LE25FU406 FM25F04 AT24C02
1
stm32f407读写flash的demo,基于正点原子探索者板,可以测试读写数字字母字符串,将stm32的flash当成eeprom读写
2021-05-03 16:14:39 3.45MB stm32 flash 探索者
1
通过verilog编写语言实现读写操作SPI的flash芯片,经过验证可用,能够实现读取芯片DEVICE id Cyclone IV E系列的EP4CE10F17C8 W25Q128BV
2021-03-30 15:26:01 6.55MB fpga SPI verilog flash
1
Example Flash code for the following device families: C8051F00x C8051F02x C8051F04x C8051F06x C8051F12x C8051F2xx C8051F30x C8051F31x C8051F32x C8051F326/7 C8051F33x C8051F34x C8051F35x
2020-04-18 03:18:01 57KB c8051 code Flash FLASHExample
1
SPI读写FLASH,STM32F103。自己写的,通过测试。
2020-01-03 11:18:32 4.99MB SPI FLASH STM32F103
1