Top Banner

of 17

Arm7 Extension Boards

Apr 08, 2018

Download

Documents

Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
  • 8/7/2019 Arm7 Extension Boards

    1/17

    JARM - Extension Board Manual 1 16/12/2010

    http://jrmtech.in

    JARM - EXTENSION BOARD MANUAL

    CONTENTS

    1 LED AND SWITCH 1

    2ANALOG TO DIGITAL CONVERTER AND LM35 TEMPERATURE SENSOR

    INTERFACING4

    3 SIX DIGIT MULTIPLEXED SEVEN SEGMENT DISPLAY6 7

    4 CHARACTER LCD DISPLAY (2*16) BOARD 9

    5 FOUR BY FOUR MATRIX KEYPAD 1

    6 I2C BASED EEPROM AND RTC BOARD 1

    7 BUZZER, RELAY AND STEPPER MOTOR BOARD 1

  • 8/7/2019 Arm7 Extension Boards

    2/17

    JARM - Extension Board Manual 2 16/12/2010

    http://jrmtech.in

    1.LED AND SWITCHThe 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.

    Connector PINout Diagram

  • 8/7/2019 Arm7 Extension Boards

    3/17

    JARM - Extension Board Manual 3 16/12/2010

    http://jrmtech.in

    Settings for Jumper JP1:

    Shorting Connectors 1 & 2 in JP1 - Switches will be in Active HIGH Mode

    (Normally Low and when switch gets pressed, its output will be HIGH )

    Shorting Connectors 2 & 3 in JP1 - Switches will be in Active LOW Mode (Normally High

    and when switch gets pressed, its output will be LOW )

    Settings for Jumper JP2:

    Shorting Connectors 1 & 2 in JP1 - Pull Up Mode for Switches.

    Shorting Connectors 2 & 3 in JP1 - Pull Down Mode for Switches.

    For Switches in Active High and Pull Down Mode Keep 1&2 short in JP1 and 2& 3

    short in JP2. ( This is the Normally used Default Scenario.)

    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.

    As per this connection,

    LED1 PORT0.16

    LED2 PORT0.17

    LED3 PORT0.18

    LED4 PORT0.19

    LED5 PORT0.20

    LED6 PORT0.21

    LED7 PORT0.22

    LED8 PORT0.23

    And Switches

    S1 PORT1.16

    S2 PORT1.17

    S3 PORT1.18

    S4 PORT1.19

    S5 PORT1.20

  • 8/7/2019 Arm7 Extension Boards

    4/17

    JARM - Extension Board Manual 4 16/12/2010

    http://jrmtech.in

    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.

    2. ANALOG TO DIGITAL CONVERTER AND LM35

    TEMPERATURE SENSOR INTERFACING

    The following diagram shows the layout of ADC and LM35 Interface Board for

    JARM7 board.

  • 8/7/2019 Arm7 Extension Boards

    5/17

    JARM - Extension Board Manual 5 16/12/2010

    http://jrmtech.in

    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

  • 8/7/2019 Arm7 Extension Boards

    6/17

    JARM - Extension Board Manual 6 16/12/2010

    http://jrmtech.in

    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).

  • 8/7/2019 Arm7 Extension Boards

    7/17

    JARM - Extension Board Manual 7 16/12/2010

    http://jrmtech.in

    3. SIX DIGIT MULTIPLEXED SEVEN SEGMENT DISPLAY

    The following diagram illustrates the layout of the Six Digit Multiplexed Seven

    Segment Display Board.

    Jumper Settings of JP1:

    Shorting Connectors 1 & 2 in JP1 - Multiplexed Display Mode (DIS1 to DIS6)

    Shorting Connectors 2 & 3 in JP1 - Single Digit Display Mode( Only DIS6) .

    Data port is connected to the PORT 1.16 to PORT1.31 ( FRC Connector 3 in the

    JARM7 Board) through the FRC Cable. With this connection, the following wiring

    diagram will come into effect.

  • 8/7/2019 Arm7 Extension Boards

    8/17

    JARM - Extension Board Manual 8 16/12/2010

    http://jrmtech.in

    Case1: ( Multiplexed Display Mode (DIS1 to DIS6) )

    PORT1.16 Segment a

    PORT1.17 Segment b

    PORT1.18 Segment c

    PORT1.19 Segment d

    PORT1.20 Segment e

    PORT1.21 Segment f

    PORT1.22 Segment g

    PORT1.23 Segment dp ( decimal point)

    PORT1.24 Enable Signal DIS1

    PORT1.25 Enable Signal DIS2

    PORT1.26 Enable Signal DIS3

    PORT1.27 Enable Signal DIS4

    PORT1.28 Enable Signal DIS5

    PORT1.29 Enable Signal DIS6

    Case2: ( Single Digit Display Mode)

    PORT1.16 Segment a

    PORT1.17 Segment b

    JARM - Extension Board Manual 7 16/12/2010

    http://jrmtech.in

    PORT1.18 Segment c

    PORT1.19 Segment d

    PORT1.20 Segment e

    PORT1.21 Segment f

    PORT1.22 Segment g

    PORT1.23 Segment dp ( decimal point)

    Sample Source Code :

    Sample Source code for this experiment is provided in the folder Switch and

    LED under Source Code Folder.

    Expected Output :

    The Character(s) will be displayed in the Seven Segment Display as per the data

    provide through the program.

  • 8/7/2019 Arm7 Extension Boards

    9/17

    JARM - Extension Board Manual 9 16/12/2010

    http://jrmtech.in

    4. CHARACTER LCD DISPLAY (2*16) BOARD

    The following diagram illustrates the layout of the Character LCD Display (2*16)

    Board.

    A PBT connector is available for connecting external 5V DC supply to the Board.

    A POT is provided to vary the brightness of the display. The Data port of this

    LCD board is connected to the PORT 0.16 to PORT0.31 (FRC Connector C2) of

    JARM7 board through FRC Cable.

    As per this connection, the following wiring diagram will come into effect.

  • 8/7/2019 Arm7 Extension Boards

    10/17

    JARM - Extension Board Manual 10 16/12/2010

    http://jrmtech.in

    LCD in 4 Bit Display mode

    LCD Pins LPC2148 Port

    RS PORT0.16

    RW GND

    E PORT0.18

    D0 GND

    D1 GND

    D2 GND

    D3 GND

    D4 PORT0.28

    D5 PORT0.29

    D6 PORT0.30

    D7 PORT0.31

    Sample Source Code :

    Sample Source code for this experiment is provided in the folder LCD Test

    under Source Code Folder.

    Expected output:

    The sample text given through the program will be displayed in the LCD Display.

  • 8/7/2019 Arm7 Extension Boards

    11/17

    JARM - Extension Board Manual 11 16/12/2010

    http://jrmtech.in

    5. FOUR BY FOUR MATRIX KEYPAD

    The following diagram illustrates the layout of the Four by Four Matrix Keypad

    Board.

  • 8/7/2019 Arm7 Extension Boards

    12/17

    JARM - Extension Board Manual 12 16/12/2010

    http://jrmtech.in

    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

  • 8/7/2019 Arm7 Extension Boards

    13/17

    JARM - Extension Board Manual 13 16/12/2010

    http://jrmtech.in

    Switch S12 is at the intersection of Row3 and Column 3

    Switch S13 is at the intersection of Row4 and Column 4

    Switch S14 is at the intersection of Row4 and Column 4

    Switch S15 is at the intersection of Row4 and Column 4

    Switch S16 is at the intersection of Row4 and Column 4

    Sample Source Code :

    Sample Source code for this experiment is provided in the folder Matrix Keypad

    under Source Code Folder.

    Expected output:

    The Number of the Switch pressed will be displayed in the LCD.

    6. I2C BASED EEPROM AND RTC BOARD

    The following diagram illustrates the layout of the I2C Based EEPROM and RTC

    Board .

  • 8/7/2019 Arm7 Extension Boards

    14/17

    JARM - Extension Board Manual 14 16/12/2010

    http://jrmtech.in

    An External 5V DC should be connected to this board via the PBT Connector

    provided.

    An additional battery is provided for power backup to the RTC.

    Data Port is connected to the PORT0.0 to PORT0.15 (FRC Connector 1) of

    JARM7 board through FRC Cable. For this Board, we have to connect the LCD

    Board to PORT0.16 to PORT0.31 (FRC Connector 2) of JARM7 Board for display

    purpose.

    Jumper Setting JP1

    For make use of I2C0 Place two jumpers in the position 2 & 4 of JP1

    ( Placing a jumper in Position 2 of JP1 will connect SDA0 of LPC2148 to the

    SDA of EEPROM / RTC IC and Placing a jumper in Position 4of JP1 will connect

    SCL0 of LPC 2148 to the SCL of EEPROM / RTC IC )

    For make use of I2C1 Place two Jumpers in the Position 1& 3 of JP1

    ( Placing a jumper in Position 2 of JP1 will connect SDA0 of LPC2148 to the

    SDA of EEPROM / RTC IC and Placing a jumper in Position 4of JP1 will connect

    SCL0 of LPC 2148 to the SCL of EEPROM / RTC IC )

    JARM - Extension Board Manual 12 16/12/2010http://jrmtech.in

    Sample Source Code for I2C based EEPROM :

    Sample Source code for this experiment is provided in the folder I2C-EEPROM

    under Source Code Folder.

  • 8/7/2019 Arm7 Extension Boards

    15/17

    JARM - Extension Board Manual 15 16/12/2010

    http://jrmtech.in

    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.

    7. BUZZER, RELAY AND STEPPER MOTOR BOARD.

    The following diagram illustrates the layout of the I2C Based EEPROM and RTC

    Board.

  • 8/7/2019 Arm7 Extension Boards

    16/17

    JARM - Extension Board Manual 16 16/12/2010

    http://jrmtech.in

    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

  • 8/7/2019 Arm7 Extension Boards

    17/17

    JARM - Extension Board Manual 17 16/12/2010

    http://jrmtech.in

    Sample Source Code for Buzzer, Relay and Stepper Motor :

    Sample Source code for this experiment is provided in the folder Buzzer-realy-

    Steeper under Source Code Folder.

    Expected output:

    The Steeper motor will rotate in the clockwise direction for 30 seconds, after that

    Buzzer will beep three times followed by the activation of Relay for three times

    which will be followed by the rotation of Stepper motor in anti-clockwise

    direction for another 30 seconds. This sequence will be repeated.