ATMEL ARM SAM E70 BOARD Memory configuration

Go To Last Post
5 posts / 0 new
Author
Message
#1
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Hello everyone, continuing from my last post about configuring the adc. Now the code for adc is working fine. The thing is that now I want to store my adc data in the memory of this board. Therefore can someone pls help me out with the flow to how to start programming my memory. The only document regarding it I got is this  http://ww1.microchip.com/downloads/en/Appnotes/Atmel-42555-SMART-SAM-E70-TCM-Memory_Application%20Note_AT14971.pd. Kindly pls help me out.

avantika

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

So by "in the memory" you mean in RAM? It's not obvious you will have to use TCM to store ADC data. From the app note:

Some suggestions to better utilize TCM in applications:

• Application stack can be located in DTCM

• Application heap can be located in DTCM

• Critical variables can be located in DTCM

• Frequently updated variables in DTCM

• Critical functions/routines can be located in ITCM

• A copy of Interrupt vector table can be located in ITCM

• Interrupt service routines can be located in ITCM

/Lars 

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Actually SAM E70 XPLAINED BOARD uses TCM which is mapped to SRAM. So I am confused that how to start programming the memory part in order to store the data from ADC. Also if you have worked with this board do u have any idea that on what pins will I get the adc output. I am using channel 0 of afec module and my input pins are 3,4 of EXT2 Header. Following are two attachments if you could please refer these and help me out.

Attachment(s): 

avantika

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Actually SAM E70 XPLAINED BOARD uses TCM which is mapped to SRAM.

It can use TCM, you don't have to use TCM.

ADC output? If you are talking about the DAC then PB13 and PD0 (DAC0 and DAC1).

/Lars

 

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Yes you are right TCM is mapped to internal SRAM. Moreover the memory stored in TCM is accessed by DMA, so I'll have to do coding for TCM or DMA?? in the example codes they have given both codes, for AFEC_DMA and for TCM. below are the attached codes if you could please help me out that what do they mean actually. My aim is to store the adc data in memory

Attachment(s): 

avantika