PRELIMINARY
SF104-P01
SF3013M Fingerprint Image Sensor Module User Manual
Page - 25
Several timing parameter should be kept in mind for good estimation of timing:
Upon power up, reset, or whenever detection mode is turned off, the delay time from
sending the start command to the first data byte available is about 180 pclk cycles.
For the subsequent scans, the delay time is reduced to 19 pclk cycles.
Image sample is taken at the speed of pclk, i.e., one pixel per pclk cycle.
There is a small delay of 11 pclk cycles between lines.
4.5 A sample session
The following sample procedure demonstrates a typical session.
function spiwrite(char *data, int cnt)
{
GPIO.SSEL = 0;
for (i=0; i< cnt; i++)
SPIWRITE(data[i]);
GPIO.SSEL = 1;
}
main ()
{
GPIO.RSTN=1;
GPIO.SSEL=1;
// make sure hardware reset is enabled
spiwrite({0x4A,0x00,0x00}, 3);
// hardware reset