1 / 10

SIOC 實驗 4 : Embedded SRAM 實驗

SIOC 實驗 4 : Embedded SRAM 實驗. 郭明聰 / 陳慶瀚 MIAT 實驗室. 實驗目的. 瞭解 ARM Cortex-M3 與 SRAM 連接的架構,實驗存取 SRAM ,並透過 VCP 傳送到超級 終端 機 顯示 結果. 系統架構圖. Embedded SRAM. 20KBytes of embedded SRAM accessed (read/write) at CPU clock speed with 0 wait states. Memory Mapping. Keil 環境設定. 實驗: SRAM 資料存取.

august
Download Presentation

SIOC 實驗 4 : Embedded SRAM 實驗

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. SIOC 實驗4:Embedded SRAM 實驗 郭明聰/陳慶瀚 MIAT實驗室

  2. 實驗目的 • 瞭解ARM Cortex-M3與SRAM連接的架構,實驗存取SRAM,並透過VCP傳送到超級終端機顯示結果

  3. 系統架構圖

  4. Embedded SRAM • 20KBytesof embedded SRAM • accessed (read/write) at CPU clock speed with 0 waitstates

  5. Memory Mapping

  6. Keil環境設定

  7. 實驗:SRAM資料存取

  8. UART Protocol LSB MSB Data

  9. 實驗說明 u8 A[128],B[128]; u8 *temp1=&A[0],*temp2=&B[0]; u32 *temp3=(u32 *)A,*temp4=(u32 *)B; int i; printf("Matrix A= \r\n"); for(i=0;i<128;i++) { *(temp1+i)=i; printf("%4o",*(temp1+i)); }printf("\r\n"); printf("8bit \r\n"); for(i=0;i<128;i++) { *(temp2+i)=*(temp1+i); State_flag= 1; Stopwatch_counter(); }printf("\r\n"); printf("32bit \r\n"); for(i=0;i<32;i++) { *(temp4+i)=*(temp3+i); State_flag= 2; Stopwatch_counter(); }printf("\r\n"); printf("8bit \r\n"); for(i=0;i<128;i++) { printf(“%4o”,*(temp2+i) ); } printf("\r\n"); printf("32bit \r\n"); for(i=0;i<128;i++) { printf("%4o",*(((u8*)temp4)+i)); } printf("\r\n");

  10. 實驗結果

More Related