Content originally posted in LPCWare by graynomad on Mon Sep 19 16:51:49 MST 2011
Quote:
Are you just trying to read 2 MOSI signals
Essentially that's the case, although is a MOSI and a MISO with one master and (potentially) no SSEL. Even when there is an SSEL as I mentioned I've never seen a device that will pulse it between bytes, normally it's asserted, X bytes are transferred, then it's de-asserted.
Quote:
That's not too difficult
In the AVR world I come from I would agree, I'm just trying to come to grips with the LPC architecture, there's a lot to digest.
The more I get into it the more I like it but CPOL and CPHA seem to change the mode of operation and I find that quite bizarre. With them at 00, 01 or 10 you seem to need the SSEL pulse between frames. At 11 you don't.
What has that got to do with polarity and phase?
So anyway all I want to do is monitor two lines for storage and protocol analysis.
My understanding is that if I use CPOL = 1 and CPHA = 1 I get the non-SSEL-pulse mode I want, but bad luck if I want to change the clock polarity as that puts me back into a SSEL-pulse-required mode.
If that's the case I need an external XOR gate to (optionally) invert the clock signal.
Anyway forget my rant, I'm a newb at LPCs and I know on other forums I contribute to that I often have to tell someone to drop their preconceived ideas about [B]how[/B] to do something and just get them to say [B]what[/B] they want to do.
So if you can tell me how to monitor the two lines that would be great.
______
Rob