Rev 1744 Rev 1745
Line 31... Line 31...
31 #FUSES VREGEN //USB voltage regulator enabled 31 #FUSES VREGEN //USB voltage regulator enabled
32 #FUSES ICPRT //ICPRT enabled 32 #FUSES ICPRT //ICPRT enabled
33   33  
34 #use delay(clock=20000000) 34 #use delay(clock=20000000)
35 #use rs232(baud=9600,parity=N,xmit=PIN_B7,rcv=PIN_B6,bits=8) 35 #use rs232(baud=9600,parity=N,xmit=PIN_B7,rcv=PIN_B6,bits=8)
-   36  
-   37 #define TDC_ENABLE PIN_B3 //enable pin for SPI communication
36 #use spi(DI=PIN_B1, DO=PIN_B0, CLK=PIN_B2, ENABLE=PIN_B3, stream=TDC_stream) // uses software SPI 38 #use spi(DI=PIN_B1, DO=PIN_B0, CLK=PIN_B2, stream=TDC_stream, bits=32) // uses software SPI
37   39  
38   40  
39   41