Professional Documents
Culture Documents
CONTENTS
http://jrmtech.in
JARM - Extension Board Manual 2 16/12/2010
The following diagram illustrates the layout of board housing the eight numbers
of Switches and LEDs. The Data Port can be connected to any Port available in
the JARM7 board.
http://jrmtech.in
JARM - Extension Board Manual 3 16/12/2010
However, in our Example, we connect the LED Data Port of this board to PORT0.16 to
Port0.31 (FRC Connector2) of JARM7 Board through a FRC Cable.
and we connect the Switch Data Port of this board to PORT1.16 to
Port1.31 (FRC Connector3) of JARM7 Board through a FRC Cable.
And Switches
S1 – PORT1.16
S2 – PORT1.17
S3 – PORT1.18
S4 – PORT1.19
S5 – PORT1.20
http://jrmtech.in
JARM - Extension Board Manual 4 16/12/2010
S6 – PORT1.21
S7 – PORT1.22
S8 – PORT1.23
Sample Source code:
Source code for this experiment is provided in the folder “Switch and LED” under
Source Code Folder.
Expected Output:
Whenever one or more Switches get closed (ON), corresponding LEDs will glow.
The following diagram shows the layout of ADC and LM35 Interface Board for
JARM7 board.
http://jrmtech.in
JARM - Extension Board Manual 5 16/12/2010
LED Data Port ( FRC Connector 1) is available for connecting the 10 LEDs of the ADC
board to the JARM7 Board. Sensor Input Port ( FRC Connector 2) is available for
connecting the Sensors of the ADC board to the JARM7 Board. A PBT connector is
provided for connecting external 5v DC source to the board for LM 35 Temperature
Sensor IC Interface.
LEDs D0 to D9 will display the equivalent 10 bit digital output of the ADC unit
for the given Analog Signal. ( Do – LSB and D9 – MSB)
LED Data Port (FRC Connector 1 of ADC Board ) should be connected to the FRC
Connector 2 ( P0.16 to P0.31) of the JARM7 Board and Sensor Input Prot ( FRC
Connector 2 of ADC Board ) should be connected to the FRC Connector 3 ( P1.16 to
P1.31)of JARM7 Bard
http://jrmtech.in
JARM - Extension Board Manual 6 16/12/2010
Jumper Settings:
Jumper JP1
Shorting of Pins 1 & 2 in JP1 – Analog Signal from POT will be selected as ADC
I/P.
Shorting of Pins 2 & 3 in JP1 – Analog Signal output LM35 will be selected as
ADC I/P.
Jumper JP2
Placing a jumper in the position 1 in JP2 ( shorting the pins Vertically in Position
1) will direct the ADC Input ( from POT or LM35 - depends on setting in JP1) to
the Channel AD0.0
Placing a jumper in the position 2 in JP2 ( shorting the pins Vertically in Position
2) will direct the ADC Input ( from POT or LM35 - depends on setting in JP1) to
the Channel AD0.1
Placing a jumper in the position 3 in JP2 ( shorting the pins Vertically in Position
3) will direct the ADC Input ( from POT or LM35 - depends on setting in JP1) to
the Channel AD0.2.
Apart from the POT and LM35, we can also connect the Analog output from any
sensor to the Analog channels AD0.0, AD0.1 or AD0.2 by directly connecting the
signal to the connector available in the upper row of JP2. ( Note: Output from
the sensor should be below 3V. If the sensor output is above 3V, proper
potential divider should be used to limit signal level below 3V)
Sample Source Code:
Sample Source code for this experiment is provided in the folder “ADC_Test”
under Source Code Folder.
Expected Output:
The 10 bit digital output equivalent to the Analog Signal Input of the selected
channel will be displayed through the 10 LEDs provided in the board ( D9 – MSB
and D0- LSB).
http://jrmtech.in
JARM - Extension Board Manual 7 16/12/2010
http://jrmtech.in
JARM - Extension Board Manual 8 16/12/2010
http://jrmtech.in
JARM - Extension Board Manual 9 16/12/2010
http://jrmtech.in
JARM - Extension Board Manual 10 16/12/2010
http://jrmtech.in
JARM - Extension Board Manual 11 16/12/2010
http://jrmtech.in
JARM - Extension Board Manual 12 16/12/2010
For this Experiment, we connect the DATA PORT of this Board into the PORT1.16
to PORT1.31 ( FRC Connector 3) of JARM7 board. We need the connection of
LCD Board to the PORT0.16 to PORT0.31 ( FRC Connector2) of JARM7 Board.
Jumper Settings of JP1:
Shorting Connectors 1 & 2 in JP1 - Active High Output (HIGH when Switch is
pressed)
Shorting Connectors 2 & 3 in JP1 - Active Low Output ( LOW when Switch is
pressed)
As per this connection, the following wiring diagram will come into effect.
ROW1 – PORT1.16
ROW1 – PORT1.17
ROW1 – PORT1.18
ROW1 – PORT1.19
COL1 – PORT1.20
JARM - Extension Board Manual 10 16/12/2010
http://jrmtech.in
COL1 – PORT1.21
COL1 – PORT1.22
COL1 – PORT1.23
( LCD Connection Diagram as illustrated in the Section - ####)
Switch S1 is at the intersection of Row1 and Column 1
Switch S2 is at the intersection of Row1 and Column 2
Switch S3 is at the intersection of Row1 and Column 3
Switch S4 is at the intersection of Row1 and Column 4
Switch S5 is at the intersection of Row2 and Column 2
Switch S6 is at the intersection of Row2 and Column 2
Switch S7 is at the intersection of Row2 and Column 2
Switch S8 is at the intersection of Row2 and Column 2
Switch S8 is at the intersection of Row3 and Column 3
Switch S10 is at the intersection of Row3and Column 3
Switch S11 is at the intersection of Row3 and Column 3
http://jrmtech.in
JARM - Extension Board Manual 13 16/12/2010
http://jrmtech.in
JARM - Extension Board Manual 14 16/12/2010
http://jrmtech.in
JARM - Extension Board Manual 15 16/12/2010
Expected output:
The given data will be written to the EEPROM and will be read back. If the read
value matches with the original value written, then I2C Flash will be displayed in
the LCD Display. Otherwise, I2C Flash file will be displayed in the LCD Display.
Sample Source Code for I2C based RTC :
Sample Source code for this experiment is provided in the folder “I2C-RTC”
under Source Code Folder.
Expected output:
The Date, Month and Year will be displayed in the Line 0 and Hours, Minutes and
Seconds will be displayed in the Line1 of the LCD Display. For every seconds, the
Line 1 of LCd Display will be refreshed to show the current value of Time.
http://jrmtech.in
JARM - Extension Board Manual 16 16/12/2010
An External 12V DC should be connected to this board via the PBT Connector
provided.
Data Port is connected to the PORT1.16 to PORT1.31 (FRC Connector 3) of
JARM7 board through FRC Cable.
Unipolar Stepper Motor ( For details, see the schematic diagram of Stepper
motor interface to JARM7 LPC 2148 Board) is connected to the extension board
through the Connector marked SL1.
The Common (COM), Normally Open (NO) and Normally Closed (NC) contacts of
the Relay are provided through a three terminal PBT connector for external
connectivity if need.
With this setup, Buzzer, Relay and stepper motor will be connected to the PORTs
of LPC2148 as listed below:
Buzzer – PORT1.26
Relay – PORT1.27
Stepper Motor
D0 (Orange) – PORT1.28
D1 (Blue) – PORT1.29
D2 (Yellow) – PORT1.30
D3 (Red) – PORT1.31
http://jrmtech.in
JARM - Extension Board Manual 17 16/12/2010
http://jrmtech.in