tkvenki
New Member
Hi All,
I have written a code to write and read from the RTC chip DS1305. I'm using VS2000 as my SPI master. After Writing some data to the RTC. When I try to read it I'm getting the following output. I observed the waveforms are also in accordance with the output.
--------------------------------------------------------------------------
Output:
Starting SPI application................
The device SPI is opened
Configuration is successfully set!!
After Read --> 255 0 0 0 0 128 128
------------------------------------------
After Read --> 255 0 0 0 0 128 128
------------------------------------------
After Read --> 255 0 0 0 0 128 128
------------------------------------------
--------------------------------------------------------------------------
Please find the code attached to this post. Please let me know if there is some obvious mistakes. Also suggest me some hardware issues that i can look into.
I have written a code to write and read from the RTC chip DS1305. I'm using VS2000 as my SPI master. After Writing some data to the RTC. When I try to read it I'm getting the following output. I observed the waveforms are also in accordance with the output.
--------------------------------------------------------------------------
Output:
Starting SPI application................
The device SPI is opened
Configuration is successfully set!!
After Read --> 255 0 0 0 0 128 128
------------------------------------------
After Read --> 255 0 0 0 0 128 128
------------------------------------------
After Read --> 255 0 0 0 0 128 128
------------------------------------------
--------------------------------------------------------------------------
Please find the code attached to this post. Please let me know if there is some obvious mistakes. Also suggest me some hardware issues that i can look into.