Wagon setup – Freescale Semiconductor Microcontrollers User Manual

Page 637

Advertising
background image

ColdFire V1 Full Chip Simulation Connection

FCS Visualization Utilities

637

Microcontrollers Debugger Manual

Wagon Setup

When you select Setup from the Wagon Menu, the Ports Address Selection dialog box
appears. This is the Wagon component Setup window.

Figure 28.68 Ports Address Selection Dialog Box

In the Motor Port section, you can insert an address (in hexadecimal) to select the Wagon
direction. In the Sensor Port field you can insert an address (in hexadecimal) to select the
Wagon position. Predefined ports are fixed when the component operates with the

Programmable IO_Ports Component

.

Control Bits Configuration

The 2 bytes sent to the wagon component must be composed as shown in

Figure 28.69

.

Figure 28.69 Wagon Control Bits Description

To move the wagon to the right, set bit r. To move the wagon to the left, set bit l. The
sensor port sets the bl bit when the wagon is at the left border, sets bit br when the wagon
is at the right border, sets bit st when you click the START button with the left mouse
button, and sets stp when you click the STOP button.

Advertising