Top Banner

of 17

Arm7 Extension Boards

Apr 08, 2018

ReportDownload

Documents

-

  • 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