AMX 68000 Manual de usuario

Busca en linea o descarga Manual de usuario para Manuales de software AMX 68000. AMX 68000 User's Manual Manual de usuario

  • Descarga
  • Añadir a mis manuales
  • Imprimir

Indice de contenidos

Pagina 1 - 68000 Target Guide

®AMX™ 68000 Target GuideFirst Printing: April 15, 1994Last Printing: March 1, 2005Copyright © 1994 - 2005KADAK Products Ltd.206 - 1847 West Broadway

Pagina 2

4KADAKAMX 68000 Target Guide1.3 AMX NomenclatureThe following nomenclature standards have been adopted throughout the AMX TargetGuide.Numbers used in

Pagina 3

AMX 68000 Target GuideKADAK51.4 AMX 68000 Target SpecificationsAMX 68000 was initially developed and tested using the Motorola MC68020, MC68040and MC

Pagina 4 - TRADEMARKS

6KADAKAMX 68000 Target Guide1.5 Launch RequirementsThe M68000 must be properly configured for use before AMX is launched. The mannerin which this is

Pagina 5 - AMX 68000 TARGET GUIDE

AMX 68000 Target GuideKADAKrev6 7Trace ControlsAMX alters the state of the status register (SR) whenever it enables or disables interrupts.When AMX

Pagina 6

8KADAKAMX 68000 Target GuideMemory Management Unit (MMU)The MC68030, MC68040, MC68LC040 and MC68060 include a Memory ManagementUnit (MMU) to support a

Pagina 7 - 1.1 Introduction

AMX 68000 Target GuideKADAK92. Program Coding Specifications2.1 Task Trap HandlerAMX 68000 supports task traps for the M68000 zero divide, bounds ch

Pagina 8 - 1.2 AMX Files

10KADAKAMX 68000 Target Guide2.2 Task Scheduling HooksThere are four critical points within the AMX Task Scheduler. These critical pointsoccur when:

Pagina 9

AMX 68000 Target GuideKADAK113. The Processor Interrupt System3.1 OperationThe M68000 classifies all internal and external sources of interruption a

Pagina 10 - 1.3 AMX Nomenclature

12KADAKAMX 68000 Target GuideDefault Exception Service ProceduresAMX provides default service procedures for most exceptions. The zero divide, bounds

Pagina 11

AMX 68000 Target GuideKADAK133.2 AMX Vector TableThe M68000 processor provides an Exception Vector Table, often referred to as theAMX Vector Table, t

Pagina 13 - M = 0 in SR)

14KADAKAMX 68000 Target GuideVector Vector EnableName Number Mask ExceptionCJ_PRVNRES 0, 1 ResetCJ_PRVNBE 2 $00000004 Bus error (access fault)CJ_PRVNA

Pagina 14

AMX 68000 Target GuideKADAK153.3 AMX Interrupt Priority and NMIThe M68000 family of processors offers inherent interrupt priority ordering. The AMXI

Pagina 15 - 2.1 Task Trap Handler

16 rev7KADAKAMX 68000 Target Guide3.4 Conforming ISPsA conforming ISP consists of an ISP root and a device Interrupt Handler. The ISP root iscrea

Pagina 16 - 2.2 Task Scheduling Hooks

