X-Git-Url: http://git.zerfleddert.de/cgi-bin/gitweb.cgi/proxmark3-svn/blobdiff_plain/c701d2c2faff177cc4a858c991d3f243a75877fe..8e7a6ce40927baad799e6433422d87edef8d489d:/armsrc/appmain.c diff --git a/armsrc/appmain.c b/armsrc/appmain.c index 47da5ad5..a5c082e5 100644 --- a/armsrc/appmain.c +++ b/armsrc/appmain.c @@ -206,23 +206,22 @@ void ModThenAcquireRawAdcSamples125k(int delay_off,int period_0,int period_1,BYT DoAcquisition125k(at134khz); } -//----------------------------------------------------------------------------- -// Read a TI-type tag. We assume that the tag has already been illuminated, -// and that the exciting signal has been turned off. That means that we just -// acquire the `one-bit DAC' bits from the comparator. -//----------------------------------------------------------------------------- void AcquireTiType(void) { int i; - int n = 4000; + int n = 5000; // clear buffer memset(BigBuf,0,sizeof(BigBuf)); - // Set up the synchronous serial port + // Set up the synchronous serial port PIO_DISABLE = (1<= n) return; - } - WDT_HIT(); - } -} + SSC_RECEIVE_FRAME_MODE = SSC_FRAME_MODE_BITS_IN_WORD(32) | SSC_FRAME_MODE_MSB_FIRST; + SSC_TRANSMIT_CLOCK_MODE = 0; + SSC_TRANSMIT_FRAME_MODE = 0; -void AcquireRawBitsTI(void) -{ LED_D_ON(); - // TI tags charge at 134.2Khz - FpgaSendCommand(FPGA_CMD_SET_DIVISOR, 88); //134.8Khz - FpgaWriteConfWord(FPGA_MAJOR_MODE_LF_READER); + + // modulate antenna + PIO_OUTPUT_DATA_SET = (1<= n) return; + } + WDT_HIT(); + } + + // return stolen pin ro SSP + PIO_DISABLE = (1<