Search the Community

Showing results for tags 'code'.



More search options

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Forums

  • News
    • New Users Introduction
    • Announcements
  • Digilent Technical Forums
    • FPGA
    • Digilent Microcontroller Boards
    • Non-Digilent Microcontrollers
    • Add-on Boards
    • Scopes & Instruments
    • LabVIEW
    • FRC
    • Other
  • General Discussion
    • Project Vault
    • Learn
    • Suggestions & Feedback
    • Buy, Sell, Trade
    • Sales Questions
    • Off Topic
    • Educators
    • Technical Based Off-Topic Discussions

Find results in...

Find results that contain...


Date Created

  • Start

    End


Last Updated

  • Start

    End


Filter by number of...

Joined

  • Start

    End


Group


AIM


MSN


Website URL


ICQ


Yahoo


Jabber


Skype


Location


Interests

Found 8 results

  1. Hi all, I am brand new to FPGAs and am finding the documentation more confusing than enlightening regarded this issue. I am having considerable difficulty getting my PYNQ-Z1 board to output a voltage through the Arduino IO ports. Currently I have a complete circuit from Arduino IO 0 to a breadboard with an LED and resistor in series, and it connects back to the Arduino ground port. My code is as follows: In [1]: from pynq.overlays.base import BaseOverlay base = BaseOverlay("base.bit") from pynq.lib.arduino import Arduino_IO In [2]: x=Arduino_IO(base.ARDUINO,0,"out") x.write(1) However, I am getting an attribute error, which reads as follows: AttributeError ---->2 x=Arduino_IO(base.ARDUINO,0,"out") /opt/python3.6/lib/python3.6/site-packages/pynq/lib/arduino/arduino_io.py in __init__(self,mb_info,index,direction) ---->97 self.microblaze.start() Attribute Error: 'Arduino' object has no attribute 'start' What is "start" and how can I fix my code to properly output voltage? Thanks for your time.
  2. Greetings. I just started out VHDL not long ago,and not quite familiar with Moore FSM. So I was trying to write this Moore FSM code as shown in Picture of my initial sketch(Link to imgur,safe to click). after search for some reference about Moore in VHDL,I'm still stuck. I'm hoping someone can help me fill-in the missing pieces of my code and to fit into the sketch. Sincerely Appreciate. library IEEE; use IEEE.STD_LOGIC_1164.ALL; use IEEE.STD_LOGIC_UNSIGNED.ALL; use IEEE.NUMERIC_STD.ALL; entity M6B is Port ( clk : in STD_LOGIC; x : in STD_LOGIC; rst : in STD_LOGIC; --z : out STD_LOGIC_VECTOR (6 downto 0); AN : out STD_LOGIC_VECTOR (1 downto 0); ledout : out STD_LOGIC_VECTOR (6 downto 0)); end M6B; architecture Behavioral of M6B is type state_type is (s0,s1,s2,s3,s4,s5); signal state : state_type; signal ledbcd : std_logic_vector (3 downto 0); signal ledonc : std_logic_vector (1 downto 0); signal osc : STD_LOGIC_VECTOR (24 downto 0); signal refresh_counter: STD_LOGIC_VECTOR (16 downto 0); signal oscen : std_logic; signal dispn : std_logic_vector (6 downto 0); begin process (clk,rst) begin if rst = '1' then state <= s0; elsif (rising_edge(clk)) then case state is when s0 => if x = '0' then state <= s1; else state <= s0; end if; when s1 => if x = '0' then state <= s2; else state <= s1; end if; when s2 => if x = '0' then state <= s3; else state <= s2; end if; when s3 => if x = '0' then state <= s4; else state <= s3; end if; when s4 => if x = '0' then state <= s5; else state <= s4; end if; when s5 => if x = '0' then state <= s0; else state <= s4; end if; end case; end if; end process; process (state) begin case state is when s0 => AN <= "10"; ledout <= "0000000"; when s1 => AN <= "10"; ledout <= "0000111"; when s2 => AN <= "10"; ledout <= "0000000"; when s3 => AN <= "10"; ledout <= "1001111"; when s4 => AN <= "10"; ledout <= "0000000"; when s5 => AN <= "10"; ledout <= "0000111"; end case; end process; end Behavioral;
  3. Hi there, I am not sure this is the right place to post my inquiry and I am aware that chance to find are very little. I have bought ER-OLEDM024-1 which specs are <a>http://www.displayfuture.com/Display/datasheet/OLED/ER-OLEDM024-1.pdf</a> from www.displayfuture,com . I am trying to control it with AT32UC3L0256 <a>http://www.microchip.com/wwwproducts/en/AT32UC3L0256</a> On the display specs there is a code... if you have any other OLED code sample for that microcontroller , would you mind to pass it to me? Any help will be much appreciated. Bests, Andres
  4. i want to generate sine wave on dac (pmodda3)(http://www.analog.com/media/en/technical-documentation/data-sheets/AD5541A.pdf)and i am using spartan3e but there ara several warnings ,How can i fix the warnings? i loaded code and picture. help me please ---------------------------------------------------------------------------------- library IEEE; use IEEE.STD_LOGIC_1164.ALL; use ieee.std_logic_arith.all; use ieee.std_logic_signed.all; use ieee.numeric_std.all; entity kecelikalem is port( clk: in STD_LOGIC; reset : in STD_LOGIC; din:out std_logic; ldac:out std_logic:='1'; cs :out std_logic:='1'; sclk :out std_logic:='1'); end kecelikalem; architecture Behavioral of kecelikalem is signal a:integer range 0 to 3:=0; signal i : integer range 0 to 18:=0; type veri is array (2 downto 0) of std_logic_vector(15 downto 0); signal sine :veri:=("1100000000100000","0000000000001111","1100000000000000"); --signal sine :std_logic_vector(15 downto 0):="1100000000000011"; signal data :std_logic_vector(15 downto 0); signal temporal: STD_LOGIC; signal counter : integer range 0 to 124999 := 0; begin frequency_divider: process (reset, clk) begin if (reset = '1') then temporal <= '0'; counter <= 0; elsif rising_edge(clk) then if (counter = 124999) then temporal <= NOT(temporal); counter <= 0; else counter <= counter + 1; end if; end if; end process; sclk <= temporal; process (temporal) begin if falling_edge(temporal) then if(a=3) then a<=0; else data<=sine(a); if (i=18) then a<=a+1; ldac<='1'; i<=0; else if (i=17) then ldac <='0'; else if (i=16) then cs<='1'; ldac <='1'; else cs<='0'; din<=data(i); --din<=sine(i); ldac <='1'; end if ; end if; end if ; i<=i+1; end if; end if; end process; end Behavioral;
  5. Hi, I'm trying to use the Analog Discovery 2 to control a stepper motor driver board. All I need to do is send an output (5V) signal using a DIO. I find the Waveforms 2015 manual to be lacking in terms of documentation for this - it does not explain how to give an output signal. How do I do this? Thanks! For instance, the reference manual has this sample code: function doStaticIO(){ print("Running StaticIO script"); StaticIO.Channel0.Mode.text = "IOs"; for(var c = 0; c < 8; c++) { StaticIO.Channel0.DIO[c].Mode.text = "Switch"; } But it is never explained what a Channel is either. What is a Channel and how is it different from DIO1, DIO2, etc.? Thank you so much!
  6. Good afternoon I am learning to use VHDL. I have a Nexys 4 ddr and a PmodSD card, that I would like to learn to use. I downloaded the most recent version of VIVADO, and Xilinx as well. Do you all have a program that I can use, to see how it works or a tutorial to process images? I would appreciate it. Thank you. Kind regards.
  7. Hi all, I'm looking to use Digilent's Ambient Light Sensor as an add-on for a project I'm doing. I can't use the example code given because I'm using a little bit more complex of a coding environment (Eclipse). I've managed to translate so to speak most of the example code to work for my environment, but one thing I'm struggling with is creating the correct initialization code in my environment. Does anyone have any experience coding the ALS outside of an Arduino-like environment or can tell me what I need to do to initialize it correctly? Thanks!
  8. Something is terribly wrong. My code for the Home Version was not accepted at the NI downloaded LabView, and I don't know where I should have gotten the home edition, it would have been a lot more sane if I was given a CD for LabView Home Edition. At 99% installed, I found out that I must not have a "Home Version" installed, because it didn't like my code. It accepted my serial number, it never asked for part number. I am extremely sad that I have spent all day on this, including updates for Windows Vista, that Microsoft found and told me to install. I have professional version of MSOffice XP. Which is supported by Lab View, for at least another year. Maybe in a year, when Windows Vista is no longer supported by LabView, I can get Windows 10. So please tell me 1. Do I have to uninstall everything now? 2. Where do I get LabView Home edition? Have a nice day, everybody.