AMX 68000 Target GuideKADAK17The following examples illustrate how simple an Interrupt Handler can be./* The ISP root definition in the Target Paramet

Pagina 17 - 3.1 Operation

18KADAKAMX 68000 Target Guide3.5 Nonconforming ISPsThe M68000 family of processors provides an interrupt priority ordering mechanismwhich permits the

Pagina 18

AMX 68000 Target GuideKADAKrev7 193.6 Processor Vector InitializationWhenever an internal or external device interrupt occurs, the M68000 processo

Pagina 19 - 3.2 AMX Vector Table

20KADAKAMX 68000 Target GuideThis page left blank intentionally.

Pagina 20

AMX 68000 Target GuideKADAK214. Target Configuration Module4.1 The Target Configuration ProcessEvery AMX application must include a Target Configura

Pagina 21

22KADAKAMX 68000 Target GuideScreen LayoutFigure 4.1-1 illustrates the Configuration Manager's screen layout once you have begunto create or edit

Pagina 22 - 3.4 Conforming ISPs

AMX 68000 Target GuideKADAK23MenusAll commands to the Configuration Manager are available as items on the menus presenton the menu bar. The File menu

Pagina 23

AMX 68000 Target GuideKADAKiTECHNICAL SUPPORTKADAK Products Ltd. is committed to technical support for its software products. Ourprograms are designe

Pagina 24 - 3.5 Nonconforming ISPs

24 rev8KADAKAMX 68000 Target GuideIf you have modified some of the fields on a property page and then decide that thesemodified values are not corr

Pagina 25

AMX 68000 Target GuideKADAK254.2 Target Configuration ParametersGeneral ParametersThe General Parameter window allows you to define the general opera

Pagina 26

26KADAKAMX 68000 Target GuideVectors in RAMIn most cases, the processor Exception Vector Table will be located in alterable RAM ataddress 0 or at some

Pagina 27

AMX 68000 Target GuideKADAK27Software I/O DelayAMX provides a device I/O delay procedure cjcfhwdelay which is used by AMX boardsupport modules and sam

Pagina 28

28KADAKAMX 68000 Target GuideFatal ExceptionsThe Target Configuration Module defines the processor exceptions which are to beserviced by AMX and treat

Pagina 29

AMX 68000 Target GuideKADAK294.3 Interrupt Service Procedure (ISP) DefinitionsYour Target Configuration Module must include a device ISP root for eac

Pagina 30

30KADAKAMX 68000 Target GuideISP TypeAt least one of your ISPs must service a clock interrupt which provides AMX with itsfundamental clock tick at the

Pagina 31

AMX 68000 Target GuideKADAK31Interrupt Handler ParameterYour Interrupt Handler can be coded to receive a 32-bit parameter every time it is called.The

Pagina 32

32KADAKAMX 68000 Target Guide4.4 Defining a Fast Clock ISPAt least one of your ISPs must service a clock interrupt which provides AMX with itsfundame

Pagina 33

AMX 68000 Target GuideKADAK33ISP TypeYour fast clock ISP is identified as such by selecting Fast Clock Handler from the pulldown list.ISP RootEdit the

Pagina 34 - Fatal Exceptions

iiKADAKAMX 68000 Target GuideCopyright © 1994-2005 by KADAK Products Ltd.All rights reserved.No part of this publication may be reproduced, transmitte

Pagina 35

34KADAKAMX 68000 Target Guide4.5 Null FunctionsOccasionally, while developing an AMX application, it can be very convenient to be ableto create softw

Pagina 36

AMX 68000 Target GuideKADAK354.6 ROM Option ParametersThe AMX ROM Option allows the subset of AMX and its managers required by yourapplication to be

Pagina 37

36KADAKAMX 68000 Target GuideEnable ROM OptionBy default, the ROM Option feature is disabled. Check this box to enable the feature.You can disable th

Pagina 38 - Add button and

AMX 68000 Target GuideKADAK375. Clock Drivers5.1 Clock Driver OperationYou must provide a clock driver as part of your AMX application so that AMX c

Pagina 39

38KADAKAMX 68000 Target GuideClock InterruptsA real-time clock used with the M68000 processor will interrupt either on one of theinterrupt autovectors

Pagina 40 - 4.5 Null Functions

AMX 68000 Target GuideKADAK395.2 Custom Clock DriverThe easiest way to create a custom clock driver is by example. Assume that thecounter/timer whic

Pagina 41 - 4.6 ROM Option Parameters

40KADAKAMX 68000 Target GuideThe clock initialization procedure for this custom clock driver could be coded in C asfollows. Insert procedure clockini

Pagina 42

AMX 68000 Target GuideKADAK415.3 AMX Clock DriversAMX clock drivers are provided with AMX for the timer chips used on the boards withwhich AMX has be

Pagina 43 - 5.1 Clock Driver Operation

42KADAKAMX 68000 Target Guide5.3.2 MC68360 PIT Clock DriverThe AMX clock driver for the Motorola MC68360 Periodic Interval Timer (PIT) is readyfor us

Pagina 44

AMX 68000 Target GuideKADAK435.3.3 MC68230 Clock DriverThe AMX clock driver for the Motorola MC68230 Parallel Interface/Timer is ready foruse on the

Pagina 45 - 5.2 Custom Clock Driver

AMX 68000 Target GuideKADAKiiiAMX 68000 TARGET GUIDETable of ContentsPage1. Getting Started with AMX 68000 11.1 Introduction ...

Pagina 46

44KADAKAMX 68000 Target Guide5.3.4 MC68901 Clock DriverThe AMX clock driver for the Motorola MC68901 Multi-Function Peripheral is ready foruse on the

Pagina 47 - 5.3 AMX Clock Drivers

AMX 68000 Target GuideKADAKA-1Appendix A. Target Parameter File SpecificationA.1 Target Parameter File StructureThe Target Parameter File is a text

Pagina 48

A-2KADAKAMX 68000 Target GuideThe Target Parameter File consists of a sequence of directives consisting of a keyword ofthe form ...XXX beginning in co

Pagina 49

AMX 68000 Target GuideKADAKrev6 A-3A.2 Target Parameter File DirectivesThe AMX Launch Parameters are defined as follows...LAUNCH PERM,VNAPERM0 if

Pagina 50

A-4KADAKAMX 68000 Target GuideVector Base RegisterThe VBR parameter is used to specify the memory address at which the Exception VectorTable is locate

Pagina 51 - utility

AMX 68000 Target GuideKADAKA-5Device I/O DelayThe Target Parameter File includes a device I/O delay definition...DELAY CPUFREQCPUFREQM68000 processor

Pagina 52

A-6KADAKAMX 68000 Target GuideConforming ISP DeclarationsThe Target Parameter File must include a definition of an ISP root for each conformingInterru

Pagina 53

AMX 68000 Target GuideKADAKA-7AMX Clock Handler DeclarationThe Target Parameter File must include a definition of an ISP root for your AMX clockhandle

Pagina 54

A-8KADAKAMX 68000 Target GuideIf your clock can be serviced by writing one or two n-bit values to a device I/O port, youcan use the ...CLKFAST directi

Pagina 55

AMX 68000 Target GuideKADAKA-9AMX ROM OptionTo use the AMX ROM option, the Target Parameter File must include the followingdirectives...ROMOPT ROMADR

Pagina 56

iv rev9KADAKAMX 68000 Target GuideAMX 68000 TARGET GUIDETable of Contents (Cont'd)AppendicesPageAppendix A. Target Parameter File Specificati

Pagina 57

A-10KADAKAMX 68000 Target GuideThis page left blank intentionally.

Pagina 58

AMX 68000 Target GuideKADAKA-11A.3 Porting the Target Parameter FileIt is expected that you will use the AMX Configuration Manager to create and edit

Pagina 59

A-12KADAKAMX 68000 Target GuideThis page left blank intentionally.

Pagina 60

AMX 68000 Target GuideKADAKrev7 B-1Appendix B. AMX 68000 Service ProceduresB.1 Summary of ServicesAMX 68000 provides a collection of target depen

Pagina 61

B-2KADAKAMX 68000 Target GuideThe AMX Library also includes several C procedures which are used privately byKADAK. These procedures, although availab

Pagina 62

AMX 68000 Target GuideKADAKrev7 B-3B.2 Service ProceduresA description of all processor dependent AMX 68000 service procedures is provided inthis

Pagina 63 - B.1 Summary of Services

B-4 rev7KADAKAMX 68000 Target GuideInterrupts AMX procedures frequently must deal with the processor interrupt mask.The effect of each AMX procedur

Pagina 64

AMX 68000 Target GuideKADAKB-5cjcfccsetup cjcfccsetupPurpose Setup C EnvironmentUsed byn Task n ISP n Timer Procedure n Restart Procedure n Exit Proce

Pagina 65 - B.2 Service Procedures

B-6KADAKAMX 68000 Target Guidecjcfdi cjcfdicjcfei cjcfeiPurpose Disable or Enable InterruptsUsed byn Task n ISP n Timer Procedure n Restart Procedure

Pagina 66 - B-4 rev7

AMX 68000 Target GuideKADAKB-7cjcfflagrd cjcfflagrdcjcfflagwr cjcfflagwrPurpose Read or Write Processor Status RegisterUsed byn Task n ISP n Timer Pro

Pagina 67

AMX 68000 Target GuideKADAK11. Getting Started with AMX 680001.1 IntroductionThe AMX™ Multitasking Executive is described in the AMX User's Gui

Pagina 68 - (cjcfdi only)

B-8KADAKAMX 68000 Target Guidecjcfhwdelay cjcfhwdelayPurpose Delay n MicrosecondsUsed byn Task n ISP n Timer Procedure n Restart Procedure n Exit Proc

Pagina 69

AMX 68000 Target GuideKADAKB-9cjcfhwbcache cjcfhwbcachecjcfhwdcache cjcfhwdcachecjcfhwicache cjcfhwicachePurpose Flush and Enable/Disable CachesUsed b

Pagina 70

B-10KADAKAMX 68000 Target Guidecjcfin8 cjcfin8cjcfin16 cjcfin16cjcfin32 cjcfin32Purpose Read an 8, 16 or 32-Bit Input PortUsed byn Task n ISP n Timer

Pagina 71

AMX 68000 Target GuideKADAKB-11cjcfjlong cjcfjlongcjcfjset cjcfjsetPurpose cjcfjset Sets a Mark for a Long Jumpcjcfjlong Long Jumps to that MarkThese

Pagina 72

B-12KADAKAMX 68000 Target GuideExample #include "CJZZZ.H"void CJ_CCPP dowork(struct cjxjbuf *jbp);static struct cjxjbuf jumpbuffer;#define S

Pagina 73

AMX 68000 Target GuideKADAKB-13cjcfmcopy cjcfmcopycjcfmset cjcfmsetPurpose Copy a Block of MemorySet (Fill) a Block of MemoryThese procedures are prov

Pagina 74 - See Also cjcfstkjmp

B-14KADAKAMX 68000 Target Guidecjcfout8 cjcfout8cjcfout16 cjcfout16cjcfout32 cjcfout32Purpose Write to an 8, 16 or 32-Bit Output PortUsed byn Task n I

Pagina 75

AMX 68000 Target GuideKADAKB-15cjcfstkjmp cjcfstkjmpPurpose Switch Stacks and Jump to a New ProcedureThis procedure is provided for AMX portability.Us

Pagina 76

B-16KADAKAMX 68000 Target Guidecjcftag cjcftagPurpose Convert a String to an Object Name TagUsed byn Task n ISP n Timer Procedure n Restart Procedure

Pagina 77

AMX 68000 Target GuideKADAKB-17cjcfvol8 cjcfvol8cjcfvol16 cjcfvol16cjcfvol32 cjcfvol32cjcfvolpntr cjcfvolpntrPurpose Fetch a Volatile 8-Bit, 16-Bit, 3

Pagina 78

2KADAKAMX 68000 Target Guide1.2 AMX FilesAMX is provided in C source format to ensure that regardless of your developmentenvironment, your ability t

Pagina 79

B-18KADAKAMX 68000 Target GuideThis page left blank intentionally.

Pagina 80

AMX 68000 Target GuideKADAKB-19cjksitrap cjksitrapPurpose Install a Task Trap HandlerUsed byn Task o ISP o Timer Procedure o Restart Procedure n Exit

Pagina 81

B-20KADAKAMX 68000 Target Guidecjksivtp cjksivtpPurpose Fetch Pointer to the AMX Vector TableUsed byn Task n ISP n Timer Procedure n Restart Procedure

Pagina 82

AMX 68000 Target GuideKADAKB-21cjksivtrd cjksivtrdPurpose Read from the AMX Vector TableUsed byn Task n ISP n Timer Procedure n Restart Procedure n Ex

Pagina 83

B-22KADAKAMX 68000 Target Guidecjksivtwr cjksivtwrPurpose Write to the AMX Vector TableUsed byn Task n ISP n Timer Procedure n Restart Procedure n Exi

Pagina 84

AMX 68000 Target GuideKADAKB-23cjksivtx cjksivtxPurpose Exchange an Entry in the AMX Vector TableUsed byn Task n ISP n Timer Procedure n Restart Proce

Pagina 85

B-24KADAKAMX 68000 Target GuideThis page left blank intentionally.

Pagina 86

AMX 68000 Target GuideKADAKC-1Appendix C. AMX 68000 ROM OptionAn AMX system can be configured in two ways. The particular configuration is chosento

Pagina 87

C-2KADAKAMX 68000 Target GuideCreating an AMX ROMThe AMX ROM is created by using the AMX Configuration Generator to produce aROM Option Module which i

Pagina 88

AMX 68000 Target GuideKADAKC-3Linking for AMX ROM AccessThe AMX Configuration Generator is used to produce a ROM Access Module which,when linked with

Pagina 89

AMX 68000 Target GuideKADAK3File Name ModuleCJ532KA .C Kernel task servicesCJ532KB .C General task servicesCJ532KBR.CCJ532KC .CTimer ManagerCJ532KCR.C

Pagina 90

C-4KADAKAMX 68000 Target GuideOnce linked, your AMX application can be downloaded into RAM memory in your targethardware configuration. Alternatively

Comentarios a estos manuales

Sin comentarios