![]() |
![]() |
![]() |
|
|
|||||||
| Electronic Projects Design/Ideas/Reviews Are you building an electronic project or want to? Maybe you need some assistance? Come and submit your electronic questions here and let our experienced members find a solution. |
|
|
Thread Tools | Display Modes |
|
|
(permalink) |
|
Dear techies,
I need help in getting the data from MCP3550 - 22bit Delta sigma ADC chip using SPI. Iam unable to get the data out through SDO. I have tried as per the data sheet, but it doesn't work.
__________________
Sqn R.K. Chakravarthy ---------------------- Sky is not the limit for Air Warriors |
|
|
|
|
|
|
(permalink) |
|
What are you driving the SPI with?
Have you got an oscilloscope to see what the lines are doing? I think we need more information in order to help you. |
|
|
|
|
|
|
(permalink) |
|
You need to post your code and schematic.
__________________
search engine for electronic partsJunebug USB PIC programmer kit., USB Bit Wacker, Homepage The 15 Minute Printed Circuit Board! (+drill time) |
|
|
|
|
|
|
(permalink) |
|
Thanks 3v0 / Diver.....
Here is the code for the reg conf..... Please go through and guide me...
__________________
Sqn R.K. Chakravarthy ---------------------- Sky is not the limit for Air Warriors |
|
|
|
|
|
|
(permalink) | ||
|
First let me say that I have just started working with SPI and only with the MCP41XXX.
Quote:
The MCP3550 has no SI pin. It is a read only device execpt that the CS line is used to start a conversion. Quote:
__________________
search engine for electronic partsJunebug USB PIC programmer kit., USB Bit Wacker, Homepage The 15 Minute Printed Circuit Board! (+drill time) |
|||
|
|
|
|
|
(permalink) | |
|
Quote:
I have tried to get the data by making CS low, but i couldnt get any data through SDO... Can u help me in this regard....?
__________________
Sqn R.K. Chakravarthy ---------------------- Sky is not the limit for Air Warriors |
||
|
|
|
|
|
(permalink) |
|
First you did not provide a schematic as I asked. I know it is simple but simple mistakes will prevent it from working. We could write pages of text about the software and it would not help if you have not wired it correctly.
A quick look at you code shows that you are using the hardware SPI. The hardware expects the slave to play nice as in the document Mike pointed out. It may be easier (at least to start with) to bit-bang the code (not use the hardware SPI). Read the serial communication section of the data sheet to see what you need to do. The nice thing about this is that you can easily debug the data transfer one bit at a time using a logic probe of even a volt meter. I have never used the hardware SPI. If you want to go that route you need help from someone who has. You need to study and understand the processor datasheet, the compiler doc for the SPI routines, and the data sheet for the slave MCP3550. Again post the code you used. The schematic would be nice too, does not have to be fancy just readable. At least tell us what MCP3550 pins are connected to what processor pins.
__________________
search engine for electronic partsJunebug USB PIC programmer kit., USB Bit Wacker, Homepage The 15 Minute Printed Circuit Board! (+drill time) |
|
|
|
|
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|
|
|
||||
| Thread | Thread Starter | Forum | Replies | Latest |
| Major Help Needed Please: Peltier and 2 channel fan controller needed :S | MR Spade | General Electronics Chat | 16 | 23rd November 2007 03:10 PM |
| Help Needed | black2sic | Electronic Projects Design/Ideas/Reviews | 2 | 10th January 2007 05:19 AM |
| i2c help needed | jaspreet | Micro Controllers | 2 | 12th June 2006 07:23 AM |
| Your help is needed, please | tronicsdoc | General Electronics Chat | 1 | 14th November 2004 04:10 AM |
| help needed | sai_kiran | Electronic Projects Design/Ideas/Reviews | 1 | 24th September 2003 04:14 PM |