17.7.3 Input Value
Name: | IN |
Offset: | 0x02 |
Reset: | 0x00 |
Property: | - |
Access to the Virtual PORT registers has the same outcome as access to the regular registers but allows for memory specific instructions, such as bit manipulation instructions, which cannot be used in the extended I/O Register space where the regular PORT registers reside.
Bit | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 | |
IN[7:0] | |||||||||
Access | R/W | R/W | R/W | R/W | R/W | R/W | R/W | R/W | |
Reset | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 |
Bits 7:0 – IN[7:0] Input Value
Writing a ‘0
’ to bit n in this bit field has no effect.
Writing a ‘1
’ to bit n in this bit field will
toggle the corresponding bit in PORTx.OUT.
If the digital input buffer is disabled, the input is not sampled, and the bit value will not change. The digital input buffer for pin n (Pxn) can be configured in the Input/Sense Configuration (ISC) bit field in the Pin n Control (PORTx.PINnCTRL) register.
The available states of each bit n in this bit field is shown in the table below.
Value | Description |
---|---|
0 | The voltage level on Pxn is low |
1 | The voltage level on Pxn is high |