Email: Password: Remember Me | Create Account (Free)

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
02/04/04 23:54
Read: times


 
#64022 - RE: how define the buffer at particular memo
Responding to: ???'s previous message
panitini madhu satyanaray said:
I am new to keil c programming,

First, you need to read the uVision Getting Started guide, and work through the examples projects in it.
You will also need to read the C51 Manual

Are you also a newbie to 'C' programming in general?

If you are also a newbie with the 8051, you need to read the following documents - commonly referred to as "the bible" for the 8051:

http://www.semiconductors.philips.com/acrobat/v...ARCH_1.pdf
http://www.semiconductors.philips.com/acrobat/v...UIDE_1.pdf
http://www.semiconductors.philips.com/acrobat/v...WARE_1.pdf

And these may also be helpful:
http://www.keil.com/books/8051books.asp
http://www.8052.com/books.phtml
http://www.8052.com/tutorial.phtml

panitini madhu satyanaray said:
I want store each byte from serial port buffer to xdata buffer.
how define the buffer at particular memory loaction

Why do you want to define it at particular memory location?
In general, there is no reason to do this.
If you really have to, look up the _at_ keyword extension in the C51 Manual.

panitini madhu satyanaray said:
store byte after byte by incrementing the xdata buffer.

You don't increment the buffer - you increment the pointer or index into the buffer.

The Interrupt-driven serial IO example on the Keil site shows you how to use a Circular Buffer to do this:
http://www.keil.com/download/docs/intsio.zip.asp

Or look at Mark Odell's example:
http://www.8052.com/users/emb...Driver.zip



List of 4 messages in thread
TopicAuthorDate
how define the buffer at particular memo            01/01/70 00:00      
   RE: how define the buffer at particular memo            01/01/70 00:00      
      RE: how define the buffer at particular memo            01/01/70 00:00      
   RE: how define the buffer at particular memo            01/01/70 00:00      

Back to Subject List