Download Print this page

XMOS XC-1 Hardware Manual page 6

Advertisement

XC-1 Hardware Manual (1.3.2)
4 Push-Button Switches [D]
The XC-1 provides four push-button switches whose states can be sampled at any
time by software. Pushing a button results in a 0 signal, unpushed the signal is 1.
The layout of the push-buttons is shown below.
The push buttons are connected to four pins, which are mapped to ports as described
in the table below.
Each pin can be configured either as a 4-bit port or an 8-bit port. The configuration
is determined by the set of port initialisers used in the software [2].
Downloaded from
Elcodis.com
electronic components distributor
C
B
Pin
Port
4b
8b
X0D16 P4D0 P8B2 PORT_BUTTON [A]
X0D17 P4D1 P8B3 PORT_BUTTON [B]
X0D18 P4D2 P8B4 PORT_BUTTON [C]
X0D19 P4D3 P8B5 PORT_BUTTON [D]
www.xmos.com
D
A
Processor
0
6/17

Advertisement

loading