| |||||
µVision® IDE µVision® Debugger | I/O Port SimulationThe µVision Debugger simulates the I/O ports found on many 8051, 251, 166, and ARM derivatives.
You may change the values on the pins of a port using the debugger defined variable for that port. For example, the following line: PORT1 = 0xAA when entered in the Command Window sets the value of the Port 1 pins. You may use bit-wise operators to set and clear specific pin states. For example: PORT1 |= 0x01 /* Set P1.0 */ PORT1 &= ~0x01 /* Clr P1.0 */ PORT1 ^= 0x01 /* Toggle P1.0 */
This example is available in a configuration for each architecture supported by the µVision IDE/Debugger. | ||||
| |||||