??? 04/07/04 20:14 Read: times |
#68111 - RE: LM75 Responding to: ???'s previous message |
It's SPI, not I2C.
Vinod, have you run this code in a simulator to see if it works and the timing is correct? Do you have access to a scope to see timing of the actual signals? Saying "It doesn't work" isn't terribly helpful...what have you done to try to debug this code? If it simply doesn't do *anything* you will have to first start by verifying that your program is in the uC to run. I usually have an LED on my board someplace, and I'll set it at various points in my code to verify that the program counter did indeed pass through a given piece of code. I applaud you when you say your program didn't work, instead of the too-common "my program works, but something is wrong" ... Not that the hardware can't be bad, but so often the dang thing is doing just what we told it to do, not what we wanted it to do. Dennis |