OperationChapter 14 Automatic Transfer ControllerXIV - 131314-3-4 Setting the Data Transfer ModesData transfer modesThere are two types of ATC1 transfers, standard and burst, and sixteen transfer modes. Set the transfermode in ATC1 control register 0 (AT1CNT0).Standard and burst transfersThe ATC1 transfer modes are divided into standard transfer modes and burst transfer modes. There arefourteen standard modes, 0 to D, and two burst modes, E and F.In standard modes, the operation specified for that mode executes each time ATC1 is activated. Whenthe transfer ends, the value set in the transfer counter (AT1TRC) decrements and bus control returns tothe MCU core. This operation repeats until the transfer counter reaches x'00'. When this happens, ATC1completes the final data transfer, then generates an interrupt (ATC1IRQ).For instance, if the initial transfer counter value is x'05', and the ATC1 activation factor is set to a timer 0interrupt, ATC1 is activated each time timer 0 overflows and the automatic transfer begins. After fifthdata transfers (activated by fifth timer 0 overflow) is complete, the transfer counter value becomes x'00',an ATC1 interrupt occurs, and the operation ends. Timer 0 overflows occurring after this point do notactivate ATC1. For standard transfers, the program must set the transfer counter to the number of ATC1activations required.In burst modes, once ATC1 is activated, it transfers in one operation the number of bytes set in thetransfer counter (AT1TRC). After the burst transfer begins, the transfer counter decrements each timeATC1 transfers one byte of data. When the counter reaches x'00', ATC1 generates an interrupt(ATC1IRQ) and the burst transfer ends. For burst transfers, the program must set the transfer counter tothe number of data bytes in the burst transfer.An external interrupt 0 can also be used to shut down ATC1 during a burst transfer. To enable thisfunction, set the burst transfer stop enable bit (BTSTP) in ATC1 control register 1 (AT1CNT1) to 1.When BTSTP = 1, ATC1 data transfers stop when the external interrupt 0 interrupt request flag (IRQ0IRflag in the IRQ0ICR register) is set. In an emergency shutdown, the transfer counter and memory pointersave the values they contained prior to the shutdown. When the interrupt service routine ends, a newactivation factor restarts ATC1, and the burst transfer begins transferring data from the point at which itstopped.[ Table 14-1-2 Transfer Modes ]