I came from you another site AD7794. And I got one source cord for AD7794's from you.
We are controling for our product by your ADuC7026. So I refered your source code AD7794 to our development.The source code AD7794 you sent seem to communicate with ADC via I/O port pin.
So why dont you use SPI-controler on ADuC7026 for this communication?
Now we are getting the trouble of the control by SPI-controler on ADuC7026.Can we use your SPI-controler of ADuC7026 for any control?
I had a quick look into the AD7794 data sheet and it should not be a problem to use the HW SPI on the ADuC7026 to communicate with this part. The SPI frames are all 8-bit or multiple of 8-bit. So you should easy be able to change the SW you have from a I/O-pin SW SPI to the HW SPI of the ADuC7026.
Thank you for your good responce MMA,
Well,,,,,difficult to my understanding sorry.
SPI controler of Hardware is SPI=CPU what you say ,so no problem on the datasheet of CPU ,correct?
Anyway ,for proceed our development , do you have a sample source file that work by same timing as ADC7794 by hardware SPI ?
Or,,, Are there the setting of hardware SPI controler ,and the wave form on that time?
They are very useful for us If you have them.
Sorry we do not have a explicit sample code for using the ADuC7026 with a AD7794, but there are general examples on the Evaluation CD demonstrating the HW SPI on the ADuC7026.
For a default installation this is on C drive :
C:\ADuC7XXXV0.2\ADuC702x\code\RealView Code examples\SPI\master
Sorry to late.
And Thank you so much MMA!