PRELIMINARY
SF104-P01
SF3013M Fingerprint Image Sensor Module User Manual
Page - 27
// delay 180 pclk cycle or wait for FIFO status is half-full
GPIO.SSEL = 0;
SPISEND(0x03);
repeat {
byte=SPIREAD({0x03});
} until (byte.bit0 == 1);
GPIO.SSEL = 1;
// read image
GPIO.SSEL = 0;
SPISEND(0x01);
for (i=0; i<(160*160); i++)
image[i] = SPIREAD(0x01);
GPIO.SSEL = 1;
if (checkimage() != TRUE) {
adjust_setting();
goto again;
}
// waiting for the finger to be removed
// start detect mode
spiwrite({0x4a,0xa5},2);
spiwrite({0x4f,0x00},2); // inform change of geometry
GPIO.SSEL = 0;
SPISEND(0x03);
repeat {
byte=SPIREAD({0x03});