multiplexing 7 segment via serial port from pc to pic877a

Status
Not open for further replies.

blush

Newbie level 5
Joined
Jan 25, 2012
Messages
8
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
1,330
need help..
i want to display 4 digit number to a multiplex 4 digit 7 segment wherein the data is came from the pc via serial port to the pic then pic to 7 segment.. my problem is how to display the data? and how to program it. i use max3245 to convert the voltage output of the pc to the pic
 

Basically:
Use 7 outputs of the pic to drive the 7-segments of the displays
Use 4 outputs of the pic to select 1 of 4 digits (cathode or anode, depending)

1) Decode the message from the PC into 4 digits (depending what the format from the PC is)
2) Sequentially translate each digit into its 7-segment representation
3) Put the 7-segment data on the outputs and drive the appropriate digit-select output
4) Select the next digit.
5) Repeat
 

can you give me a code for displaying the number into the 7segment?
 

The following tutorials cover both the Baseline and Midrange PICs using both Assembly and C languages.

**broken link removed**



Lesson 12 of the Midrange PIC Assembly Language Tutorials, covers Multiplexing 7-Segment Displays:





The lesson example implements a Multiplexed 3-Digit Display, which can be easily adapted to 4-Digit.


BigDog
 

Status
Not open for further replies.

Similar threads

Cookies are required to use this site. You must accept them to continue using the site. Learn more…