Everything
 

Parts Key Properties dialog box


This property dialog box is used to set or change the pin connection information of a key matrix, which is one of the connection parts in the I/O Panel window.

Input to the simulator can be done from pin-connected keys in the Simulation mode.

A key matrix consisting of input pins and output pins of up to 16 x 16 can be set.

Either figure or bitmap can be selected as the key matrix display style. These styles can be changed on the [[Style] tab].

Caution

When connecting a key matrix to pins, also perform the Pull up/Pull down settings for the connection pins. When a key is pressed, the output value of the output pin connected to that key is input to the input pin connected to that key. The value when the key is not pressed is the value specified in the Pull up/Pull down dialog box.
If the Pull up/Pull down settings are not performed, the input pin becomes the high-impedance state. Consequently, the operation of the function that is connected to the input pin becomes undefined.

Figure A.67

Parts Key Properties Dialog Box: [Key Matrix Connection] Tab

Figure A.68

Parts Key Properties Dialog Box: [Style] Tab

 

This section describes the following.

[How to open]

On the I/O Panel window, any one of the following:

-

Double-click a part object "Key matrix".

-

Select [Properties...] form the context menu on a part object "Key matrix".

-

Select a part object "Key matrix", and then select [Properties...] form the [View] menu.

[[Key Matrix Connection] tab]

(1)

Pin connection information setting area

Label

This area is used to specify the part name. The part name input here is also displayed in the Parts List dialog box as the label.

Pin Name

This area is used to specify the pin name to be connected (input pins and output pins). The connection pins can be specified either via direct input or through selection from the drop-down list.

This area can be used to set 16 x 16 pins using the scrollbar.

In0 - In15

Specify input pins.

Out0 - Out15

Specify output pins.

N00 - Nff

This area is where the text strings displayed on the keys of the key matrix are specified. Text strings of any length can be specified.

The default description string (N number) is not displayed on the keys.

Hold Time

Specify the time (hold time) for which the input value is to be held (default: 0.5msec). The settable range is from 0.001 to 999 (msec).

Moreover, when multiple keys for input to the same input pin are pressed during the hold time, only the key that was clicked last is valid.

default

Specify the key matrix operation after CPU reset.

Not change at reset.

The key matrix status does not change after CPU reset.

inactive

No key matrix buttons are depressed after CPU reset (default).

Remark

For the pin names that can be specified, see the user's manual of the microcontroller that is used.

[[Style] tab]

(1)

Style information setting area

Figure

Select this option button to display the key matrix with the following specified figure.

Shape

Select the figure shape. Two shapes can be selected: rectangle and ellipse.

shadow

Cannot be selected.

Line

Specify and change the figure line, as follows.

You can change the color of figure line by clicking the pull-down button.

Thickness

Specifies the line thickness.

Specification is made either using a spin button or through direct input.

A value from 1 to 100 can be specified.

Active

Specifies the color of the line during active display.

Inactive

Specifies the color of the line during inactive display.

Fill up

Specify and change the figure filling, as follows.

You can change the color of figure filling by clicking the pull-down button.

Active

Specifies the fill color during active display.

Inactive

Specifies the fill color during inactive display.

Bitmap

Select this option button to display the key matrix with the following specified bitmap (default).

Selection list

Select a bitmap to be used from the selection list.

The selectable bitmaps appear in the selection list.

[Add] button

Opens the Entry Bitmap dialog box below to add a new bitmap to the selection list.

The bitmap file to be added can be specified either through file selection using the [...] button, or through direct input.

 

[Delete] button

Deletes the currently selected bitmap from the selection list.

Note that only the bitmap that have been added by user can be deleted.

(2)

Preview area

This area displays the style of the key matrix currently being specified.

[Function buttons]

Button

Function

OK

Validates the settings and closes this dialog box.

Cancel

Cancels the settings and closes this dialog box.

Apply

Cannot be selected.

Help

Displays the help for this dialog box.

[Operation]

In the Simulation mode, the following operation can be done.

 

(1) Inputting multiple keys simultaneously

(2) Locking the key input value

(1)

Inputting multiple keys simultaneously

To enter two keys, simultaneously press the key to be input and right-click the mouse to enter the wait status. Then, click the other key. This releases the wait status and enables simultaneous input of both keys. Multiple keys can be simultaneously input by setting the wait status for multiple keys, but if input is to be performed to the same input pin, the key that was input last is valid.

(2)

Locking the key input value

To enter two keys, simultaneously press the key to be input and right-click the mouse to enter the wait status. Then, click the other key. This releases the wait status and enables simultaneous input of both keys. Multiple keys can be simultaneously input by setting the wait status for multiple keys, but if input is to be performed to the same input pin, the key that was input last is valid

Figure A.69

Connected Parts Display Example (Key Matrix)