KC7WW's C-programming example for the EVM ----------------------------------------- Version 4 Johan Forrer, KC7WW, January 1997 New items for this version: TEST4,5 --- further exploratory code CRT.ASM --- (with some optimizing) This package now consists of two parts; the first has all the source code, while the second contains schematics and the memory-mapped IO that I have been working on. The PAL equations are included for those interested. To use this example you should print out the schematic, build as much of it as you need, install G56K, and assemble/compile/link my examples. You may also just load them into the debugger to explore them a bit. It should all run on an unmodified EVM. I included a number of useful batch files to do some of these tasks for you. Remember to edit the paths to match your system. This example initializes the SCI timer and CS4215 CODEC in CRT.ASM and runs those as real-time tasks. The C program is a simple loop that awaits a data sample from the CODEC, then reads the state of the of a switch and displays that on an LED. Examples of C and inline assembly are shown. Planned Future Releases: ------------------------ CODEC data Batching -- version 5 SCI I/O -- version 6 Enjoy! Johan Forrer, KC7WW forrerj@peak.org List of Files for Part 1/2: ------------------------------ CRT ASM .............. Startup code for G56K for EVM CRT CLN .............. and its object module SIM56K BAT .............. Path to the 56K simulator G56KENV BAT .............. Setting up your G56K environment ASM BAT .............. Hand Assemble CC BAT .............. Use this for building a C COFF object for EVM TEST1 C .............. A simple in-line assembly example TEST1 CLD .............. and its COFF object TEST2 C .............. A simple C-style program example TEST2 CLD .............. and its COFF object TEST3 C TEST3 CLD TEST4 C TEST5 C .............. Saving CODEC data, exploring the OES inline assembly features. INTEQULC ASM .............. Useful assembly includes IOEQULC ASM ....+ some other tidbits that may or may not be of use List of Files for Part 2/2: ------------------------------ EVM56K_1 HP .............. Schematic in HPGL format EVM56K_1 PS .............. Schematic in PostScript DSPCOMP JED .............. JEDEC file EVM56K_2 HP .............. Scematic for memory-mapped I/O EVM56K_2 PS EVM56K_3 HP .............. Equations EVM56K_3 PS