Other Parts Discussed in Thread: TPS92518
I have the SPI interface up and running, the lower bits seem to be working properly, but the upper bits do not appear to be working properly.
I figure I must be misunderstanding things.
When the part first turns on, the first message I get from SPI is an 0x8000, SPI Error. Is that correct?
Then, I can write registers, but the reply always seems to set the MSB, which is SPE and shouldn't be set, unless the rest of the bits are zero.
When I read them the upper bits also seem to be out of whack, at least SPE is.
I double checked with the scope to confirm that the data I'm getting back is what's being sent.
Note: I sent the commands twice so the send and receive data would match.
Here is a sample write command:
Here is a sample read command.
The write command is 0x821F, and the read command 0x0200, which should write register 0 and read register 0. The data seems to be correct, but the SPE bit being high is wrong according to the spec.
I can set the parity bit incorrectly and get the part to return 0x8000.
Any idea what I'm doing wrong with the part to cause this issue?
Thanks.