4 Reading the Status Bit

Before using the MVIO feature, it is recommended to check the VDDIO2 Status (VDDIO2S) bit in the MVIO.STATUS (Status) register, to make sure that the voltage level of VDDIO2 is within the acceptable range of operation. If this bit is ‘1’, then VDDIO2 is within the acceptable range of operation.

Figure 4-1. MVIO.STATUS - Reading the Status bit

//Polling the VDDIO2S bit
if(MVIO.STATUS & MVIO_VDDIO2S_bm)
{
    //Do something if VDDIO2 is within acceptable range.
}