Typewriter User Manual

6- 32 MC68340 USER’S MANUAL MOTOROLA
6.7.5 Function Code Register (FCR)
The FCR contains the source and destination function codes for the channel. This register
is accessible in either supervisor or user space. The FCR can always be read or written to
when the DMA module is enabled (i.e., the STP bit in the MCR is cleared).
FCR1, FCR2 $78B, $7AB
76543210
SFC DFC
RESET:
UUUUUUUU
U = Unaffected by reset. Supervisor/User
SFC—Source Function Code Field
This field can be used to specify the source access to a certain address space type.
The source function code bits are defined in Table 6-6.
DFC—Destination Function Code Field
This field can be used to specify the destination access to a certain address space type.
The destination function code bits are defined in Table 6-6.
Table 6-6. Address Space Encoding
Function Code Bits
3 2 1 0 Address Spaces
0 0 0 0 Reserved (Motorola)
0 0 0 1 User Data Space
0 0 1 0 User Program Space
0 0 1 1 Reserved (User)
0 1 0 0 Reserved (Motorola)
0 1 0 1 Supervisor Data Space
0 1 1 0 Supervisor Program
Space
0 1 1 1 CPU Space
1 x x x DMA Space
NOTE
Although FC3 can be set for DMA transfers to distinguish the
source or destination space from other data or program
spaces, it is not required to be set. Since the CPU32 currently
has only 3-bit SFC and DFC capability, it cannot emulate
FC3 = 1 at this time. However, it is recommended that FC3 be
set to one to distinguish DMA or CPU access during debug.
Frees
cale Semiconductor,
I
Freescale Semiconductor, Inc.
For More Information On This Product,
Go to: www.freescale.com
nc...