cancel
Showing results for 
Search instead for 
Did you mean: 

writing to any location in SRAM

babidesai123
Associate II
Posted on June 02, 2003 at 15:29

writing to any location in SRAM

2 REPLIES 2
babidesai123
Associate II
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
joseph2399
Associate II
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.