Easy 4-digits 7 segment LED Display

Easy 4-digits 7 segment LED Display Hardware Manual Rev 1r0 Wire it on your microcontroller circuit, or hook it up on your PC parallel port, and you ...
4 downloads 1 Views 2MB Size
Easy 4-digits 7 segment LED Display Hardware Manual Rev 1r0

Wire it on your microcontroller circuit, or hook it up on your PC parallel port, and you will be able to display 4 digit numbers with little programming effort. Also functions as a stand alone digital counter.

FEATURES & SPECIFICATIONS • 5V Power Supply • 2 Available modes (Digit Display mode and Counter mode). • BCD Binary Coded Decimal • Stand alone Digital Counter

© Copyright 2011 by e-Gizmo Mechatronix Central All Rights Reserved

Pages 1 of 9 pages

www.e-Gizmo.com

Easy 4-Digits 7 Segment LED Display Datasheet Version 1

MAJOR COMPONENTS PRESENTATION

Bo!om View

Figure 1. Easy 4-digits 7 segment LED display and major components presenta!on

© Copyright 2011 by e-Gizmo Mechatronix Central All Rights Reserved

Pages 2 of 9 pages

www.e-Gizmo.com

Easy 4-Digits 7 Segment LED Display Datasheet Version 1

Figure 2. Easy 4-digits 7 segment LED display JP2 Pin

Figure 3. Easy 4-digits 7 segment LED display JP1 Pins

If the JP2 header pins has a jumper a!ached Table 1. JP1 Pins Pin Descrip!on and fnc!ons to it, you are in ‘Counter Mode’ and to enter the ‘DigPin I.D. Func"on its Display Mode’ just remove the jumper a!ached. GND Ground 5V 5V Power Supply When in digit display mode the JP1 pins D3D3 I/O D0 became binary inputs and the ‘UP‘ and ‘DOWN‘ D2 I/O func"ons will be disabled. D1/UP I/O/Increment D0/DOWN I/O/Decrement Shi#/Clear Shi# register/Clear counter

Table 2. Binary register in digit display mode Func"on Display Registers (BCD F) Load BCD 1 Load BCD 2 Load BCD 3 Load BCD 4 Load BCD 5 Load BCD 6 Load BCD 7 Load BCD 8 Load BCD 9 Load BCD 0 Load BCD A Load BCD B Load BCD C Load BCD D

D3 1 0 0 0 0 0 0 0 1 1 0 1 1 1 1

D2 1 0 0 0 1 1 1 1 0 0 0 0 0 1 1

D1 1 0 1 1 0 0 1 1 0 0 0 1 1 0 0

Load BCD E

1

1

1

© Copyright 2011 by e-Gizmo Mechatronix Central All Rights Reserved

‘1’ = High ‘0’ = Low D0 1 1 0 1 0 1 0 1 0 1 0 0 1 0 1 0 Pages 3 of 9 pages

www.e-Gizmo.com

Easy 4-Digits 7 Segment LED Display Datasheet Version 1

OPERATIONS - DISPLAY MODE & COUNTER MODE Features (Display Mode) Internal 4 stage shi# buffer Internal pull-up resistors (data and control lines) Display numbers 0-9 as well as characters A-E (F is used as instruc"on to display out the content of the 4 buffers 42 frames per second maximum opera"ng speed Display Mode Opera"on The device is in display mode when the jumper mode selector is open. In this mode, the device just wait for a high to low transi"on in the Shi# pin and when it detects a transi"on, its reads D3-D0, shi# it in the 4 stage buffer if it is data (0-9 or A-E) or display the content of the buffers when it receives an F (1111). On power up or upon switching from counter mode to display mode, the display shows 8888 (four 8’s) but the contents of the buffers are all 0’s. This can be proven by sending F (1111) first. Ex: Displaying 1234 to the 4-digit display: 1. Load BCD 1 to D0-D4 then toggle Shi# line.

2. Load BCD 2 to D0-D4 then toggle Shi# line.

3. Load BCD 3 to D0-D4 then toggle Shi# line.

© Copyright 2011 by e-Gizmo Mechatronix Central All Rights Reserved

Pages 4 of 9 pages

www.e-Gizmo.com

Easy 4-Digits 7 Segment LED Display Datasheet Version 1

4. Load BCD 4 to D0-D4 then toggle Shi# line.

5. Load F (1111) to D0-D4 then toggle Shi# line.

Features (Counter mode) Up, down and Reset pins Counts from 0000-9999 Internal pull-up resistors (data and control lines) 140 counts per second maximum (see "ming diagram) Counter Mode Opera"on The device is in counter mode when jumper mode selector is close. In this mode, D1, D0 and Shi# pins becomes the Up, Down and Reset pins respec"vely (D3 and D2 has no func"on). To operate the counter, all it needs is a high to low transi"on on any of its pins. One way is to short any pin to ground. Note that the counter is fast and it has no internal debounce protec"on when mechanical contact (switch) is used which can cause mul"ple counts. To avoid this problem, simply add a capacitor (10 – 100 nF typical) to each input pin going to ground or simply parallel to the switch or contact.

© Copyright 2011 by e-Gizmo Mechatronix Central All Rights Reserved

Pages 5 of 9 pages

www.e-Gizmo.com

Easy 4-Digits 7 Segment LED Display Datasheet Version 1

CONNECTING TO MICROCONTROLLERS

Figure 4. Easy 4-digits 7 segment LED display Connected to a microcontroller through GPIO port

Figure 5. Easy 4-digits 7 segment LED display Connected to gizDuino microcontroller.

© Copyright 2011 by e-Gizmo Mechatronix Central All Rights Reserved

Pages 6 of 9 pages

www.e-Gizmo.com

Easy 4-Digits 7 Segment LED Display Datasheet Version 1

Figure 6. Timing Diagram of Digit Display Mode. © Copyright 2011 by e-Gizmo Mechatronix Central All Rights Reserved

Pages 7 of 9 pages

www.e-Gizmo.com

Easy 4-Digits 7 Segment LED Display Datasheet Version 1

Gnd 5V D3 D2 D1/Up D0/Down Shift/Clear

JP1

1 2 3 4 5 6 7 HEADER 7

Function Select

0 - Display Mode 1 - Counter Mode

JP2

2

1 JUMPER

F1 FUSE1

R11 R10 10 R9 K 10 K R8 10 K 10 K

8 9 10 7 6

D1 DIODE

XTAL1/CE XTAL2

P31/OE P32/EPM P33/VPP

+ C2 220uF/16V

VCC

P00/CLR P01/CLK P02/PGM P20/D0 P21/D1 P22/D2 P23/D3 P24/D4 P25/D5 P26/D6 P27/D7

C3 104

U2

11 12 13 15 16 17 18 1 2 3 4 Z86E04

VCC

R15

Q3 PNP

R14

Q2 PNP

R13

Q1 PNP

R12

5.1 K R18 1.5 K

5.1 K R17 1.5 K

5.1 K R16 1.5 K

5.1 K

Q4 PNP

R19 1.5 K

U1 4 DIGIT 7-SEGMENT DISPLAY

R20 R21 R22 R23 R24 R25 R26 150 150 150 150 150 150 150

VCC

U3 74HC595

4 Digit Display / Up-Down Counter

VCC

8

GND

QH'

9

6

QH

7

QG

SCLR

10

SCLK

11

4

QF

5

QE

RCLK 12

OE 13

VCC

R1R2R3R4R5R6 10 10 K 10 K 10 K 10 K 10 KK

R7 10 K

Y1

C5 27

NC

13

B

11

A

12

D 9

C 10

E 8

F 7 2

QD

3

QC

SER 14

QA 15

A4 5

G 6 1 QB VCC 16

A2 3

A3 4

NC 1

A1 2

Figure 7. Schematic Diagram of Easy 4-Digits 7 Segment LED Display

7.2 Mhz C4 27

5 VCC

Pages 8 of 9 pages

www.e-Gizmo.com

© Copyright 2011 by e-Gizmo Mechatronix Central All Rights Reserved

GND 14

Easy 4-Digits 7 Segment LED Display Datasheet Version 1

PCB BOARD PRESENTATION

Figure 8. Easy 4-Digits 7 Segment LED Display Silk Screen Layout

Figure 9. Figure 7. Easy 4-Digits 7 Segment LED Display PCB Copper Pa"ern

© Copyright 2011 by e-Gizmo Mechatronix Central All Rights Reserved

Pages 9 of 9 pages

www.e-Gizmo.com