Panasonic MN101C77C, F77G user manual Setup Example, Fmode, AT1ACT, AT1EN, Btstp

Models: F77G MN101C77C

1 544
Download 544 pages 59.61 Kb
Page 472
Image 472

Chapter 14 Automatic Transfer Controller

14-4 Setup Example

An example setup procedure, with a description of each step is as follows ;

 

Setup Procedure

 

 

Description

(1)

Set the data transfer mode.

(1)

Select the data transfer mode with the AT1MD

 

AT1CNT0 (x'3FD0')

 

 

flag in the AT1CNT0 register.

 

bp7

:FMODE

 

 

No matter which mode you select, setting the

 

bp6

:AT1ACT

= 0

 

FMODE flag disables the incrementing function

 

bp5-2

:AT1MD3-0

 

 

in memory pointer 0.

 

bp0

:AT1EN

= 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)

Set memory pointer 0.

 

(2)

Depending on the transfer mode you selected,

 

AT1MAP0L (x'3FD3')

 

 

set the source or destination address in the

 

AT1MAP0M (x'3FD4')

 

 

AT1MAP0 registers.

 

AT1MAP0H (x'3FD5')

 

 

 

(3)

Set memory pointer 1.

 

(3)

Depending on the transfer mode you selected,

 

AT1MAP1L (x'3FD6')

 

 

set the source or destination address in the

 

AT1MAP1M (x'3FD7')

 

 

AT1MAP1 registers.

 

AT1MAP1H (x'3FD8')

 

 

 

(4)

Set the transfer data counter.

(4)

Set the ATC1 data transfer count in the

 

AT1TRC (x'3FD2')

 

 

AT1TRC register.

(5)

Select the ATC1 activation factor.

(5)

Select the ATC1 activation factor with the

 

AT1CNT1 (x'3FD1')

 

 

AT1IR flag in the AT1CNT1 register. If you

 

bp4

:BTSTP

 

 

select a burst-type transfer mode, then you

 

bp3-0

:AT1IR3-0

 

 

must also enable or disable ATC1 shutdown at

 

 

 

 

 

this step, by setting the BTSTP.

(6)

Enable ATC operation.

 

(6)

Enable ATC1 data transfers with the AT1EN flag

 

AT1CNT0 (x'3FD0')

 

 

in the AT1CNT0 register.

 

bp0

:AT1EN

= 1

 

 

 

 

 

 

 

 

XIV - 34

Setup Example

Page 472
Image 472
Panasonic MN101C77C, F77G user manual Setup Example, Fmode, AT1ACT, AT1EN, Btstp