List of Registers
There are 64 user 16-bit registers, addressed from R00
to R3F
. These registers can be accessed using register read/write instructions.
tip
Some registers are used dedicatedly for keeping values from specific sensors or internal functions.
For instance,
R24
~R27
store the conversion result of analog input channelsAIN0
~AIN3
if AD Conversion function is enabled;R31
~R33
store the detected R/G/B components of the color sensor if color sensorTCS34725
is enabled.
note
Run-time values of all registers are shown on page 4~7 on the secondary display.
Indexâ
R00
~R0F
â
Register | Function |
---|---|
R00 | Register for comparison at run-time |
R01 ~R0F | User registers |
R10
~R1F
â
Register | Function |
---|---|
R10 ~R1F | User registers |
R20
~R2F
â
Register | Function |
---|---|
R20 ~R21 | User registers |
R22 | State of digital inputs |
R23 | Flag register of timer |
R24 | Analog input AIN0 |
R25 | Analog input AIN1 |
R26 | Analog input AIN2 |
R27 | Analog input AIN3 |
R28 | Peripheral enables |
R29 ~R2B | Accelerometer X/Y/Z |
R2C ~R2E | Gyroscope X/Y/Z |
R2F | Temperature |
R30
~R3F
â
Register | Function |
---|---|
R30 | Humidity |
R31 ~R33 | R/G/B components of color detection sensor |
R34 ~R37 | System reserved |
R38 ~R3A | Year/Month/Date |
R3B | Day of week |
R3C ~R3E | Hour/Minute/Second |
R3F | State of user input keys |