??? 11/25/09 23:29 Read: times |
#171176 - Never retype source code when posting Responding to: ???'s previous message |
Don't ever retype your code when posting. We need to see the exact code you are trying to read. Don't you think that it is way faster to do a copy/paste than to sit and retype text?
And as noted by Kai - your multimeter is intended to read static signals. It is not fast enough to pick up short pulses. The best way to view the signals is with an oscilloscope. But there are also cheap logic probes that can be used. They normally have a feature to light a LED even for a short pulse. The good way to test the electrical parts is to try to modify the firmware to run everything as slow as possible. An infinite loop directly before - or after - the readout of the ADC value, but before you restore the state of the /RD and /CS signals will keep the ADC constantly driving the data lines and make it easier for you to use a multimeter. It will also allow you to verify that the low state of the /RD and /CS is really reaching the ADC. If you have another processor pin free, then you can create a wait function that you can insert at different positions in the code, and that waits until you press a button coneected to that spare pin - just notice that such a concept requires you to create a little debounce logic, to avoid getting a single button press to be registered as multiple presses. |
Topic | Author | Date |
Receiving output from ADC0848. | 01/01/70 00:00 | |
Don't feed other pins without VCC | 01/01/70 00:00 | |
CS and RD working. | 01/01/70 00:00 | |
Wrong understanding of ADC! | 01/01/70 00:00 | |
But according to Mazidi... | 01/01/70 00:00 | |
No, you don't! | 01/01/70 00:00 | |
Sorry! | 01/01/70 00:00 | |
How do you see that? | 01/01/70 00:00 | |
The LCD shows a 255. | 01/01/70 00:00 | |
But this can have zillions of reasons... | 01/01/70 00:00 | |
Never retype source code when posting | 01/01/70 00:00 | |
Working! But with errors... | 01/01/70 00:00 | |
You must convert raw ADC reading into temperature | 01/01/70 00:00 | |
Self-heating?![]() | 01/01/70 00:00 | |
Configured as push-pull? | 01/01/70 00:00 | |
It's a P89v51RD2 | 01/01/70 00:00 | |
Difference only noticeable if contention | 01/01/70 00:00 | |
then STOP what you are doing | 01/01/70 00:00 |