User Manual
33
CHAPTER 5
Matrix/Zigbee Ready Module Input/Output
5.1 Overview
There are a total of 12 user input/output pins on the Matrix module, all of
which can be configured as digital inputs or outputs. Of the 12 configurable
digital I/O pins, 8 of them can also be configured as analog inputs.
5.2 Digital Inputs/Outputs
There are 12 configurable digital input/output pins that can be programmed
to be either inputs or outputs. In addition, if the pins are inputs, all except for
two (P1_0 and P1_1) of them can be enabled for either an internal pull-up or
pull-down resistor. Refer to Table 4-2 for the specific I/O pin capabilities.
Using the digital input output pins consists of the following:
Configuring the pins
Select direction (digital input or digital output), enable or disable pull-
up or pull-down resistors for pins configured as digital inputs, and set
the initial output value for pins configured as digital outputs (0 or 1).
These parameters define the configuration of the pins when a reset
occurs. Also the direction and pull-up/pull-down parameters are
used to set the state of the pins after exiting sleep mode. Note that if
the internal pull-up or pull-down resistors are used that all pins within
the same port have to either be pull-ups or pull-downs.
Configuring the sleep state of the pins
Select direction (input or output), enable or disable pull-up or pull-
down resistors for pins configured as digital inputs, and set the
output value for pins configured as digital outputs. Although these
parameters are the same as those shown in the “Configuring the
pins” item shown above, they are independent and are the state of
the pins when the Matrix module is put into Sleep Mode.
Reading the state of the pins configured as inputs
Read the digital value (0 or 1) of the signal applied to the pins
configured as inputs.
Setting the state of the pins configured as outputs
Set the digital value (0 or 1) for the pins configured as outputs.