Line 33... |
Line 33... |
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 |
|
36 |
|
37 |
#define TDC_ENABLE PIN_B3 //enable pin for SPI communication with TDC |
37 |
#define TDC_ENABLE PIN_B3 //enable pin for SPI communication with TDC |
38 |
#use spi(DI=PIN_B1, DO=PIN_B0, CLK=PIN_B2, stream=TDC_stream, bits=32) // uses software SPI |
38 |
#use spi(DI=PIN_B1, DO=PIN_B0, CLK=PIN_B2, stream=TDC_stream, bits=32,baud=9600) // uses software SPI |
39 |
|
39 |
|
40 |
|
40 |
|
41 |
|
41 |
|