Advertisement
vinifr

init

Jul 14th, 2017
82
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.40 KB | None | 0 0
  1. tuSendBuf[0] = 0x84; // 0b10000110 -- Channel 0 and 0-3xvref range Single Ended
  2. tuSendBuf[1] = 0x88; // 0b10001000 -- Channel 0 and External Clock Mode Control
  3. //tuSendBuf[2] = 0x80; // 0b10000000 -- Channel 0 Start Conversation
  4. tuRes = spiTransfer(tuSendBuf,tuRecBuf,1,file);
  5.  
  6. tuSendBuf[0] = 0x88; // 0b10001000 -- Channel 0 and External Clock Mode Control
  7. tuRes = spiTransfer(tuSendBuf,tuRecBuf,1,file);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement