Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

Help me display voltage on 7 segment LEDs using 89c51 with C51

Status
Not open for further replies.

narithota

Full Member level 1
Joined
Apr 21, 2006
Messages
95
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,286
Activity points
2,077
hi sir
iam using 89c51 with C51 compiler
i want display voltage on & four 7segment leds.I converted anlog voltage to digital
using ADC.now i want display voltage on & 7-segment leds like
0.001v
0.002v
.
.
.
5.000v

iam using only one port P1 conacted to the 7-segmentLEDs and i conacted
4 transisters to the port-P2 ( P2.1 p2.2 p2.3 p2.4 ).
how to selact the transister according to voltage
pleace give one C program on this logic

Thanks.

narithota

--------------------------------------------------------------------------------
 

Re: 7 segment

Hi narithota,

You can refer to this

**broken link removed**

it might help you some of the question...

Regard,
Help
 

Re: 7 segment

You have to decode the ADC binary output to be able to use the 7-segments.
You can do this either by software or by using another chip "7-segments decoder".

Here you are a 7-segments decoder.
 

7 segment

for AVR microcontroller, there is some tutorials and codes available on the book

MY EXPERIENCE IN PROGRAMMING AVR MICROCONTROLLER IN C USING WINAVR
you can get it from yahoo group-booksbybibin
https://groups.yahoo.com/group/booksbybibin/
 

Re: 7 segment

the coding:
mov a,p2
mov b,#10
div ab
mov r3,b
mov b,#10
div ab
mov r2,b
mov r1,a
 

Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top