
UM0300
Running the STMPE2401 port expander demo board
15/22
Once we click the Write/Program Button, The Write mode become active if previously
scanning is being done that will be stopped.
The write mode provides the feature of the reading the internal memory of the either slaves
or to program the any PWM output.
2.2.3
Reading internal memory of STMPE2401:
We can read the internal memory of particular STMPE2401 slave device by selecting that in
"Memory Read" section from the pop menu as shown in the
. Then we can read
the memory by writing the 8 bit address in the "Address" and then clicking "Read". The
return data is in HEX format.
Figure 20.
Reading internal memory of STMPE2401
2.2.4 Programming
PWM
Any of the 6 PWM outputs coming from 2 STMPE2401 slave devices can be programmed.
In the "Write mode" section as shown in
select the PWM to be programmed from
the pop up menu, and then load the correct PWM file (*.pex) by clicking the "Open" button.
Then click the "Program" button to program the particular PWM. If the PWM file is correctly
programmed, the correct PWM signal can be observed on the CRO by connecting the CRO
probe at the programmed LED output. Any error, (for example a PWM programmed with a
faulty program) causes the particular PWM LED to stop blinking.