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
Bit
7
6
5
4
3
2
1
0
Access
R
Reset
0
Bit 0 – VDDIO2S
VDDIO2 Status
This bit shows the state of the VDDIO2 voltage level.
Writing to this bit has no effect.
Value
Description
0
The VDDIO2 supply voltage is below the acceptable range for operation. The MVIO pins are tri-stated.
VDDIO2S
The VDDIO2 supply voltage is within the acceptable range for operation. The MVIO pin configurations
are loaded from the corresponding PORT registers.
1
//Polling the VDDIO2S bit
if(MVIO.STATUS & MVIO_VDDIO2S_bm)
{
//Do something if VDDIO2 is within acceptable range.
}
TB3287
Reading the Status Bit
©
2020 Microchip Technology Inc.
Technical Brief
DS90003287A-page 9