Skip to main content
babidesai123
Associate III
June 2, 2003
Question

writing to any location in SRAM

  • June 2, 2003
  • 2 replies
  • 553 views
Posted on June 02, 2003 at 15:29

writing to any location in SRAM

This topic has been closed for replies.

2 replies

joseph2399
Associate II
May 17, 2011
Posted on May 17, 2011 at 11:54

Hello,

Our USB example code also uses the uPSD's SRAM, you can download it from our website at:

http://psmdev.st.com/dk3200.php

(dk3200_dsn_2.zip). The procedures on how to access the SRAM described in Sreeram's email is correct.

babidesai123
Associate III
May 17, 2011
Posted on May 17, 2011 at 11:54

Hi,

We would like to know , '' how we can access the SRAM space 8K''

If we want to update/ read those location...

what should be the syteps to achieve that..

Is there any application code which uses SRAM in IAP mode ....

For more information:

We have develo the IAP code for upsd323X. In this case our IAP code will be in seconday...& application is in primary page1/page2 using the swap bit of page register..

Now if we want to program the primary using IAP mode.& the packet size wil be of 20 bytes only....In this case we waould like to palce that in SRAM space & once verified we would like to copy the same in Primary flash.

So we would like to know...how to access SRAM location ....

It's w/o page & not overlapping to any of the flash location.

Can we directly access these location??& wite using

mov dptr,#(SRAM_LOCATION)

mov a,#0xd0 ;data

MOVX @dptr,a ;writng to location in SRAM (in data space)

ret

Thanks,

Eagerly waiting for reply

Purvi