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?
1. Please don't hijack other people's threads for completely unrelated questions. 2. Your CAPSLOCK key seems to be stuck. Or you're trying to appear rude by writing in ALL CAPITAL LETTERS. 3. This is a question about C that has very little to do with Keil tools specifically. 4. The answer: You can't. There might be a way to weasel around this C-specific limitation by using #define, but you should really consider if pulling something like that is worth your while. Use hexadecimal numbers instead.
i thing that you can put your equivalent code binary into hexadecimal
View all questions in Keil forum