User`s manual
Getting Started With Linux on the LPC3250 OEM Board Page 39
Copyright 2009 © Embedded Artists AB Rev A
input0
This file reflects the state of the device pins (inputs 0 to 7). Writing to
this file will have no effect.
input1
This file reflects the state of the device pins (inputs 8 to 15). Writing
to this file will have no effect.
ls0
LED select 0 controls LED (output pin) 0 – 3.
ls1
LED select 1 controls LED (output pin) 4 – 7.
ls2
LED select 2 controls LED (output pin) 8 – 11.
ls3
LED select 3 controls LED (output pin) 12 – 15.
psc0
The PSC0 register is used to program the period of the PWM0
output.
psc1
The PSC1 register is used to program the period of the PWM1
output.
pwm0
The PWM0 register determines the duty cycle of BLINK0. The
outputs are LOW (LED on) when the count is less than the value in
PWM0 and HIGH (LED off) when it is greater. If the value is set to 0
the output is always HIGH.
pwm1
The PWM1 register determines the duty cycle of BLINK1. The
outputs are LOW (LED on) when the count is less than the value in
PWM1 and HIGH (LED off) when it is greater. If the value is set to 0
the output is always HIGH.
For more details about the PCA9532 registers look at the data sheet. Below are some examples of
how to access the files (it is assumed that the current working directory is the
/sys/bus/i2c/devices/0-0060/
directory).
Turn on LED1 on the QVGA Base board:
# echo 1 > ls2
Turn off LED1 and turn on LED2 on the QVGA Base board:
# echo 4 > ls2
Check the state of the device pins (connected to the LEDs):
# cat input1
253
Please note the value 253 which is the same as the binary value 11111101, i.e., bit 1 has the value 0
all others have the value 1. A LED is turned on when an output is LOW so the value 253 means that
device pin 9 (note that input1 is used) is low and since this pin is connected to LED2 this LED is lit. The
schematics for the QVGA Base board illustrate how the PCA9532 is connected.
5.8 NAND Flash
5.8.1 Hardware
The LPC3250 OEM Board is equipped with a 1 Gbit NAND Flash memory from Samsung. The part
number for the memory is K9F1G08U0A.