Keyboard interrupt module – Freescale Semiconductor Microcontrollers User Manual

Page 450

Advertising
background image

HCS08 Full Chip Simulation

Peripheral Modules Commands

450

Microcontrollers Debugger Manual

Keyboard Interrupt Module

In FCS, this module simulates all functionality of the Keyboard Interrupt (KBI) module,
including the edge-only, edge and level interrupt, and flag polling modes of operation.
FCS mode uses simulated port inputs to trigger the KBI event from the proper I/O port
pin. To define an input state of the specific port, write the INPUT<x> <n> command in
the Command line window. The <x> represents the corresponding I/O port, while <n>
stands for the input value to write to this port. At the same time, you can use the INPUTS
command to bring up the Simulated Port Inputs for all general I/O ports. It displays the
current simulated values to all applicable input ports. See the documentation for

Timer

Module Commands

for more information about the various forms of this command.

Figure 18.22 Simulated Port Inputs Dialog Box

Use the Simulated Port Inputs dialog box to reconfigure the input value to any I/O port. To
trigger the event, manipulate the inputs to the port in the appropriate manner, depending
on whether the KBI is configured for edge-only or edge and level. Once the KBI event
takes place, you can observe the KEYF Flag bit, which is a part of the Keyboard Status
and Control register, in the Memory Window.

Figure 18.23 Memory Component Window

Advertising