2025-08-13 5:50 AM
I have been trying to use the EV-VNF1048F with the vnf1048f high side switch on it to act as an SPI slave to an external ATSAME54 microcontroller master. I just want to read the current that the efuse experiances when connected between a DC power supply and a load. However I cannot seem to turn on the high side switch functionality and reliably read the current output. The datasheet for the fuse is very confusing. I follow the steps of sending an SPI frame to set the unlock bit to switch the fuse into unlocked state of CR3. Then I set the enable bit and the high side switch bit of CR1 to go into the unlocked state and turn on the HS MOSFET. I also toggle the watchdog bit every 50 ms. However, the switch does not behave with the correct functionality. I have attched my main.c file for reference