how to configure the ads1256 registers?
So, start off by describing exactly what you have done, what happened and what you expected to happen.
Have you downloaded the data sheet for the chip?
Have you read the data sheet?
Do you know how you want to use the chip?
Have you looked for example code?
Don't start a new thread when you already have one on exactly the same subject:
http://www.keil.com/forum/docs/thread10431.asp
sorry Andy Neil for starting another thread.
yes i have read the datasheet and i have done the following code but it doesn't work
#ifndef __REG_ADS1256_H__ #define __REG_ADS1256_H__
/* BYTE Registers */ sfr STATUS = 0x00; sfr MUX = 0x01; sfr ADCON = 0x02; sfr DRATE = 0x03; sfr I0 = 0x04; sfr OFC0 = 0x05; sfr OFC1 = 0x06; sfr OFC2 = 0x07; sfr FSC0 = 0x08; sfr FSC1 = 0x09; sfr FSC2 = 0x0A;
#endif
HOW DO I PUT A BINARY NUMBER INTO THE C CODE?
I TRY OB1O1OIOI1 BUT GET ERROR?
Dear Sir or Madam,
Please define "does not work" by selecting a number from this handy engineer's "not workingness" reference chart:
1. Some error message is displayed by some unspecified piece of software when I take some unspecified action.
2. My code does not compile.
3. I choose "download flash" and something short of a full-working-product is the end result.
4. The LED doesn't blink.
5. The LED blinks.
6. An unexpected LED blinks.
7. What is an LED?
8. The board powers up, but shows no other signs that it feels some sense of obligation based on my software efforts.
9. A small plume of smoke rises from the board.
10. A component catches fire, violently ejects itself from the board, and burns several bystanders.
Once you've nailed down your particular flavor of "does not work" we'll be able to assist you better.
NOTE: This is just a joke. What I'm trying to say is that you're going to have to make a long and involved post describing your goals, efforts, and the exact results you've had before anyone can be of any assistance.
-Jay Daniel
"This is just a joke"
You surprise me.
Compared to some of the recent (and not so recent) posts on this forum, I would say that your post is more technical than most!!??
View all questions in Keil forum