Home    Bloggers    Messages    Webinars    Resources   
Tw  |  Fb  |  In  |  Rss
Duane Benson

Discovering FPGAs: Driving a 7-Segment Display

Duane Benson
Page 1 / 2 Next >
<<   <   Page 2 / 3   >   >>
thrakkor
thrakkor
8/8/2012 12:35:30 PM
User Rank
Blogger
Re: Not including resistors in your drive chain.
I would have to say you are sort of doing both.  and another thing to note (although maybe obvious) is that all IOSTANDARDS in a given bank need to be compatible with each other and the actual bank I/O voltage..

50%
50%
jacklsw86
jacklsw86
8/8/2012 12:32:33 PM
User Rank
Blogger
Re: Not including resistors in your drive chain.
Hi Duane,

Actually, you can't change the output voltage of the pins by just specifying in UCF file (how I wish it can do such magic). The voltage of the pins will be same as the voltage you feed into the VCCIO of the bank. If an FPGA has 4 banks, you can actually put different voltages in each banks, then all the GPIOs voltage correspond to the VCCIO for that particular bank.

You have to specify the voltage standard used in UCF file too, so that the internal logic can recognize which voltage ranges are representing 'low' and 'high', failure to do so might cause your circuits to read/output wrong logic or undefined state.

50%
50%
Duane Benson
Duane Benson
8/8/2012 12:24:49 PM
User Rank
Blogger
Re: Lemme guess
Jacklsw - I hadn't thought of that, but a small LCD is a good idea. I have a little 4x20 character LCD that would be perfect for outputting status data. I think I'll try to work up a PWM output first, then the LCD control.

50%
50%
Duane Benson
Duane Benson
8/8/2012 12:22:13 PM
User Rank
Blogger
Re: Not including resistors in your drive chain.
Brian - The other alien concept is the idea of changing the output voltage.

In the UCF, when I say "IOSTANDARD = LVCMOS33" or "IOSTANDARD= LVCMOS18", am I just reporting to the design tool what the voltage is? Or am I actually changing the voltage that the chip will output?

50%
50%
Duane Benson
Duane Benson
8/8/2012 12:18:57 PM
User Rank
Blogger
Re: LEDs all the way
Thanks Paul;

On the one hand, I wonder how many times the person that came up with the skycrane idea was called crazy. On the other hand, that's just the sort of thing that most engineers I know would think was a totally cool and very creative idea.

50%
50%
jacklsw86
jacklsw86
8/8/2012 5:06:30 AM
User Rank
Blogger
Lemme guess
You will be driving a 2x16 LCD next? :)

50%
50%
Brian
Brian
8/7/2012 4:21:17 PM
User Rank
Guru
Re: Not including resistors in your drive chain.
 

@Duane: Re: "The ability to set the amount of current that the chip will deliver through a pin is kind of an alien concept coming form the MCU world."

I like the "alien concept" term :-)

Yuuup!  The Infineon MCU devices that I've used recently had three output driver strengths; Weak/Medium/Strong corresponding to 0.1mA/1.0mA/2.5mA nominal or 0.5mA/4mA/10mA maximum - with of course a maximum per port/bank...

 

50%
50%
Paul Clarke
Paul Clarke
8/7/2012 2:55:46 PM
User Rank
Blogger
LEDs all the way
Nice work once again!

I did a simular little project some time back driving a small 5x7 LED matrix (http://www.element14.com/community/groups/fpga-group?view=blog). I think one of the great things about electoincs and programming is the joy from getting LEDs working or turning on and off a motor.

I think only engineers can see the massive amount of work that goes into this type of stuff, esp when you are new and have a learning curve that is like rock climbing at times.

Its all the more amazing to see NASA drop a ton of robot on Mars using a jet powered crain! Who in the design committe came up with that idea.!? There must have been some funny looks when it was suggested. However as its testing its cameras I think its a little like us getting Blinky LEDs or basic displays running.

Keep up the good work!

P :o)

50%
50%
Duane Benson
Duane Benson
8/7/2012 11:45:19 AM
User Rank
Blogger
Re: Not including resistors in your drive chain.
Brian - "I think he means raise the output drive current setting and limit the current with the [external] resistor and not the internal driver." That is how I interpreted it. So, for example, I might set the constraint to 20mA, yet use my current limiting resistor to set a, 8mA draw.

The ability to set the amount of current that the chip will deliver through a pin is kind of an alien concept coming form the MCU world.

50%
50%
Duane Benson
Duane Benson
8/7/2012 11:41:53 AM
User Rank
Blogger
Re: MPJA, Inc. for your solderless breadboard
Brian - Thanks for the lead. I paid $8.95 for the little one in these photos. $2.95 would be a very good price. Still, it's worth $8.95 to not have to tear down a project to move on to another.

50%
50%
<<   <   Page 2 / 3   >   >>
More Blogs from Duane Benson
Now it's time to delve deeper into the state machine I'm using to control my I2C interface.
The three states associated with bi-directional "inout" pins can cause confusion for the unwary.
It's time to jump into unexplored territory -- the state machine that will control Duane Benson's I2C interface.
We're now ready for the I2C master to transmit a command set to a remote device.
Duane Benson has his SPI interface working. At some point, he'll want to rewrite the Verilog code, but first he wants to get the I2C interface up and running.
flash poll
follow us on twitter
follow Xilinx on twitter
like us on facebook
like Xilinx on facebook
All Programmable Planet     About Us     Contact Us     Help     Register     Twitter     Facebook     RSS