I'm using a PIC 18F8723 and Pin H.2 for SDI. It is tristated, and the external memory function is turned OFF.
I'm using a PIC 18F8723 and Pin H.2 for SDI. It is tristated, and the external memory function is turned OFF.
Charles Linquist
Hi Charles,
I can't help thinking it's a hardware issue.
Can you read the state of pin "manually" and get the correct state, perhaps the input is damaged?
Are you probing directly on the pin on the PIC, perhaps there's a bad solder joint or PCB track?
/Henrik.
Maybe I read the manual wrong, but in Mode5 yhr data is clocked on the falling edge (right before the falling edge); which could potentially give you a 0x10 reading (based on your picture). I don't think that directly answers your question, but you may as well make sure you are using the right mode (and the analyzer picture matches that mode).
I found part of the problem: The accelerometer is running at 2.5 V, the PIC is running at 5. I was using a Tiny Logic buffer to do the level shifting. The buffer was a Schmitt trigger type with a 2.2V threshold. The accelerometer output didn't always reach that level and the output didn't toggle reliably. I'm getting data through the buffer now (I raised the accelerometer Vcc to 3V by choosing a different LDO regulator for it). But the data still isn't right. Languer is probably right, and I'll try changing the mode.
I don't know why the PBP manual can't use normal datasheet terms, such as "the data is sampled on the clock rising edge" or something like that instead of the way they describe it!
Charles Linquist
Bookmarks