Debugger Components
Visualization Utilities
148
Microcontrollers Debugger Manual

Bitmap Instrument

You can use the Bitmap instrument to give a special look to your visualization, or to
display a warning picture.
Additionally, it can also be used as a bitmap animation. Its attributes are shown in Table
3.49.
In general, for showing the bitmap, the following condition has to be true:
(port_memory & ANDmask) == EQUALmask
Following is a practical example about using the AND and EQUAL masks
You want to show in the visualization a tail light of a car. For this you need bitmaps (e.g.
from a digital camera) of all possible states of the tail light (e.g. flasher on, brake light on,
etc.). Usually the status of all lamps are encoded into a port or memory cell in your
application, and each bit in this cell describes whether a lamp is on (e.g., bit 0 says that the
Table 3.48 Bar Instrument Attributes
Attribute Description
Low Display Value Defines zero point of the indicator. Values below this definition
are not displayed.
High Display Value Defines highest position of the indicator. Defines the value on
which the indicator reads 100%.
Bardirection Sets desired direction of the bar that displays the value.
Barcolor Specifies color of the bar. Default color is red.
Table 3.49 Bitmap Instrument Attributes
Attribute Description
Filename Specifies the location of the bitmap. With the button behind, you
can browse for files.
AND Mask Performs a bitwise-AND operation with this value. AND the
value of the selected port. Default value is 0.
EQUAL Mask This value is compared to the result of the AND operation. The
bitmap is displayed only if both values are the same. Default
value is 0.