				M.CORE / uC/OS JUMPSTART CODE

This code, the GNU C-compiler (GCC) from the Motorola Web Site (www.mot-sps.com/mcore)
and the CMD2001 board from Axiom Manufacturing (www.axman.com) is all you need to get
rolling quickly with M.CORE and uC/OS.

FILE LIST:

	README.TXT			This file

	CRT0.S				Startup file, including interrupt vectors
	REGS.S				Simple routines to read/write register values
	SBRK.C				Support routine for malloc()
	CRT0INIT.C			C-runtime data initialization support

	INCLUDES.H			uC/OS v1.10 target-independent files
	OS_CFG.H
	UCOS.C
	UCOS.H

	UCOS_MC.H			uC/OS v1.10 M.CORE target-dependent files
	UCOS_MCC.C
	UCOS_MCA.S

	INTERUPT.H			M.CORE MMC2001 Interrupt Controller code
	INTERUPT.C

	UART.H				M.CORE MMC2001 UART code (polled)
	UART.C

	TIMER.H				M.CORE MMC2001 Timer code
	TIMER.C

	MAKEFILE			Test application makefile
	TEST.C				Test application code
	TEST.LD				Test application linker response file



A few items are noteworthy:
	1.) You may have to modify the makefile (MAKEFILE) and linker response (TEST.LD)
		files to match your development environment.
	2.) Review the memory map below and the INTERUPT.* files to see how I have
		the vectored interrupt controller and alternate register capabilities
		of the MMC2001 chip.
	3.)	The startup file (CRT0.S) does not initialize the MMC2001 chip, it assumes
		it has already been done by the M-Bug monitor bootstrap code.
	4.) There are some NOTEs in the code (grep for "NOTE") where things should be
		improved.


NOTE: I just got this running, so don't be surprised if there is a bug or two!


Have Fun!!!

Kerby Suhre
Hewlett-Packard Co.
kerby_suhre@hp.com
(248)380-2433
(248)380-2402 (FAX)

















		   CMD2001 (M.CORE) Memory Map, IRQ usage, PIT usage and ISPI Addresses

ITEM(S)                     ADDRESS        	H/W DESCRIPTION			CS#		SIZE	WIDTH
____________________________________________________________________________________________

Reset / Interrupt Vector    0x00000000  	Internal ROM            N/A		256MB	16 bit
Misaligned Access Vector	0x00000004
Access Error Vector			0x00000008
Divide By Zero Vector		0x0000000C
Illegal Vector				0x00000010
Privilege Violation Vector	0x00000014
Trace Exection Vector		0x00000018
Breakpoint Exception Vector	0x0000001C
Unrecoverable Error Vector	0x00000020
Soft Reset Vector			0x00000024
INT Vector					0x00000028		PIT Timer (O/S tick)
FINT Vector					0x0000002C		Uses alternate registers
Hardware Accelerator Vector	0x00000030
Reserved Vector				0x00000034
Reserved Vector				0x00000038
Reserved Vector				0x0000003C
Trap0 Vector				0x00000040
Trap1 Vector				0x00000044
Trap2 Vector				0x00000048
Trap3 Vector				0x0000004C

