STC8A8K64D4 Series Manual
UR2RIF: UR2R_DMA interrupt request flag bit. When UR2R_DMA receives data, the hardware will automatically set
UR2RIF to 1. If the UR2R_DMA interrupt is enabled, it will enter the interrupt service routine. The flag bit needs
to be cleared by software
RXLOSS: UR2R_DMA receive data discard flag. During the UR2R_DMA operation, when the XRAM bus is too busy
to clear the receive FIFO of the UR2R_DMA and the data received by the UR2R_DMA is automatically discarded,
the hardware will automatically set RXLOSS to 1. The flag bit needs to be cleared by software
23.6.10 UR2R_DMA transfer total byte register (DMA_UR2R_AMT)
DMA_UR2R_AMT: Set the number of data bytes that need to automatically receive.
Note: The actual number of bytes is (DMA_UR2R_AMT+1), that is, when DMA_UR2R_AMT is set to 0, 1
byte is transferred, and when DMA_UR2R_AMT is set to 255, 256 bytes are transferred.
23.6.11 UR2R_DMA transfer complete byte register
(DMA_UR2R_DONE)
DMA_UR2R_DONE: The number of bytes that have been received currently.
23.6.12 UR2R_DMA Receive Address Registers (DMA_UR2T_RXAx)
DMA_UR2R_RXA: Set the target address for automatically receiving data. Data will be written from this address when
performing a UR2R_DMA operation.