
Application Note 073—————————————————Product and company names are trademarks or trade names of their respective companies.340993B-01 © Copyright 1997
10Downloading ProceduresA Widows terminal settings file is also included on the disk. Execute the following steps to download a program:1. Start Windo
11In the DMA I/O test routine, the channel is initialized by clearing the status register and loading the byte transfer valuein the byte counter regis
12puts()PrintHex()RET340BUG()References1. MC68340 Integrated Processor with DMA User’s Manual, Motorola Inc., 1992.2. TNT4882 Programmer Reference Man
13Register.H#ifndef __REGISTER_H#define __REGISTER_H #define BASE 0x00FFE800 #define DIR *(unsigned char *) (BASE + 0x00) #define CDOR *(
14 #define B_S3 (SPSR & 0x04) #define B_S4 (SPSR & 0x08) #define B_S5 (SPSR & 0x10) #define B_S6 (SPSR
15 #define ClrREN 0x17 #define REQT 0x18 #define REQF 0x19 #define TCSE 0x1A #define LTNnCont 0x1B #define
16 #define AUXRJ 0xF0 #define TM(value) (AUXRJ | value) #define CNT3 *(unsigned char *) (BASE + 0x2D) #define CNT2 *(unsigned ch
17 #define t13 0xC0 #define T13(value) (t13 | value) #define HIER *(unsigned char *) (BASE + 0x4D) #define E_PMTwEOS 0x01 #d
18 #define B_bsrDAV (BSR & 0x40) #define B_ATN (BSR & 0x80) #define BCR *(unsigned char *) (BASE + 0x7D) #define E_REN
19MC68340.H#ifndef __MC68340_H#define __MC68340_H#define MCBASE 0xFFFFF000/**********************System Integration Module (SIM)*********************
2Figure 1. MC68340 and TNT4882 Interface Hardware DiagramSynchronous Bus OperationTNT4882 Address LinesAddress lines A6-A2 of MC68340 connect directl
20#define MR2A *(unsigned char *) (MCBASE + 0x720)#define MR1B *(unsigned char *) (MCBASE + 0x718)#define SRB *(unsigned char *) (MCBASE + 0
21MC340BUG.H/*************************************************************************//* File Name : MC340BUG.H
22HARDWARE.H/**************************************************************************//* File Name : HARDWARE.H
23HARDWARE.C/**************************************************************************//* File Name : HARDWARE.C
24 { NEWLN(); PrintHex(counter); puts("Loop"); fail |= Programmed_IO_Test(); fail |= Int
25/* 1. 8 Bit accesses to FIFO A *//* 2. 8 Bit accesses to FIFO B
26formed.\n\n"); return ERROR; } else { Failure = FALSE; EnableMC68340Interrupts; IMR3 = E_NFF; /*wr
27/**************************************************************************//***********************************************************************
28/* Created On : 05/23/95 *//* Modified On : 05/23/95
29TEST4882.H/**************************************************************************//* File Name : TEST4882.H
3TNT4882 ABUSN, BBUSN SignalsThe TNT4882 has the capability of using either of its data busses for 8-bit I/O accesses. Either Bus A (D15-8) or BusB (D
30TEST4882.C/**************************************************************************//* File Name : TEST4882.C
31}/**************************************************************************//**********************************************************************
32 } return result;}/**************************************************************************//***************************************************
33 if (StoredValue != TestBit16[Loop]) /*compare w/ values in TestBit16[]*/ { DisplayErrorMessage(StoredValue,TestBit16[Loop]); if (!(
34/* the fifos. The values are read during a READ interrupt.*//***********************************************************************
35 puts(": Received Value");}/**************************************************************************//********************************
4TNT4882 RDN, WRN SignalsDuring write accesses, the TNT4882 latches data on the rising edge of WRN. The TNT4882 drives its data buses whenRDN is asser
5Figure 5. DMA Write (TNT4882 to Memory) Timing DiagramAsynchronous Bus OperationNormally, the TNT4882 is used in one chip mode. See Chapter 2 in the
6Interrupt Acknowledge Bus OperationThe TNT4882 can interrupt the processor by asserting its interrupt signal. The MC68340 will acknowledge theinterru
7MODE PinThe MODE pin determines whether the TNT4882 enters Turbo+7210 mode or Turbo+9914 mode after a hardwarereset. For the above interface, MODE wa
8Software ConsiderationOnce the hardware interface has been constructed, a few initialization routines need to be performed. Once theseinitialization
9Interrupt ConfigurationSince the above setup requires an autovector, we need to program the autovector register so that the vector number isgenerated
Comentarios a estos manuales