Discussion Forum

Does writing data to memory required?

Next Thread | Thread List | Previous Thread Start a Thread | Settings

DetailsMessage
Read-Only
Author
siang loon lau
Posted
21-May-2008 03:35 GMT
Toolset
C51
New! Does writing data to memory required?

Hi all,

please help me to clear my doubt on this issue. I have a set of data that comes from ADC and this set of data will be used to compare with another set of data to check for any difference. Can i just introduce simple array to compare this two set of data or i have to store this into some memory on the board with given address. I know the earlier can be done in c programming but i am not too sure whether it can be done when using micro controller. Please advise. Thanks. I am using Silicon Lab 8051 micro controller.

Read-Only
Author
erik malund
Posted
21-May-2008 14:11 GMT
Toolset
C51
New! where else would you have the array

Can i just introduce simple array to compare this two set of data or i have to store this into some memory on the board
where else would you have the array?

some memory on the board with given address
I guess you are programming in C, (why do you keep that a secret) if so there is no "given address", the tools take care of it

I am using Silicon Lab 8051 micro controller
very nondescript, SILabs makes derivatives and deviates, full number, please.

It seems you are trying to run without having learned even to crawl, that will break your legs. WORK THROUGH (NOTE: I did not say 'read') the "Getting started guide" and then come back with your, by then, specific questions.

Erik

Read-Only
Author
Andy Neil
Posted
23-May-2008 07:04 GMT
Toolset
C51
New! Writing in 'C' for microcontrollers

"I know the earlier can be done in c programming but i am not too sure whether it can be done when using micro controller."

Yes, you can program microcontrollers - including 8051 types - in 'C'!

Keil's tools for doing this are called, naturally enough, "C51":
http://www.keil.com/c51/

The SiLabs IDE also uses Keil's compiler, etc.

The basics of C51 are ANSI standard; there are just a few extensions to take care of the specific details of the target - see:
http://www.keil.com/support/man/docs/c51/c51_extensions.htm
http://www.keil.com/support/man/docs/c51/c51_xa.htm

Of course, you need to understand the 8051 architecture and the C51 tools in order to be able to write efficient 'C' for an 8051 - some tips here:
http://www.keil.com/support/man/docs/c51/c51_xc.htm

See also: http://www.8052.com/forum/read.phtml?id=139366

Next Thread | Thread List | Previous Thread Start a Thread | Settings