Keefep

Members
  • Posts

    26
  • Joined

  • Last visited

Everything posted by Keefep

  1. All good. Thank you for your help, key was to stop looking at hardware.
  2. Following text from the Arduino page, "The Arduino Leonardo board uses Serial1 to communicate via TTL (5V) serial on pins 0 (RX) and 1 (TX). Serial is reserved for USB CDC communication. For more information, refer to the Leonardo getting started page and hardware page. " I replaced Serial with Serial1 and the Tx pin began sending the serial data.
  3. The Papilio Duo AVR is model after the Leonardo so Serial1 is the communication instance which the Tx pin is associated. Text below is off the Arduino site.

     

    "The Arduino Leonardo board uses Serial1 to communicate via TTL (5V) serial on pins 0 (RX) and 1 (TX). Serial is reserved for USB CDC communication. For more information, refer to the Leonardo getting started page and hardware page. "

  4. I agree, The IDE may not be handeling the Serial hardware correctly...
  5. I removed the bootloader and replaced it on the AVR. Using the "The Offical Papilio Duo Pinout Diagram" I did not see the I2C pins and defaulted to use F7, F6 then to B1, B3. Looking at the silk screen on the Papilio Duo, I used D0 (SCK), D1(SDA), the I2C device began being programmed/working. Still I have no Serial Output. Blink will toggle Pin 1 (Tx)
  6. I removed the bootloader and replaced it on the AVR. Using the "The Offical Papilio Duo Pinout Diagram" I did not see the I2C pins and defaulted to use F7, F6 then to B1, B3. Looking at the silk screen on the Papilio Duo, I used D0 (SCK), D1(SDA), the I2C device began being programmed/working. Still, I have no Serial Output.
  7. I've been able to get the pins 2-13 to toggle by loading the AVR via the ISP connection from the FPGA, however, the TX and SCK, SDA pins are working correctly. Any suggestions?
  8. I removed Windows from my machine and loaded Ubuntu and (re)loaded DesighLab working now.
  9. I cannot get the AVR to control the TX pin. I want to use the serial out but no data is being sent out TX. In the Loop section, I get the OK on the monitor, and have the LED blinking, but pin 1 (TX) does not toggle. What might I be missing? Thanks you for your help... Keith #include <Wire.h> #include <Adafruit_SI5351.h> #define circuit blank Adafruit_SI5351 clockgen = Adafruit_SI5351(); /**************************************************************************/ /* Arduino setup function (automatically called at startup) */ /**************************************************************************/ /* Blink Turns on an LED on for one second, then off for one second, repeatedly. This example code is in the public domain. */ // Pin 13 has an LED connected on most Arduino boards. // give it a name: int led = 13; int tx = 1; void setup(void) { // initialize the digital pin as an output. pinMode(led, OUTPUT); Serial.begin(9600); Serial.println("Si5351 Clockgen Test"); Serial.println(""); /* Initialise the sensor */ if (clockgen.begin() != ERROR_NONE) { /* There was a problem detecting the IC ... check your connections */ Serial.print("Ooops, no Si5351 detected ... Check your wiring or I2C ADDR!"); while(1); } Serial.println("OK!"); /* INTEGER ONLY MODE --> most accurate output */ /* Setup PLLA to integer only mode @ 900MHz (must be 600..900MHz) */ /* Set Multisynth 0 to 112.5MHz using integer only mode (div by 4/6/8) */ /* 25MHz * 36 = 900 MHz, then 900 MHz / 8 = 112.5 MHz */ Serial.println("Set PLLA to 900MHz"); clockgen.setupPLLInt(SI5351_PLL_A, 36); Serial.println("Set Output #0 to 112.5MHz"); clockgen.setupMultisynthInt(0, SI5351_PLL_A, SI5351_MULTISYNTH_DIV_8); /* FRACTIONAL MODE --> More flexible but introduce clock jitter */ /* Setup PLLB to fractional mode @616.66667MHz (XTAL * 24 + 2/3) */ /* Setup Multisynth 1 to 13.55311MHz (PLLB/45.5) */ clockgen.setupPLL(SI5351_PLL_B, 24, 2, 3); Serial.println("Set Output #1 to 13.553115MHz"); clockgen.setupMultisynth(1, SI5351_PLL_B, 45, 1, 2); /* Multisynth 2 is not yet used and won't be enabled, but can be */ /* Use PLLB @ 616.66667MHz, then divide by 900 -> 685.185 KHz */ /* then divide by 64 for 10.706 KHz */ /* configured using either PLL in either integer or fractional mode */ Serial.println("Set Output #2 to 10.706 KHz"); clockgen.setupMultisynth(2, SI5351_PLL_B, 900, 0, 1); clockgen.setupRdiv(2, SI5351_R_DIV_64); /* Enable the clocks */ clockgen.enableOutputs(true); } /**************************************************************************/ /* Arduino loop function, called once 'setup' is complete (your own code should go here) */ /**************************************************************************/ void loop(void) { digitalWrite(led, HIGH); // turn the LED on (HIGH is the voltage level) delay(100); // wait for a second digitalWrite(led, LOW); // turn the LED off by making the voltage LOW delay(900); // wait for a second digitalWrite(tx, HIGH); // turn the LED on (HIGH is the voltage level) delay(1000); // wait for a second digitalWrite(tx, LOW); // turn the LED off by making the voltage LOW delay(1000); // wait for a second Serial.println("OK!"); }
  10. Yes, I've been there. Most of the videos seen to assume level of understanding which I don't have. Example "Open Project" familiar term but not specific enough for newbie, plus what I fumble and find looks nothing like video...
  11. My condolence on the passing of your grandfather... I so new to this that I've only have loaded DesignLab fumbled thru getting Xilinx loaded and security enabled (I think), and began to try following yourvYouTube videos. However, very little resembles the examples. The DesignLab is the same ant menu items. But the file within directories are not even close to what your video is requesting I click on. My installation is in the weeds for some reason. My laptop is running a Vista 64bit.
  12. Following along with YouTube I'm not running into the files mentioned in the video.
  13. The DesignLab1.07 directory I could not delete. I renamed it and installed DesignLab again...the application opened. Progress. It appears either the file names are too long, or somehow the security settings are so restrictive I could not delete the DesignLab directory.
  14. (cont'd) at processing.app.Base.addSketches(Base.java:1773) at processing.app.Base.addSketchesSubmenu(Base.java:1874) at processing.app.Base.addSketches(Base.java:1794) ...The last two lines repeat..
  15. The window which opens does not allow me to copy lines of text, and the beginning lines are loss because they scroll so quickly that the windor buffer is over run. I cannot completely delete the DesignLan directory because the Java directory has protection set which I have not figured out how to overcome. I deleted the preferences.txt and ran debud with following result: Exception in thread "main" java.lang.OutOfMemoryError: Java heap space at java.util.Arrary.copyOf(Unknown Source) at java.lang.String.<init><Unknown Source) at java.io.Win32FileSystem.resolve(Unknown Source) at java.io.File.<init>(Unknown Source) at java.io.File.listFiles(Unknown Source)
  16. I waited longer and received the additional strings (***): "at processing.app.Base.addSketchesSubmenu(Base.java:1874) at processing.app.Base.addSketches(Base.java:1794)" for many lines... *** Window opens and two instances of the text string are printed: "Could not find boards.txt in C:\DesignLab-1.0.7\hardware\zpuino\zpu. Is it pre-1.5?"
  17. Running Arduino_debug results: Window opens and two instances of the text string are printed: "Could not find boards.txt in C:\DesignLab-1.0.7\hardware\zpuino\zpu. Is it pre-1.5?"
  18. Search did not find any instances of jnidispatch.dll. There were three instances of javan.exe running. I stopped them all. Search did not turn up an instance of javan.dll. I restarted DesignLab. DesignLab splash screen comes up, after a time the design lab splash scree disappears then a moment later the Launch4j screen appears with text "An error occurred while starting application."
  19. Running Arduino_debug results: Window opens and two instances of the text string are printed: "Could not find boards.txt in C:\DesignLab-1.0.7\hardware\zpuino\zpu. Is it pre-1.5?"