Forum Discussion
Altera_Forum
Honored Contributor
11 years agoBeMicro Max 10 - DAC 5681 Out pin problem
*Posting again, because first thread just became a blank page. Hello, this is my first post in this forum, so if I make some kind of mistake, just let me know.<br> I'm trying to use t...
Altera_Forum
Honored Contributor
11 years ago --- Quote Start --- --- Quote Start --- So I tried to look again in the board and I found where is the pin, there is a big pin with upper case letters DAC_OUT, the problem was the datasheet of the board doesn't talk about that. Hi! Allow me to direct you to https://cloud.altera.com/devstore/board/bemicro-max-10-fpga-evaluation-kit/ this is what we call the Design Store. If you look under this link you will find the BeMicro MAX 10 "baseline" design. Follow the instructions to download and install this design. Quartus will then be preloaded with the complete pinout for the BeMicro MAX10. You should not have to enter the pinout manually. Cheers Larry --- Quote End --- Yeah, I did that. This code was printed from this baseline design:
--DAC, 12-bit, SPI interface (AD5681)
AD5681R_LDACn : out std_logic;
AD5681R_RSTn : out std_logic;
AD5681R_SCL : out std_logic;
AD5681R_SDA : out std_logic;
AD5681R_SYNCn : out std_logic;
If you look the DAC datasheet you see it has five input signals and just one output signal, so we can just think there is a mistake in the template given by altera. The code need to be this way:
--DAC, 12-bit, SPI interface (AD5681)
AD5681R_LDACn : in std_logic;
AD5681R_RSTn : in std_logic;
AD5681R_SCL : in std_logic;
AD5681R_SDA : in std_logic;
AD5681R_SYNCn : in std_logic;