AMcTools Forum 
  HomeHelpSearchLogin  
 
Pages: 1
Send Topic Print
how to plot 7 segment (Read 9099 times)
kuya
YaBB Newbies
*
Offline

I Love YaBB 2!

Posts: 5

how to plot 7 segment
01/20/11 at 04:22:20
 
i download 7 segment in http://sites.google.com/site/thvortex/vmlab/led7seg , and am use that component for simple project . and am have problem in plotting 7 segment

i write this X1 _led7cc VDD VDD GND VDD VDD GND VDD GND GND for display 7 segment in componet display.

my problem is :

how to plot 7 segment

thank's for all
Back to top
 
 
  IP Logged
moderator
YaBB Administrator
*****
Offline

I love forums, don't
you?

Posts: 308
AMcTools (Spain)
Gender: male
Re: how to plot 7 segment
Reply #1 - 01/20/11 at 12:00:36
 
Can you, please, extend more your request?

Do you mean by "plot" to get a hardcopy of the 7-segment display?  The only solution for this is a screenshot.
Back to top
 
 
WWW   IP Logged
kuya
YaBB Newbies
*
Offline

I Love YaBB 2!

Posts: 5

Re: how to plot 7 segment
Reply #2 - 01/24/11 at 07:41:22
 
this is the picture for control panel about 7 segment

in my project file i put or write :
[b]X1 _led7cc VDD VDD GND VDD VDD GND VDD GND GND[/b]
for show 7 segment in control panel

but i use simple program , to showing zero number in 7 segment nothing change like the picture

my question how to use 7 segment to be on or showing zero number for example

thank's for every think

Back to top
 
  IP Logged
moderator
YaBB Administrator
*****
Offline

I love forums, don't
you?

Posts: 308
AMcTools (Spain)
Gender: male
Re: how to plot 7 segment
Reply #3 - 01/24/11 at 18:30:42
 
....hmmm... it looks that you have an application problem, so don't get your segments on.... :-/

This cell has been developed by a forum member "ThVortex"; maybe he can give you some better hint. Have you read well the info coming in the thVortex website ?

I am very sorry, but I have no experience with this cell


Back to top
 
 
WWW   IP Logged
ThVortex
Global Moderator
*****
Offline



Posts: 160
Austin, TX, USA
Gender: male
Re: how to plot 7 segment
Reply #4 - 01/24/11 at 19:34:22
 
kuya, can you please post your project file? I tried copy & pasting the "X1 _led7cc" line that you had and it worked for me with the LED displaying the number 2.

I assume that you had started the simulation by hitting the "Go / Continue" button, yes?
Back to top
 
 
WWW   IP Logged
kuya
YaBB Newbies
*
Offline

I Love YaBB 2!

Posts: 5

Re: how to plot 7 segment
Reply #5 - 01/25/11 at 01:56:51
 
ok thvortex ,this my very simple project i send all for you. my be i still newbie for using vmlab .

my problem only showing zero or number else using code


thank you very much for your help
Back to top
 
  IP Logged
ThVortex
Global Moderator
*****
Offline



Posts: 160
Austin, TX, USA
Gender: male
Re: how to plot 7 segment
Reply #6 - 01/25/11 at 04:24:05
 
Ok. I see the problem here. You're using the common cathode version of the display which requires a positive voltage on the individual segment pins to illuminate. However, the PORT register initializes to 0 on power on, therefore all the PD pins will output 0V when you set them for output. You need to add another line like this:

[tt]PORTD = 0x7F;[/tt]

The second problem I see is that you have PD0 connected, but you initialize DDRD with 0x7E which will leave PD0 as an input pin. If you view the voltage on PD0 right now with:

[tt].PLOT V(PD0)[/tt]

It will measure 2.5V which is the unknown logic level voltage VMLAB applies to all floating pin connections.
Back to top
 
 
WWW   IP Logged
kuya
YaBB Newbies
*
Offline

I Love YaBB 2!

Posts: 5

Re: how to plot 7 segment
Reply #7 - 01/25/11 at 04:35:02
 
ok thank's ThVortex, is your the best
Back to top
 
 
  IP Logged
Pages: 1
Send Topic Print