DATERD
DATERD, DATERDP
DATERD instruction reads RTC and saves the result to the Destination.
| |
D | Destination |
Instruction | Device address | No. of Steps | Flag | |||||||||||||||
M | X | Y | K | L | F | T | C | S | Z | D | @D | Int. | Error | Zero | Carry | |||
DATERD DATERDP | D | o | - | o | o | o | - | o | o | - | o | o | o | - | 2 | o | - | - |
When enabled, DATERD instruction reads RTC and saves the result to the Destination.
Year has 4 digits.
Day of week (D+6) shows Sunday to Saturday as below.
Day of week | Sunday | Monday | Tuesday | Wednesday | Thursday | Friday | Saturday |
Saved value | 0 | 1 | 2 | 3 | 4 | 5 | 6 |
Example)
If X01 is ON, DATERDP instruction reads RTC and writes a date value to D0 ~ D6.