caramoan tour package

caramoan tour package

Author Topic: AT89S52 Memory model?  (Read 507 times)

Offline RiDdLeR???

  • Hydroelectric
  • ***
  • Posts: 3032
  • Pogi/Ganda Points: 208
AT89S52 Memory model?
« on: May 07, 2011, 12:37:12 PM »
What type of memory model should I use, Small, Compact or Large if I just want to use the built-in ram and eeprom?

Philippine Electronics Forum

AT89S52 Memory model?
« on: May 07, 2011, 12:37:12 PM »

Offline 1diyMARKET

  • Lead Acid Battery
  • *******
  • Posts: 545
  • Pogi/Ganda Points: 4
    • 1 am 1diyTEAM
Re: AT89S52 Memory model?
« Reply #1 on: May 07, 2011, 12:45:14 PM »
Sir, AT89s52 ay naka base siya sa 8052 core,  iyong 8051 ay mas maliit ang ram nito, pero tawag parin ay 8051.   

ano pong gamit ninyong compiler?  required po ba na i declare ito?

iyong AT89S52, wala po ito EEPROM, kung may eeprom ang gusto, gamit ng AT89s8252.
Your Support and Purchase of 1diycentre e’store products is a support to our fellow  hobbyist.  Most of the buyers here at e’store are students who do not have yet source of income.  1diyteam offer monthly payment to some items to help our fellow hobbyist.

Philippine Electronics Forum

Re: AT89S52 Memory model?
« Reply #1 on: May 07, 2011, 12:45:14 PM »

Offline RiDdLeR???

  • Hydroelectric
  • ***
  • Posts: 3032
  • Pogi/Ganda Points: 208
Re: AT89S52 Memory model?
« Reply #2 on: May 07, 2011, 01:09:49 PM »
Either sa mikroC for 8051 or SDCC.  Its the first thing it asks when creating a new project.

Philippine Electronics Forum

Re: AT89S52 Memory model?
« Reply #2 on: May 07, 2011, 01:09:49 PM »

Offline rdpzycho

  • Technical People
  • Solar Power Satellite
  • *****
  • Posts: 10722
  • Pogi/Ganda Points: 630
  • Gender: Male
  • Respect Begets Respect
    • rdpzycho
Re: AT89S52 Memory model?
« Reply #3 on: May 07, 2011, 01:12:57 PM »
kung sa SDCC, ang default is small. small lang din ginagamit since kasya naman lagi sa Internal RAM.

from Maxim:

Memory Models

The SDCC supports two memory models: small and large. When using the small memory model, the SDCC declares all variables without a storage class (i.e., data, idata, xdata, pdata, bit, code) in internal RAM. When using the large memory model, the SDCC declares all variables without a storage class in external RAM.

The small memory model is the default when compiling with the SDCC. To force the SDCC to use a particular memory model, add the following command line parameters:
sdcc --model-small sdcctest.c
or
sdcc --model-large sdcctest.c
Never combine modules or objects files compiled with different storage classes.
‎"Divide each difficulty into as many parts as is feasible and necessary to resolve it."
- Rene Descartes

"For every difficult problem there is always a simple answer and most of them are wrong."
- Clayton Paul

Philippine Electronics Forum

Re: AT89S52 Memory model?
« Reply #3 on: May 07, 2011, 01:12:57 PM »

Offline RiDdLeR???

  • Hydroelectric
  • ***
  • Posts: 3032
  • Pogi/Ganda Points: 208
Re: AT89S52 Memory model?
« Reply #4 on: May 07, 2011, 02:11:03 PM »
ok  thanks...  susubukan small memory with mikroC para mabilis.  Then subukan ko Eclipse with SDCC.

Philippine Electronics Forum

Re: AT89S52 Memory model?
« Reply #4 on: May 07, 2011, 02:11:03 PM »

 

Privacy Policy

Contact Us: elabph@yahoo.com