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.

[PIC] Problem in 7 Segment

Status
Not open for further replies.

renuka gurmeet singh

Junior Member level 2
Junior Member level 2
Joined
Jun 7, 2014
Messages
20
Helped
0
Reputation
0
Reaction score
0
Trophy points
1
Visit site
Activity points
132
Hello Engineers,hope You all are fine.
I have a little problem.I have design a circuit for
7 Segment display drive using PIC16f877a and write the code in embedded c , code does not gave any error in MPLAB compiler. BUt it does not Work. please help..

**broken link removed**
 

It says that it is an invalid attachment. Can you be more specific as to exactly what is not working or what is happening?
Note that if MPLAB does not give an error, it means that it compiled the code successfully. But it gives no assurances that your code will do exactly as you want it to.
 

It will for sure doesn't work.
As in digital design, the 7 segment display, are assumed to be all built with the same architecture.

In real hardware, several tests should be done upon it:
Like you should first test it, if it is common anode, or common cathode.
Then you should supply direct voltage, to know each terminal corresponds to wich segment.
You should (after knowing each pin) arrange the port of the MCU according to the test you had made.

- - - Updated - - -

Take a look at this:

- - - Updated - - -

After you know each terminal, corresponds to which segment, based on this, you send a value to the output port you are using, (in the attached figure it is PORTD)

Assuming that the middle segment, goes for terminal "c", and you want to send a "0" character to the output, you place the value of: "1101111" >> meaning that you want to turn the middle segment OFF.

- - - Updated - - -

Since your attachment was invalid, take this schematic into consideration and try to modify the output port to PORTD
 

Attachments

  • photo(6).JPG
    photo(6).JPG
    648.7 KB · Views: 66
  • 7seg.jpg
    7seg.jpg
    243.9 KB · Views: 62

Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top