PRELIMINARY
SF104-P01
SF3013M Fingerprint Image Sensor Module User Manual
Page - 26
GPIO.SRST=0;
GPIO.SRST=1;
// initialize registers
// detect threshold (REG8=128)
// detect divider (REG9=128)
// enable analog (REG10[0]=1)
# enable clock (REG10[2]=1)
# enable detect (REG10[5]=1)
# enable interrupt pin (REG11[6]=1)
spiwrite({0x40,0x32,0xE5,0x50,0x25,0x00,0x00,0x00,0x00,0x00,0x20,0x85,0x15,0x00,0x00,0x9F,0x9F},
17);
spiwrite({0x50,0x00},2); // inform chang of geometry
// software reset
spiwrite({0xc0},1);
// wait for interrupt
while (~GPIO.INTR)
nop;
// stop detect mode
spiwrite({0x4a,0x85},2);
spiwrite({0x4f,0x00},2); // inform change of geometry
again:
// start image scan
spiwrite({0x02},1);