??? 01/31/07 11:25 Read: times Msg Score: +1 +1 Good Answer/Helpful |
#131777 - CPOL = 0, CPHA = 0 Responding to: ???'s previous message |
Hi Robert,
From your first post, anl spcon, #0F7h ;cpol = 1 (?? maybe cpol= 0)
orl spcon, #04h ;cpha = 1 CPOL = 0, CPHA = 0 is good for MAX6957. See this figure of MAX6957 datasheet "Figure 5. 16-Bit Write Transmission to the MAX6957" (MAX6957.pdf p9) - SCLK is held '0' just before the first SCLK - CPOL = 0 - MAX6957 fetches DIN at the first edge of SCLK - CPHA = 0 From the trace of your post, CPOL is already set to '0', but CPHA seems to be '1'. Tsuneo |