Download fulltext - DiVA Portal
Transcript
36 CHAPTER 6. IMPLEMENT APPLICATION ON VNC consider it. 2: The second mode is normal mode, which CPU never stop running. It cost too much power consumption under this mode. 3: The last mode is power down mode, when PN532 works in this model, oscillator is stopped when it is idle. PN532 works under low power mode likes a wheel we can see in figure 6.2. It has four state: Idle, Initialize, Listen and Data Communication. When it doesn’t work it always in IDLE power down mode, once start one phase works after another, it will not stop until user stop or remote device, after that it will go back to idle power down phase. IDLE(power down) Data Communication initialize Listen Figure 6.3. PN532 Low Power working state Wake Up Low power mode can save power consumption, increase sensor nodes life time. As the cost, it takes 50 ms to wake up the PN532 from sleeping. In order to exit from Power Down mode, the host controller need to send a command to the PN532 on th HSU link. Besides to avoid the command will not be lost or partially received, either we send a large preamble containing dummy data command or a 0x55 dummy byte and wait for the waking up delay before sending the command frame. In this thesis project, we use 0x55 0x55 0x00 0x00 0x00 0x00 0x00 0xFF 0x03 0xFD 0xD4 0x14 0x01 0x17 0x00 command to wake up the PN532. Here SAMConfiguration command D4 14 which is used to select the data flow path by configuring the internal serial data switch. D4 14 01 means the SAM is not used and it works under normal mode. And IRQ byte is not present, it indicates PN532 ignoring the IRQ pin.