EEPMOV (W)
EEPMOV (MOVe data to EEPROM)
Block Data Transfer
EEPMOV.W Instruction and NMI Interrupt
If an NMI request occurs while the EEPMOV.W instruction is being executed, NMI interrupt
exception handling is carried out at the end of the current read-write cycle. Register contents are
then as follows:
ER5: address of the next byte to be transferred
ER6: destination address of the next byte
R4:
number of bytes remaining to be transferred
The program counter value pushed on the stack in NMI interrupt exception handling is the
address of the next instruction after the EEPMOV.W instruction. Programs should be coded as
follows to allow for NMI interrupts during execution of the EEPMOV.W instruction.
Example:
L1: EEPMOV.W
MOV.W
R4, R4
BNE
L1
During execution of the EEPMOV.B instruction no interrupts are accepted, including NMI.
97