Forum Rule: Always post complete source code & details to reproduce any issue!

Search:

Type: Posts; User: PaulStoffregen

Page 1 of 10 1 2 3 4

Search: Search took 0.11 seconds.

  1. This sounds like a question best answered by a...

    This sounds like a question best answered by a couple digitalWriteFast() lines and a logic analyzer.




    I intentionally left these sorts of details out, with the hope that the more essential...
  2. Yes, you can control this by putting FASTRUN on...

    Yes, you can control this by putting FASTRUN on every function you want to RAM1 and PROGMEM on every function you want in flash.

    If you don't use either, then it's up to the compiler (actually,...
  3. Yes, some examples are needed. But first I want...

    Yes, some examples are needed. But first I want to look at issue #3 (from msg #24) before adding examples to the documentation. If we need to add a 2nd keyword for PROGMEM, I'll need to update some...
  4. How about this? Does it help? ...

    How about this? Does it help?

    https://www.pjrc.com/store/teensy4_memory.png




    That'll take much more work since it's drawn with the Gimp using many layers. :(
  5. It can sometimes execute 2 instructions in the...

    It can sometimes execute 2 instructions in the same cycle.

    Sometimes 1 line of C or C++ source code becomes a single instruction, but often times the compiler needs to use many instructions to...
  6. Each capacitor needs to be physically close to a...

    Each capacitor needs to be physically close to a pair of power pins. The wires need to be short and have minimal loop area for the capacitors to be effective.

    If you put them all together...
  7. EDIT: quick recap from msg #24...

    EDIT: quick recap from msg #24: working to solve these 3 issues:

    1: Clear & easy to understand documentation is needed
    2: Arduino's size info doesn't fit the memory model
    3: PROGMEM can't be...
  8. I'm working on this issue today. Or really 3...

    I'm working on this issue today. Or really 3 issues:

    1: Clear & easy to understand documentation is needed
    2: Arduino's size info doesn't fit the memory model
    3: PROGMEM can't be used for both...
  9. Replies
    66
    Views
    2,286

    Robin deserves a lot of the credit. She does...

    Robin deserves a lot of the credit. She does quite a lot of "infrastructure" stuff that makes everything else possible.
  10. Replies
    10
    Views
    127

    Did you download the ZIP file or TAR.XZ and look...

    Did you download the ZIP file or TAR.XZ and look at its contents?
  11. Replies
    1
    Views
    81

    Don't worry, you're not going to be forced to use...

    Don't worry, you're not going to be forced to use Windows!

    But PJRC isn't going to create even more builds for Linux. Well, except perhaps a 7th installer for RISC-V when/if people start to use...
  12. Replies
    10
    Views
    127

    I looked at it briefly yesterday. But I'm kind...

    I looked at it briefly yesterday. But I'm kind of reluctant to spend much time until they've published the source code.
  13. If the file is a .ino, you should not see this...

    If the file is a .ino, you should not see this error. Please share the file (and all other required files) we can try to reproduce the problem.

    If the file is a .c or .cpp, you need to add...
  14. Use the published schematic as a guide. ...

    Use the published schematic as a guide.

    https://www.pjrc.com/teensy/schematic.html

    2 - connect 33 ohm resistors
    3 - connect the crystal to only the 2 pins on the MKL26 chip
    ...
  15. Yes, that's pretty much it. But that 3 bit field...

    Yes, that's pretty much it. But that 3 bit field needs to be cleared to zeros before the logical or.

    I ran this on a Teensy 3.5 and saw a 32.768 kHz square wave on pin 9.



    void setup() {
    ...
  16. Replies
    9
    Views
    101

    Maybe tell us or better show us with photos the...

    Maybe tell us or better show us with photos the sort of wiring you're using? If it's just loose unshielded wire, well, you can expect it to act like an antenna, especially if the GND wire doesn't...
  17. Replies
    1
    Views
    72

    No, there is currently no Teensy supporting...

    No, there is currently no Teensy supporting gigabit ethernet.

    Such a board is being discussed, but that's very early planning. It's unlikely to be available for sale until late 2020 or early 2021.
  18. Replies
    9
    Views
    101

    Maybe try adding a small capacitor, like 100 pF,...

    Maybe try adding a small capacitor, like 100 pF, between the Teensy pin and GND. Try to get it as physically close to the Teensy and GND as reasonably possible.

    Maybe also add a ferrite bead on...
  19. Replies
    2
    Views
    33

    Is the red LED on steady, or blinking slowly? ...

    Is the red LED on steady, or blinking slowly?

    Blinking means you have a bad USB cable.

    Did you install the udev rules file? If that is missing, and if the red LED is not blinking, you could...
  20. I believe I sent you an email reply with: ...

    I believe I sent you an email reply with:



    To expand on that just a bit more, if you write to SIM_SOPT2 to select the 32 kHz clock, and put PTC3's mux into ALT5 mode, you should get a 32 kHz...
  21. Replies
    6
    Views
    165

    This depends on the meaning of "possible". ...

    This depends on the meaning of "possible". Currently there isn't any software support for ADC sampling of more than 1 input on any board, and so far there's no ADC support at all for Teensy 4.0 in...
  22. Replies
    4,339
    Views
    462,182

    Well, yes there's a reason. But that reason is...

    Well, yes there's a reason. But that reason is simply that I didn't feel like doing more than the 3 standard speeds when so many other things were needing my attention during the beta test.

    I did...
  23. Maybe bring your code into Arduino and see how...

    Maybe bring your code into Arduino and see how the results compare?

    Also, I'll quickly mention "TEENSY_OPT_SMALLEST_CODE" looks unfamiliar. Maybe that's something PlatformIO added? Normally to...
  24. Replies
    6
    Views
    85

    Just to make sure you get a clear answer, no,...

    Just to make sure you get a clear answer, no, Teensy's USB port does not work that way.

    For capturing USB packets, you have roughly 3 options.

    1: Run software-only capture on the same PC. This...
  25. Replies
    4
    Views
    77

    I2S is simpler than protocols like SPI & I2C. ...

    I2S is simpler than protocols like SPI & I2C. All the signals are unidirectional. There's no starting and stopping like with normal protocols. The clock just runs continuously and data output pins...
  26. The short answer is no, secure encrypted code...

    The short answer is no, secure encrypted code isn't supported at this time.

    To expand on that just a bit, while you probably could craft an encrypted firmware image (using NXP's tools... we don't...
  27. I’d start with a 2N3904 and 4.7K.

    I’d start with a 2N3904 and 4.7K.
  28. I started exploring how the extra space might be...

    I started exploring how the extra space might be used. Here's a quick concept drawing, with the added parts highlighted.

    17964

    Switching to the larger 12mm chip (necessary for escaping more...
  29. On Windows, the Arduino stuff is located in 3...

    On Windows, the Arduino stuff is located in 3 places.

    The software and everything Teensyduino installs is in the Arduino program folder. By default that's C:\Program Files (x86)\Arduino.
    ...
  30. Replies
    4
    Views
    121

    I'm a little confused. You're talking about...

    I'm a little confused. You're talking about using Juce on Linux. But then you're talking about polyphony on Teensy, which doesn't seem to make much sense if you're doing all the audio synthesis on...
  31. The next things to try is putting some code in...

    The next things to try is putting some code in the earliest startup to turn on the LED. It's quite possible the hardware is starting up, but then crashing for some reason. Issues with VBAT and...
  32. One more quick sanity check is the DC voltage on...

    One more quick sanity check is the DC voltage on the 3 headphone pins, relative to GND on Teensy. If the SGTL5000 chip is running properly, you should see about 1.5V on each pin.

    Here's one...
  33. This really looks like it should work. At least...

    This really looks like it should work. At least in these photos, I can't see anything wrong.

    I can at least answer this:



    Yes, that is correct.

    In fact, the Synthesis > Guitar example...
  34. Replies
    3
    Views
    72

    Hardly anyone uses them anymore, now that LED...

    Hardly anyone uses them anymore, now that LED strips are so cheap.

    Here's a project from 8 years ago, where I used an older version of a Sparfun board.
    ...
  35. Replies
    5
    Views
    92

    Regard the maximum baud rate question... On...

    Regard the maximum baud rate question...

    On Teensy 4.0, I believe it's 6 Mbit/sec. All 7 serial ports are identical hardware on Teensy 4.0.

    On Teensy 3.x, Serial1 & Serial2 are capable of...
  36. Replies
    5
    Views
    92

    For reliable high speed serial (not USB) between...

    For reliable high speed serial (not USB) between boards, the 2 keys to success are RTS/CTS flow control and FIFOs.

    On Teensy 3.6, only Serial1 & Serial2 have FIFOs. All the serial ports on Teensy...
  37. Replies
    1
    Views
    56

    Usually USB inrush is described as the equivalent...

    Usually USB inrush is described as the equivalent capacitor + resistor load. The actual peak current and actual behavior depends heavily on the specifics of the cable used, so the specs are in terms...
  38. I have never used H11L1, so I can't speak from...

    I have never used H11L1, so I can't speak from experience.

    I looked quickly at the On Semiconductor datasheet for this part. It specifically mentions 270 ohms in the Vol spec.

    17944

    One...
  39. Replies
    3
    Views
    61

    Ubuntu recently changed the default ModemManager...

    Ubuntu recently changed the default ModemManager filter policy. Maybe other distros did too? In theory, it's the sort of settings change that's supposed to improve security or something.
    ...
  40. I2S is well defined. The MSB is always 1 clock...

    I2S is well defined. The MSB is always 1 clock cycle after LRCLK changes. Teensy reads the first 16 bits starting there. In stereo I2S which uses ratio 64, Teensy ignores the next 16 bits, which...
  41. Sorry. Like JTAG, the RESET pin is off limits...

    Sorry. Like JTAG, the RESET pin is off limits without a major (1170 delaying) change to the bootloader and programming process.
  42. The GPIO registers in these newer chips do not...

    The GPIO registers in these newer chips do not support 8 or 16 bit access.

    However, having 8 or 16 consecutive bits of a FlexIO peripheral might be useful...
  43. Sharp discontinued the PC900. Many people asked...

    Sharp discontinued the PC900. Many people asked me to update the page to a part which they could actually buy.

    At that time, 6N138 seemed to be the most readily available part, and most likely to...
  44. Oh, opps, looks like this file is for a newer...

    Oh, opps, looks like this file is for a newer version that I never got around to publishing. Sorry, I don't have the file for laser cutting the older base.

    The newer version has a ZIF socket for...
  45. It was made by an Epilog Mini 18...

    It was made by an Epilog Mini 18 laser cutter, using a sheet of ordinary 1/4 inch thick acrylic. I'll attach the file, in both SVG and Corel Draw format. The thin black line is where the laser...
  46. The reason is the large capacitance that's...

    The reason is the large capacitance that's required to pass the lower part of the audio spectrum when the load is the relatively low 32 ohm impedance of headphones.

    These days, many chips which...
  47. Most I2S chips automatically ignore the extra...

    Most I2S chips automatically ignore the extra bits when the ratio is higher. Maybe this chip will do that too?

    Controlling this ratio is difficult. It's not a simple parameter you can just set. ...
  48. Pins to bring out on a hypothetical larger Teensy4

    While we wait for the amazing 1170 chip, I'm considering making another Teensy4 with the same 1062 chip we have on Teensy 4.0, but in the Teensy 3.6 form factor.

    So let's talk in this thread of...
  49. I'm not familiar with "SN65". Is that a CAN...

    I'm not familiar with "SN65". Is that a CAN transceiver chip, maybe SN65HVD230, SN65HVD231, or SN65HVD232?

    How do you observe whether or not Teensy booted successfully?

    I ask because (long...
  50. Replies
    3
    Views
    36

    Serial3 on Teensy 3.2 runs from the slower F_BUS...

    Serial3 on Teensy 3.2 runs from the slower F_BUS clock, which is too slow for WS2812Serial unless you run at 120 MHz.

    Serial1 and Serial2 run from the faster F_CPU clock.
Results 1 to 50 of 500
Page 1 of 10 1 2 3 4