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. Use this: void setup() { ...

    Use this:



    void setup() {
    analogWriteFrequency(2, 1000000);
    analogWrite(2, 128);
    }

    void loop() {
  2. Replies
    228
    Views
    24,073

    NXP's public block diagram reveals quite a lot...

    NXP's public block diagram reveals quite a lot about the chip, and at least so far the documentation under NDA leaves a lot of be desired (or guessed). Here's that block diagram.

    21764



    ...
  3. I tested 6 of the 10 returned parts. The unused...

    I tested 6 of the 10 returned parts. The unused chips appear to be good. The soldered pulled chips are definitely bad. I don't know why.


    https://www.youtube.com/watch?v=5mbgwElpT6Y

    It's...
  4. Replies
    129
    Views
    19,339

    USBHost_t36 does not yet support most...

    USBHost_t36 does not yet support most touchscreens. Only ordinary USB mice, keyboards, joysticks / gamepads, and certain digitizers are supported. Generic HID parsing is in the library, so the hard...
  5. Replies
    15
    Views
    224

    Try adding pinMode(14, INPUT_DISABLE) at the...

    Try adding pinMode(14, INPUT_DISABLE) at the beginning of your program. Does that help at all?
  6. Replies
    129
    Views
    19,339

    The Tools > USB Type menu configures the USB...

    The Tools > USB Type menu configures the USB device mode used on the main USB port. It has absolutely no effect on the USB Host port.
  7. Could you give me some more detail about this...

    Could you give me some more detail about this circuitry? Maybe photos too? Any chance you could try with a LM317 and regular LM7805?

    If the problem only happens with L78L05, can you give me the...
  8. FlexPWM is probably a better choice for...

    FlexPWM is probably a better choice for generating quadrature waveforms. Each FlexPWM sub-module has 2 feature-rich outputs (A & B) and 1 low-feature output (X). FlexPWM has very nice buffering of...
  9. Which power supply are you using?

    Which power supply are you using?
  10. I started this some time ago as comments in pwm.c...

    I started this some time ago as comments in pwm.c

    https://github.com/PaulStoffregen/cores/blob/master/teensy4/pwm.c#L87




    Please send a pull request to add to those comments.
  11. Audio input on the ADC pins is still a work in...

    Audio input on the ADC pins is still a work in progress on Teensy 4. So far only mono exists, and it's best described as "experimental" at this point. It will eventually improve, but perhaps not...
  12. I tested on this known-good hardware. 21705 ...

    I tested on this known-good hardware.

    21705

    First I ran the Ethernet WebClient example, to check the network really was working. Indeed it is able to fetch the web page.

    Next, I ran your...
  13. Replies
    39
    Views
    3,714

    Just to repeat what I said on msg #23: ...

    Just to repeat what I said on msg #23:



    Pointing to the spec isn't enough. Please point to driver support (Linux preferred), software, and at least 1 reasonably MIDI 2.0 product.
  14. Short answer is no. That port is only meant to...

    Short answer is no. That port is only meant to run in USB host mode.

    Longer answer is the hardware can do this, but software support is lacking.
  15. This is the power supply I used to the LM7805...

    This is the power supply I used to the LM7805 input.

    21703
  16. I tried with a LM7805AC voltage regulator and...

    I tried with a LM7805AC voltage regulator and 0.1uF capacitor, but I could not reproduce this problem.

    Here's a video so you can see what I tried and how Teensy 3.2 (programmed with LED blink)...
  17. It should print much faster than most Arduino...

    It should print much faster than most Arduino boards.

    Try running this program on your Teensy, and on the Arduino board(s). What lines/sec speeds do you see on each?
    ...
  18. Maybe you could give us links to the info you've...

    Maybe you could give us links to the info you've seen? I'm personally curious to see how they managed to make an analog part work with something that isn't made for analog signals.

    This might...
  19. Replies
    9
    Views
    259

    That one looks like it should work. I'm pretty...

    That one looks like it should work.

    I'm pretty sure all of these 8MB PSRAM parts are actually made or licensed from ApMemory (APS6404L-3SQR)
  20. Replies
    8
    Views
    2,860

    Should we mention your CP/M emulator on the blog?...

    Should we mention your CP/M emulator on the blog? Usually at least 1 photo or video showing its actual usage is needed. Are there any pictures?
  21. Normally you would use 74HC4051 chips for this. ...

    Normally you would use 74HC4051 chips for this. Check out "Connecting Many Buttons & Knobs/Sliders" on the USB MIDI page.

    https://www.pjrc.com/teensy/td_midi.html
  22. Yes, you can do that with "teensy_post_compile". ...

    Yes, you can do that with "teensy_post_compile". But there isn't any documentation. To see the command line syntax, use File > Preference in Arduino to turn on verbose output while compiling and...
  23. Try measuring the Program pin while it's not...

    Try measuring the Program pin while it's not shorted to GND. A blank or defective MKL04 will leave that pin floating. A properly running MKL04 will turn on the pullup resistor inside the MKL04,...
  24. Replies
    10
    Views
    229

    Please do not omit code. In trying to make...

    Please do not omit code.

    In trying to make reading your code easier, you're erecting a huge barrier for any of us to *run* your code.
  25. First, there is no 100% reliable way to always...

    First, there is no 100% reliable way to always get your Teensy into programming mode without the pushbutton. If the code you've previously written crashes or turns off the USB port or lingers in a...
  26. Replies
    5
    Views
    170

    Here is a much simpler test program which doesn't...

    Here is a much simpler test program which doesn't depend on the SD card working and having a readable file.



    #include <Audio.h>

    AudioSynthWaveformSine sine1; //xy=181,170...
  27. Replies
    5
    Views
    170

    Another quick look... SD.begin() is also missing,...

    Another quick look... SD.begin() is also missing, so it can't actually access the SD card.
  28. Replies
    5
    Views
    170

    You're missing AudioMemory(). The audio...

    You're missing AudioMemory().

    The audio library can't actually do anything unless you give it memory to use. Open any of the examples under File > Examples > Audio to see the syntax.

    Here are...
  29. This really depends on what you consider...

    This really depends on what you consider "better". The easiest way would be to use a PoE splitter that's designed to extract the power and pass the signal on to a regular non-PoE ethernet port, and...
  30. Sadly not. This verbose info only tells us...

    Sadly not. This verbose info only tells us *what* happened but not *why* it happened. Clearly Windows waited 5 seconds before detecting the freshly rebooted Teensy 3.1. These 3 things are pretty...
  31. Replies
    6
    Views
    224

    Turning the power off while the bootloader is...

    Turning the power off while the bootloader is running should be fine.

    However, if you do this while your PC is sending new data, the final state of the flash memory will end up with wrong data. ...
  32. Replies
    5
    Views
    155

    Assuming you've installed Arduino & Teensyduino,...

    Assuming you've installed Arduino & Teensyduino, the code is already on your computer at {Arduino}/hardware/teensy/avr/cores/teensy4. Look at the files usb.c, usb_serial.c and usb_desc.c for the USB...
  33. Replies
    7
    Views
    1,110

    Yes, exactly. Inside the chip, every pin has...

    Yes, exactly. Inside the chip, every pin has built-in pullup and pulldown resistors. Or it very well may be transistor-based circuitry which acts like a resistor. But whatever technique NXP used...
  34. It can not work with the Cetus J1B1211CCD Magjack...

    It can not work with the Cetus J1B1211CCD Magjack we use on the Ethernet Kit.

    A different Magjack meant for PoE is needed. Most of them are incompatible with PoE because they include the 75 ohm...
  35. The "Transfer Followup List" is inside print.cpp...

    The "Transfer Followup List" is inside print.cpp at line 55. It's rarely used, but you can find at least 1 usage commented out at line 333 in ehci.cpp.
  36. Replies
    2
    Views
    206

    Yup, use SCB_AIRCR to cause a reboot from...

    Yup, use SCB_AIRCR to cause a reboot from software.

    And in Arduino, click Help > About to check which version of Teensyduino you have. 1.53 is the latest. Some old versions had a bug impacting...
  37. Glad the new board worked. Maybe best to start...

    Glad the new board worked.

    Maybe best to start a new thread about I2C questions. Please consider a couple ideas when you ask tech questions. 1: Explain context of what you are trying to...
  38. Turn off Auto mode in Teensy Loader and keep the...

    Turn off Auto mode in Teensy Loader and keep the window visible on your screen. Then press the button on Teensy. If everything is working, Teensy Loader should replace the normal ""Press Button on...
  39. Ok. Here's one more "easy" thing to try, before...

    Ok. Here's one more "easy" thing to try, before the very difficult work of diving into the details.

    Uncomment this line in ehci.cpp.


    //USBHS_PORTSC1 |= USBHS_PORTSC_PFSC; // force 12...
  40. Just to make sure I understand this... ...

    Just to make sure I understand this...



    Seems like you're using MG-300 fails the same way when connected with any of the 3 hubs you mentioned? This is a very important point to know. If any...
  41. Replies
    15
    Views
    427

    Just in case there's any confusion, MQS and SPI...

    Just in case there's any confusion, MQS and SPI are completely unrelated, other than they happen to both be options on the same pins.

    Each pin has a mux which allows it to be controlled by 1 of...
  42. A ground loop isolator might help. ...

    A ground loop isolator might help.

    https://www.pjrc.com/store/audio_ground_isolator.html
  43. Uncomment this line in USBHost_t36.h ...

    Uncomment this line in USBHost_t36.h


    //#define USBHOST_PRINT_DEBUG




    I guess that would be me.
  44. Sure sounds like your hardware was damaged, since...

    Sure sounds like your hardware was damaged, since both D+ to GND and D- to GND should measure very similar. Maybe look at that area near pin 17 with a magnifier and bright light.

    The Code 43 and...
  45. Replies
    13
    Views
    3,004

    This might be a long shot, but you could try...

    This might be a long shot, but you could try adding a delay in the startup code in mk20dx128.c.

    For a bit of background, a couple years ago we had issues where Teensy 3.6 would work with USB power...
  46. Replies
    15
    Views
    427

    To use MQS, you'll either need the audio library...

    To use MQS, you'll either need the audio library or a *lot* of work to write your own code to use the MQS output.
  47. I don't know what "200is" means. But that sure...

    I don't know what "200is" means. But that sure sounds dissimilar from "1100". When I measure here with a good Teensy 3.2 using my Fluke 87 mutlimeter, both are approx 1.6M.
  48. Just to make sure this question is properly...

    Just to make sure this question is properly answered...



    No, no special drivers are needed. Teensy Loader uses HID protocol. HID drivers are built into Windows.

    When this test fails, it...
  49. Maybe something bad happened here? 21649 ...

    Maybe something bad happened here?

    21649


    Which one is D+ and D- ?

    On the bottom side, D+ is the pad closer to GND. But it really doesn't matter which is which. You're just looking at...
  50. One more blind guess.... with Teensy 3.2...

    One more blind guess.... with Teensy 3.2 disconnected, use a multimeter set to the highest ohms range to check if D+ & D- have been shorted together, or if either is shorted to GND or VUSB or 3.3V. ...
Results 1 to 50 of 500
Page 1 of 10 1 2 3 4