User manual
DSM tutorials
macro proc SevenSeg0WriteDigit (Value, DecimalPoint)
{
SevenSeg[0] = DecimalPoint @ TranslationROM0[Value];
}
The two macros shown for displaying a shape and a digit are for a single seven-segment display, and a
further copy of each will be required for each additional display.
4.3 Using PAL to create a generic device driver
Rather than using the seven-segment PSL driver (see page 53), the tutorial will continue using the
standard PAL seven-segment displays instead. This will allow a range of boards to be used with the
tutorial, and also simulation using the PAL Virtual Platform. Each platform which is going to be supported
can have its own
configuration created in DK, to allow easy customization.
Setting up and configuring a PAL workspace
The seven-segment project using PAL
4.3.1 Setting up a PAL workspace
Creating a new workspace
First, select the File>New menu and create a new workspace, as shown below.
www.celoxica.com
Page 55