Author |
Message |
Topic: SPI trouble - no sck or sdo activity at all |
Bones
Replies: 11
Views: 16585
|
Forum: General CCS C Discussion Posted: Mon Apr 14, 2014 8:00 am Subject: SPI trouble - no sck or sdo activity at all |
That is in the manual.
"The pins are programmed according to the information in this directive (not the operations actually performed)."
Yes, I read that line and it didn't make any se ... |
Topic: SPI trouble - no sck or sdo activity at all |
Bones
Replies: 11
Views: 16585
|
Forum: General CCS C Discussion Posted: Mon Apr 14, 2014 5:09 am Subject: SPI trouble - no sck or sdo activity at all |
It's not clear to me but with FIXED_IO, if its not declared as an output on that port, then it is fixed as an input. And my SPI pins are outputs on B1 and 3, and presumably being messed up by this por ... |
Topic: SPI trouble - no sck or sdo activity at all |
Bones
Replies: 11
Views: 16585
|
Forum: General CCS C Discussion Posted: Mon Apr 14, 2014 4:27 am Subject: SPI trouble - no sck or sdo activity at all |
OK, as usual is a mixture of dumb mistakes and oddities which spread the fog of confusion.
I think my simple example program didn't work because I accidentally selected 18LF45K50 instead of 18F45K50 ... |
Topic: SPI trouble - no sck or sdo activity at all |
Bones
Replies: 11
Views: 16585
|
Forum: General CCS C Discussion Posted: Mon Apr 14, 2014 3:46 am Subject: SPI trouble - no sck or sdo activity at all |
Thanks for the tip.
I think I've literally just cracked it, just in the middle of checking it all out. Will report back. |
Topic: SPI trouble - no sck or sdo activity at all |
Bones
Replies: 11
Views: 16585
|
Forum: General CCS C Discussion Posted: Sat Apr 12, 2014 10:49 pm Subject: SPI trouble - no sck or sdo activity at all |
Thanks for taking the time PCM.
I can't check details until Mon am, but from memory:
Well spotted, it's not the LF chip just F, finger trouble on selecting the drop down list for this example prog ... |
Topic: SPI trouble - no sck or sdo activity at all |
Bones
Replies: 11
Views: 16585
|
Forum: General CCS C Discussion Posted: Sat Apr 12, 2014 1:43 am Subject: SPI trouble - no sck or sdo activity at all |
Point taken PCM, I'll adjust the timing, but we have a nice storage oscilloscope and I can capture the GPIO waggling from the same loop. (I've just made this project for the post, I have a fuller prog ... |
Topic: SPI trouble - no sck or sdo activity at all |
Bones
Replies: 11
Views: 16585
|
Forum: General CCS C Discussion Posted: Fri Apr 11, 2014 12:17 pm Subject: SPI trouble - no sck or sdo activity at all |
I'm programming a PIC18F45K50 with MPLAB X v2.05 + CCS v5.024
I'm using the internal osc.
I can't get the SPI to do anything no matter what I try. I'm newish to PICs so it could be something obvious ... |
|