Thứ Tư, 28 tháng 3, 2018

[MCU AVR32] AVR32 vs FPC1021

Devices:
- Fingerprint sensor FPC1021
- MCU AT32UC3A3128S (128K Flash, 64 + 32x2 SRAM)

Follow this tutorial first to initialize SPI module in your device:
http://asf.atmel.com/docs/3.15.0/uc3a/html/avr32_drivers_spi_quick_start.html

Experiences:
- Did you manually pull CS_N pin to LOW and HIGH according to diagrams when you start a transmission?
- Ans: In this diagram, we have to pull the CS_N pin to LOW initially, then after command 0x24 is performed, we have to pull the pin to HIGH, followed by pulling the pin to LOW consequently. Next, we will send 0x1C and a dummy byte(0) before pulling the pin to HIGH again to finish transmission. Lastly, to get the data from the sensor, we first send command D4 before sending a long array of dummy byte to get image data.


- Did you send a dummy byte when you want to get a data byte?


Không có nhận xét nào:

Đăng nhận xét