I got a PN512 IC (NFC controller from NXP) interfacing with a MCU over SPI and ChibiOS. Everything seems to be working fine, i can read the registers and they returned value matches with the reset value specified on the datasheet. This means that there is no problem on the SPI (As the IC is answering my commands sucessfully). The problem arises when i try to read the CommandReg register (at address 01h), the reset value must be 20h (or 00100000b) but it returns me 3Fh (or 00111111b) meaning that it has the PowerDown and SoftReset enabled at the same time and the datasheet says that this is not possible ("The bit Power Down cannot be set, when the command SoftReset has been activated"). At this point i'm stuck as the PowerDown bit must be set to 0 (by the IC itself) to do any other operation on it.
Anyone have a clue or hint on what may be happening here? I checked every VDD pin and all of them gets feed by a nice filtered 3.3v, the AVDD pin is connected with a inductance in series with the VDD line plus a smoothing cap.
Any help will be highly appreciated!