| ??? 07/03/03 14:03 Read: times |
#49956 - RE: AT89C51 interface with ADE7756 Responding to: ???'s previous message |
Muhammad Raza Saeed:
You said you used the oscilloscope to view the SCLK and the DIN pins. But still no DOUT signal. Here are more things to check at ADE7756: 1) 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). 2) 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. 3) 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? 4) 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? 5) 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? 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? 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? 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. In case other readers are interested here is the link to the ADE7756 Data Sheet. Surely Muhammad Raza Saeed, you have this data sheet in hand and have looked at it carefully. If you check each of the above items let us know what you find for each one. Then if after the correct handling for each of these is in place and your interface is still not working correctly then we can try to help some more. For more help however we do need to know if you were able to verify the things we asked you to check. For example I do not know if you have ensured that the analog and digital ground pins are both connected or not. This part will not function if one or both have been left open. The ditital section also requires that there be a VDD power supply on the DVDD pin too, Finally, when checking with your oscilloscope try to check right at the pins of the ADE7756 and not at the pins of the microcontroller. This is important becasuse this way you are checking for proper chip connection. If you have a wiring error you cannot see it if you look away from the chip itself. Good Luck. We hope to hear back how it goes. Michael Karas |



