Email: Password: Remember Me | Create Account (Free)

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
07/03/03 15:25
Read: times


 
#49975 - RE: AT89C51 interface with ADE7756
Responding to: ???'s previous message
>>Are the power supply pins connected correctly? (This one over again from my previous post becasue you did not confirm back yet if you verified all the power and ground pins).

5V is available both at the AVDD and DVDD ... checked

>>Check to make sure that the -CS pin goes to low level just before you start pulsing the SCLK and DIN lines. After you complete the transaction the -CS line must be set back high again.

initally i just kept it low all the times ...now i make it low before starting communication ... and pull it up back again ... checked

>>Have you verified that the SCLK high time that you are generating meets the t2 time of the data sheet of at least 150 ns wide?

8051 running at 11.059 Mhz crystal takes abt 1Us to execute one instruction so it automatically is greater than 150 ns ....i have also confirmed it ..checked

>>Have you verified that the SCLK low time that you are generating meets the t3 time of the data sheet of at least 150 ns wide?

8051 running at 11.059 Mhz crystal takes abt 1Us to execute one instruction so it automatically is greater than 150 ns ....i have also confirmed it ..checked


>> Have you verified that you are allowing for the minimum 4 us time periods for the data sheet parameters t7, t9, and t10 between bytes being written, between read command and first read byte and between bytes of the multi byte read?

i have met these requirements by using more than 1 NOP's and this condition is met...checked


6) Have you taken care to ensure that you send the bytes to the SPI interface in the order of bits starting with D7 first and finishing with D0?

yes i have taken care of that as well

7) Have you verified that during the time that you are trying to communicate with the chip that the -RESET signal pin is at a high level?

reset is connected to 5V permanently


8) When you are trying to do the read function have you verified that the first three bits you are sending to the command register are "0 0 0". The first zero is especially important because it sets the read mode of the AED7756 chip.

i used 2 probes so viewed clock and din together and very carefuly checked the edges of clock and data and found the command perfectly ok that correct data is available at the falling edges of clock




i have checked all these things by placing probes at ADE7756 pins

strange thing is some thing comes out(which is not noise ) of DOUT as soon as i switch off the 8051 only ..

please view code at this link
http://suraj.lums.edu.pk/~mraza/MET.ASM
(keep MET.ASM in capital )

circuit is taken from analog device an564.pdf available at analog site

i am very thankful to everyone who is helping me
regards
raza


List of 28 messages in thread
TopicAuthorDate
AT89C51 interface with ADE7756            01/01/70 00:00      
   RE: AT89C51 interface with ADE7756            01/01/70 00:00      
      RE: AT89C51 interface with ADE7756            01/01/70 00:00      
         RE: AT89C51 interface with ADE7756            01/01/70 00:00      
            RE: AT89C51 interface with ADE7756            01/01/70 00:00      
               RE: AT89C51 interface with ADE7756            01/01/70 00:00      
                  RE: AT89C51 interface with ADE7756            01/01/70 00:00      
                     RE: AT89C51 interface with ADE7756            01/01/70 00:00      
                        RE: AT89C51 interface with ADE7756            01/01/70 00:00      
                           RE: AT89C51 interface with ADE7756            01/01/70 00:00      
                              RE: AT89C51 interface with ADE7756            01/01/70 00:00      
                                 RE: AT89C51 interface with ADE7756(imp)            01/01/70 00:00      
                                    RE: AT89C51 interface with ADE7756(imp)            01/01/70 00:00      
                                       RE: AT89C51 interface with ADE7756(imp)            01/01/70 00:00      
                                          RE: AT89C51 interface with ADE7756(imp)            01/01/70 00:00      
                                             RE: AT89C51 interface with ADE7756(imp)            01/01/70 00:00      
                                                RE: AT89C51 interface with ADE7756(imp)            01/01/70 00:00      
                                                   RE: AT89C51 interface with ADE7756(imp)            01/01/70 00:00      
                                                      RE: AT89C51 interface with ADE7756(imp)            01/01/70 00:00      
   Analog and digital ground            01/01/70 00:00      
      RE: Analog and digital ground            01/01/70 00:00      
         RE: Analog and digital ground            01/01/70 00:00      
            RE: Analog and digital ground            01/01/70 00:00      
               Local ground points            01/01/70 00:00      
   RE: AT89C51 interface with ADE7756            01/01/70 00:00      
      UART with Timer 1 ?            01/01/70 00:00      
         RE: UART with Timer 1 ?            01/01/70 00:00      
            RE: bold, Michael            01/01/70 00:00      

Back to Subject List