Sample Handel-C Code

Contents:


Keyboard Input

Read characters from the keyboard and display their ASCII codes on the hex displays, or on the LCD using simulated hex displays.

top


Motor Control

Generate a 50 Hz pulse stream with pulse width determined by which buttons are pressed, suitable for controlling a Futaba S3003 servo motor.

top


Pipelined Multiplier

A pipelined multiplier that generates a full-width product.

top


PAL Audio Out

Illustrates generating sine waves using the PalAudioOut interface. The signal intensities are contained in two header files, which were generated by a Java application, GenerateSamples.java.

top


RC-200 PSL Audio Out

Illustrates generating sine waves using the RC-200 Platform Support Layer (PSL) macros documented in the RC-200 PSL Reference Manual. Header files for this application were generated by RC200AudioSamples.java. Includes a set of delay macro procs.

top


Fixed Point Library

Examine how the fixed-point library represents signed and unsigned literals. Despite the library's documentation, it is not possible to generate a literal for values that cannot be represented exactly in the numbers of bits available for the integer and fraction parts. A Java application, FixedPoint.java, is available to generate working Handel-C code if you want to do that.

top