cchappyboy
Joined: 03 Dec 2008 Posts: 45
|
There is not clock output from SPI! |
Posted: Thu Feb 10, 2011 12:46 pm |
|
|
I used dspic33fj32mc, ccs compiler 4.118
The code is like this,
Code: |
#use delay(clock=8M)
#pin_select SDI1=pin_b3
#pin_select SDO1=pin_c1
#pin_select SCK1OUT=pin_c2
#use spi(spi1,master,bits=8)
|
and this,
Code: |
setup_spi(spi_master |SPI_L_TO_H | SPI_XMIT_L_TO_H|spi_clk_div_64 ); |
The problem is I don't even get clock output . |
|