Panasonic MN101C77C Cell Phone User Manual


 
Chapter 14 Automatic Transfer Controller
Setup Example
XIV - 34
14-4 Setup Example
An example setup procedure, with a description of each step is as follows ;
(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.
Setup Procedure
(1) Set the data transfer mode.
AT1CNT0 (x'3FD0')
bp7 :FMODE
bp6 :AT1ACT = 0
bp5-2 :AT1MD3-0
bp0 :AT1EN = 0
(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 :BTSTP
bp3-0 :AT1IR3-0
(6) Enable ATC operation.
AT1CNT0 (x'3FD0')
bp0 :AT1EN = 1
Description