Software0 Vector			0x00000080 		Vectored through FINT
Software1 Vector			0x00000084 		Vectored through FINT
Software2 Vector			0x00000088 		Vectored through FINT
UART0 RTS Vector			0x00000094 		Vectored through FINT
Keypad Vector          		0x00000098 		Vectored through FINT
Time-of-Day Vector     		0x0000009C 		Vectored through FINT
PIT Vector 		    		0x000000A0		See INT vector above
PWM0 Vector					0x000000A8 		Vectored through FINT
PWM1 Vector					0x000000AC 		Vectored through FINT
PWM2 Vector					0x000000B0 		Vectored through FINT
PWM3 Vector					0x000000B4 		Vectored through FINT
PWM4 Vector					0x000000B8 		Vectored through FINT
PWM5 Vector					0x000000BC 		Vectored through FINT
UART0 TX Vector				0x000000C0 		Vectored through FINT
UART1 TX Vector				0x000000C4 		Vectored through FINT
UART0 RX Vector				0x000000C8 		Vectored through FINT
UART1 RX Vector				0x000000CC 		Vectored through FINT
ISPI Vector					0x000000D0 		Vectored through FINT
INT0 Vector					0x000000D4 		Vectored through FINT
INT1 Vector					0x000000D8 		Vectored through FINT
INT2 Vector					0x000000DC 		Vectored through FINT
INT3 Vector					0x000000E0 		Vectored through FINT
INT4 Vector					0x000000E4 		Vectored through FINT
INT5 Vector					0x000000E8 		Vectored through FINT
INT6 Vector					0x000000EC 		Vectored through FINT
INT7 Vector					0x000000F0 		Vectored through FINT
End of Interrupt Vectors    0x000000FF
M-Bug and other code		0x00000100
                            0x0003FFFF     	End of internal ROM
							0x00040000		Mirror of internal ROM
							0x000FFFFF		every 0x40000
____________________________________________________________________________________________
 
							0x00100000      Reserved (Unused)
                            0x0FFFFFFF      End of Reserved
____________________________________________________________________________________________

Interrupt Controller		0x10000000      On-chip peripherals     N/A		256MB	16 bit
Timer / Reset Unit			0x10001000
Unused  					0x10002000
Keypad Port					0x10003000
External Interface Module	0x10004000
PWM Module					0x10005000
Unused  					0x10006000
GPIO Module					0x10007000
ISPI Module					0x10008000
UART0 Module				0x10009000
UART1 Module				0x1000A000
Unused  					0x1000B000
                            0x1FFFFFFF      End of on-chip peripherals 
____________________________________________________________________________________________
 
							0x20000000      Reserved (Unused)
                            0x2BFFFFFF      End of Reserved
____________________________________________________________________________________________
 
							0x2C000000      External peripherals    CS3		16MB	8 bit
							0x2CFFFFFF      End of external peripherals
____________________________________________________________________________________________

							0x2D000000      External FLASH (U2)     CS0		128KB	16 bit
                            0x2D01FFFF      End of external FLASH
____________________________________________________________________________________________
 
							0x2D020000      External FLASH (U5/U6)  CS0HI	?KB		16 bit
                            0x2DFFFFFF      End of external FLASH
____________________________________________________________________________________________
 
							0x2E000000      Reserved (Unused)       CS2		16MB	16 bit
                            0x2EFFFFFF      End of Reserved
____________________________________________________________________________________________
 
							0x2F000000      External SRAM (U3/U4)   CS1		256KB	16 bit
                            0x2F03FFFF      End of external SRAM
____________________________________________________________________________________________
 
							0x2F040000      External SRAM (U7/U8)   CS1HI	64KB	16 bit
                            0x2FFFFFFF      End of external SRAM
____________________________________________________________________________________________
 
							0x30000000      Internal SRAM           N/A		32KB	16-bit
                            0x30007FFF      End of internal SRAM
							0x30008000		Mirror of internal SRAM
							0x300FFFFF		every 0x8000
____________________________________________________________________________________________
 
							0x30100000      Reserved (Unused)
                            0xFFFFFFFF      End of Reserved
____________________________________________________________________________________________

Chip Select Usage:
CS0    - External FLASH (U2 & U5/U6)
CS1    - External SRAM (U3/U4 & U7/U8)
CS2    - Unused
CS3    - 8-bit peripherals
____________________________________________________________________________________________

INT Usage:
INT0 - Unused                           INT4 - Unused
INT1 - Unused                           INT5 - Unused
INT2 - Unused                           INT6 - Unused
INT3 - Unused                           INT7 - Unused
____________________________________________________________________________________________

PWM line usage
PWM0  - Unused
PWM1  - Unused
PWM2  - Unused
PWM3  - Unused 
PWM4  - Unused
PWM5  - Unused
____________________________________________________________________________________________

ISPI Bus Address / Chip Select Usage:
____________________________________________________________________________________________

