[应用相关] AT32F403 SPI DMA访问英尚VTI7064LSM,做内存扩展

[复制链接]
2877|4
 楼主| muyichuan2012 发表于 2021-3-3 10:35 | 显示全部楼层 |阅读模式
本帖最后由 muyichuan2012 于 2021-3-3 11:06 编辑

/**
**************************************************************************
* File Name    : README.TXT
* brief                  : Project for SPI DMA R/W VTI7064LSMxx  base on AT-START-F403 Board.
* Date         : 2018-08-13
* Version      : V1.0.0
**************************************************************************


  @Description
    This demo is based on the AT-START-F403 board,in this demo,usart1 TX(PA9) will printf the result for access VTI7064LSMxx.  */
    If need use SPI DMA,open this define "SPI_DMA_ENABLE".otherwize,it defaut use normal SPI.
        AT-START-F403 Board                 VTI7064LSMxx
                        PA4  -----------------------  #CE
                        PA5  -----------------------  SCLK  
                        PA6  -----------------------  SO
                        PA7  -----------------------  SI
                        Vdd(3.3V)  -----------------  VDD
                        GND  -----------------------  GND
        
/****************** (C) COPYRIGHT 2018 ArteryTek *********END OF FILE*********/

/**
**************************************************************************
* File Name    : main.c
* brief                  : Project for SPI DMA R/W VTI7064LSMxx  base on AT-START-F403 Board.
* Date         : 2018-08-13
* Version      : V1.0.0
**************************************************************************


  @Description
    This demo is based on the AT-START-F403 board,in this demo,usart1 TX(PA9) will printf the result for access VTI7064LSMxx.  */

/****************** (C) COPYRIGHT 2018 ArteryTek *********END OF FILE*********/

#include "at32f4xx.h"
#include "usart.h"
#include "stdlib.h"
#include "sram.h"

extern u8 cnt;

int main(void)
{

        uart_init(115200);
        printf("initial ok\r\n");
        
        sram_test();// access VTI7064LSMxx

  while(1)
  {


  }
}



  

Extern_SPI_SRAM.zip

336.08 KB, 下载次数: 103

VTI7064LSMxx.pdf

2.81 MB, 下载次数: 90

单片小菜 发表于 2021-3-3 12:47 | 显示全部楼层
中断进行吗?
huangcunxiake 发表于 2021-3-3 13:14 | 显示全部楼层
接口对,驱动起来。
zhouyong77 发表于 2021-3-5 08:18 来自手机 | 显示全部楼层
谢谢楼主分享
您需要登录后才可以回帖 登录 | 注册

本版积分规则

215

主题

2077

帖子

37

粉丝
快速回复 在线客服 返回列表 返回顶部