- LED_A_ON();
- // Place FPGA in passthrough mode so as to stop driving the LF coil,
- // in this mode the CROSS_LO line connects to SSP_DIN
+ i = 0;
+ for(;;) {
+ if(SSC_STATUS & SSC_STATUS_RX_READY) {
+ BigBuf[i] = SSC_RECEIVE_HOLDING; // store 32 bit values in buffer
+ i++; if(i >= n) return;
+ }
+ WDT_HIT();
+ }
+
+ // return stolen pin ro SSP
+ PIO_DISABLE = (1<<GPIO_SSC_DOUT);
+ PIO_PERIPHERAL_A_SEL = (1<<GPIO_SSC_DIN) | (1<<GPIO_SSC_DOUT);
+}
+
+void AcquireRawBitsTI(void)
+{
+ LED_D_ON();
+ // TI tags charge at 134.2Khz
+ FpgaSendCommand(FPGA_CMD_SET_DIVISOR, 88); //134.8Khz
+ // Place FPGA in passthrough mode, in this mode the CROSS_LO line
+ // connects to SSP_DIN and the SSP_DOUT logic level controls
+ // whether we're modulating the antenna (high)
+ // or listening to the antenna (low)