Hi S,Difference between NSASPOOK's scope and Camerart is NAS's data is read on rising edge, Camerart is read on dropping edge of clock. Those are two different configurations...
The register bits (and datasheet descriptions) can be confusing (and language functions or defines to set modes) as to what SPI mode is actually being set. CKP-CPOL CKE-CPHA are not necessarily equivalent for setting the SPI mode.Hi M,
You're dead on topic, as I'm also confused
Here is the CKE section from the PIC D/S
--------------------------------------------------------
bit 6 CKE: SPI Clock Select bit(1)
1 = Output data changes on clock transition from active to idle
0 = Output data changes on clock transition from idle to active
-----------------------------------------------------
I have set CKE to 0, as the CLK is set to LOW idle. It's confusing!
I'll have to re-think.
C
Hi N,The register bits (and datasheet descriptions) can be confusing (and language functions or defines to set modes) as to what SPI mode is actually being set. CKP-CPOL CKE-CPHA are not necessarily equivalent for setting the SPI mode.
Trust your scope, looking at the physical data line signals for what's being set.
| Thread starter | Similar threads | Forum | Replies | Date |
|---|---|---|---|---|
|
|
CPOL CPHA CKE CKP SMP and dyslexia | Microcontrollers | 20 | |
|
|
18F46K20 SPI SCK error | Microcontrollers | 1 | |
|
|
18F46K20 HW UART Oshonsoft CODE | Microcontrollers | 18 | |
|
|
18F46K20 intermittent programming | Microcontrollers | 21 | |
|
|
18F46K20 2x PCBs 1x works the other doesn't | Microcontrollers | 10 |