Forum Discussion
HSMC GPIO Daughter card.
I have a question regarding the gpio-hstc card (http://www.terasic.com.tw/cgi-bin/page/archive.pl?language=english&categoryno=67&no=322&partno=1). I'd like to use this board to expand the gpio of my DE2-115 dev. board. In the documentation it states that the HSMC connector pins are connected to GPIO pins. Am I correct in thinking that there is no need for a driver in my design? Meaning I can just map a HSMC pin as if it is a GPIO pin, or do I need to do something more.
If you have any tips regarding the use of the board, I'd like to hear them as well.18 Replies
- Altera_Forum
Honored Contributor
Yes, you are correct. This adapter map HSMC pins only. Not need to have special driver
- Altera_Forum
Honored Contributor
thank you. I'll try to remember to post any tips I might think of when I have finished this project.
- Altera_Forum
Honored Contributor
Well I had a lot of other stuff to get working before I managed to do something with this adapter. But found that I had trouble when using the HSMC_TX_D_P[9?]. This is assigned to the same pin as nCEO. I remember reading something about this but I could not remember the solution. After about 30 minutes I remembered having a similar problem with another board once (I beleve it was the DE2-70) where a pin was configured as a programming pin.
So for others who encounter this and immediately search this forum: 1. Go to Assignments->Device->Device and Pin Options... 2. Open menu Dual-Purpose Pins 3. Set nCEO from "Use as programming pin" to "Use as regular I/O". - Altera_Forum
Honored Contributor
For others who would like to use this adapter, I will give my pin assignments file and the pinout I got from Terasic. I still have one problem, the HSMC_RX_D_N(15) is always high. If I have figured out why, I will post this as well.
- Altera_Forum
Honored Contributor
Hi there,
Thanks for sharing the tips with others. I had the same problem when I built a new project from scratch for the first time. Could you upload your project or send it to our support mail at [email protected] ? We'd like to take a look and see what's going on here. David from Terasic - Altera_Forum
Honored Contributor
@David, I will send you a mail in a couple of days. Is there other info you will need?
[edit] Do you also need all the VHDL files, or is just the project enough? If you want the vhdl code I can setup an example. - Altera_Forum
Honored Contributor
Hi there,
If it's alright with you, a complete project would be nice. I would like to get started by compiling the project here. I'll keep you posted if we need any other info. Thanks, David from Terasic - Altera_Forum
Honored Contributor
I have setup a quick test which has the same problem. It is always 2.12/2.11 volts whithout attaching any load, just a multimeter. Attached is the project and the sof file for a DE2-115 board with the Daughter card. I know the coding might not be as it should, but it is something I have quickly set up.
- Altera_Forum
Honored Contributor
I am beginningn to think we need to start a new thread about the pin voltage. I just found out that HSMC_TX_D_p(16) gives 2,38V when high, and HSMC_RX_D_p(15) provides 2,42V. This seems to be a small difference, but I use these two pins (among other pairs with similar problems) to control a motor[controller], and then it transmits a PWM signal, and the difference becomes a problem. The motor does turn one way, but not the other. Any suggestions? Should I change the jumper to select another IO standard, this might make the difference proportionally smaller, but the main problem still exists.
- Altera_Forum
Honored Contributor
@David, Do you know some workaround? I have done all other things on my project for now, and really need the extra IO in order to continue.