Setup Example - Panasonic F77G User Manual

Microcomputer mn101c series
Table of Contents

Advertisement

Chapter 14
Automatic Transfer Controller
14-4

Setup Example

An example setup procedure, with a description of each step is as follows ;
Setup Procedure
(1) Set the data transfer mode.
AT1CNT0 (x'3FD0')
bp7
bp6
bp5-2
bp0
(2) Set memory pointer 0.
AT1MAP0L (x'3FD3')
AT1MAP0M (x'3FD4')
AT1MAP0H (x'3FD5')
(3) Set memory pointer 1.
AT1MAP1L (x'3FD6')
AT1MAP1M (x'3FD7')
AT1MAP1H (x'3FD8')
(4) Set the transfer data counter.
AT1TRC (x'3FD2')
(5) Select the ATC1 activation factor.
AT1CNT1 (x'3FD1')
bp4
bp3-0
(6) Enable ATC operation.
AT1CNT0 (x'3FD0')
bp0
XIV - 34
Setup Example
:FMODE
:AT1ACT
= 0
:AT1MD3-0
:AT1EN
= 0
:BTSTP
:AT1IR3-0
:AT1EN
= 1
Description
(1) Select the data transfer mode with the AT1MD
flag in the AT1CNT0 register.
No matter which mode you select, setting the
FMODE flag disables the incrementing function
in memory pointer 0.
Normally set this flag to 0.
Note that you must set the ATC1 enable flag,
AT1EN, to 0 at this step.
Only enable ATC1 after setting all the other
registers.
(2) Depending on the transfer mode you selected,
set the source or destination address in the
AT1MAP0 registers.
(3) Depending on the transfer mode you selected,
set the source or destination address in the
AT1MAP1 registers.
(4) Set the ATC1 data transfer count in the
AT1TRC register.
(5) Select the ATC1 activation factor with the
AT1IR flag in the AT1CNT1 register. If you
select a burst-type transfer mode, then you
must also enable or disable ATC1 shutdown at
this step, by setting the BTSTP.
(6) Enable ATC1 data transfers with the AT1EN flag
in the AT1CNT0 register.

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Panaxseries mn101c77cPanaxseries mn101f77g

Table of Contents