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

Search:

Type: Posts; User: Theremingenieur

Page 1 of 10 1 2 3 4

Search: Search took 0.02 seconds.

  1. Replies
    52
    Views
    5,781

    For making sure that USB flashing will work, you...

    For making sure that USB flashing will work, you should minimize the reset delay. If not, you’ll run in similar issues as with the capacitor.
  2. Replies
    52
    Views
    5,781

    The file name is mk20dx128.c

    The file name is mk20dx128.c
  3. Replies
    52
    Views
    5,781

    I wasn't aware of the 803/809/810 series. That...

    I wasn't aware of the 803/809/810 series. That looks like something useful in your case. But you'd have to decide once forever if you go for 5V or 3.3V. They seem to be available in smd only...
    ...
  4. Replies
    52
    Views
    5,781

    You are contradicting yourself. On one side, you...

    You are contradicting yourself. On one side, you use bulky through-hole components, on the other side you talk of wearables, where SMD components are much more suitable. So, I see the failure rather...
  5. Replies
    52
    Views
    5,781

    A Voltage reference, a comparator, 3 resistors......

    A Voltage reference, a comparator, 3 resistors...

    or something like this: https://www.onsemi.com/pub/Collateral/NCV8508B-D.PDF
  6. Following the Kinetis application note, the...

    Following the Kinetis application note, the source impedance should be relatively low for precise ADC readings. That’s why I’d suggest making the voltage divider 5k/10k instead of 10k/20k. And yes,...
  7. Replies
    52
    Views
    5,781

    The Teensy loader is obviously not willing to...

    The Teensy loader is obviously not willing to wait for the reset to come up delayed. That’s why I said that a capacitor was not always the best solution...
  8. Use GND. Your signal looks already filtered...

    Use GND. Your signal looks already filtered enough.
  9. But yes, you can. It's not about "workaround and...

    But yes, you can. It's not about "workaround and jumpers", it's about engineering, which means processing and outputting a signal on the Teensy LC and feeding it into the appropriate pins of the prop...
  10. Don‘t waste your time, trash it and take the next...

    Don‘t waste your time, trash it and take the next one out of the drawer. After smoking, the chip will never again be 100% reliable and other issues might show up, soon. At today‘s hourly IT wages, a...
  11. Replies
    52
    Views
    5,781

    The famous reset delay capacitor might in some...

    The famous reset delay capacitor might in some cases fix boot problems which are due to the 3.3V line coming up too slowly. But the fixed delay applied by the capacitor might not be optimal in all...
  12. I confirm that without firmware (hex file) which...

    I confirm that without firmware (hex file) which would enable the USB hardware, a blank MK20 (be it blank because of an empty MKL02 or for any other reason) will not show up as a device in the device...
  13. PWM is always synchronized inside an FTM, so you...

    PWM is always synchronized inside an FTM, so you should in a first step swap pins to use up to 8 channels from the same FTM. An update of all output signals happens always after the main counter...
  14. The MK20 starts always (if it starts) from an...

    The MK20 starts always (if it starts) from an internal RC oscillator. The boot code will then enable the XTAL oscillator, the FLL/PLL, and the clock distribution module. So, yes, without a hex file...
  15. I get the impression that you, JSON, are speaking...

    I get the impression that you, JSON, are speaking a different language than we who try to help you.
    You started a thread about SPI. Then, you are saying that you want establish communication with a...
  16. In that case, you answered your question already...

    In that case, you answered your question already yourself: Yes, the CS pin has to be tied to GND to make the slave side basically work. As long as it is high (reverse logic), the SPI hardware of the...
  17. The CS pin should never be tied constantly to...

    The CS pin should never be tied constantly to either high or low. The SPI specification states clearly that the SPI master has to assert it (tie low) before a transaction begins and to de-assert it...
  18. Without looking at the library’s source code, I’d...

    Without looking at the library’s source code, I’d guess that the interrupt is fired not on the absolute level on the cs pin, but on a transition from high to low, i.e. when the master de-asserts the...
  19. Replies
    33
    Views
    823

    Just my two cents: A new Teensy 3.6 costs 30$....

    Just my two cents: A new Teensy 3.6 costs 30$. Your working hour costs, let’s assume and include all secondary costs, 100$. I’m sure that you and all the helpful people here in the forum have spent...
  20. Replies
    3
    Views
    77

    You are welcome! :)

    You are welcome! :)
  21. Replies
    3
    Views
    77

    I guess that you won't see anything when you...

    I guess that you won't see anything when you connect your oscilloscope to the TX1 pin...

    Your code instantiates the wrong serial port. Serial is the virtual serial over USB. The hardware UART on...
  22. How do you expect getting help if you do not give...

    How do you expect getting help if you do not give more precise information about WHAT is not working... is it that myFunc() is not called, or is it called but no reply sent? What about the wiring?...
  23. If I happened to roast a Teensy accidentally, I...

    If I happened to roast a Teensy accidentally, I even wouldn’t post that here. No need to advertise my silliness in public since whatever happened, it was my fault. The correct procedure is trashing...
  24. Think of the many mice, rats, apes, and pigs...

    Think of the many mice, rats, apes, and pigs which are killed during the development of new médicaments or perfumes...

    And think of what you will earn when you’ll have sold the first 5000 units of...
  25. The Teensy SPI library website...

    The Teensy SPI library website https://www.pjrc.com/teensy/td_libs_SPI.html states clearly that slave mode is not supported...
  26. ISR(Vector) works only on AVR but not on ARM...

    ISR(Vector) works only on AVR but not on ARM processors like the Teensy. The SPI library for the Teensy does AFAIK not support attachinterrupt().
  27. I'm not a "savvy mcu/electronics professional", I...

    I'm not a "savvy mcu/electronics professional", I have "only" acquired degrees in mathematics and music more than 30 years ago. But when it comes to developing stuff with an MCU, the approach is the...
  28. An internal pull-up on PTC10/11 can only come...

    An internal pull-up on PTC10/11 can only come either by the GPIO engine or by the I2C engine. Both should normally not play a role as long as these pins are neither configured as GPIO nor as I2C...
  29. If you want to do analog readings, you should not...

    If you want to do analog readings, you should not configure the pins as GPIO input pins to prevent ugly side effects from the pin mux into the ADCs. After booting, pins are by default in analog mode...
  30. Replies
    23
    Views
    480

    The strategy is: 1 Setting the FTM1 clock source...

    The strategy is:
    1 Setting the FTM1 clock source to F_BUS
    2 Setting the FTM1 MOD register to 59 (60-1) because the 0 counts, will give 1MHz clock
    3 Setting the FTM1_CH0 CMP register to 29 or 30...
  31. Replies
    23
    Views
    480

    2 issues: First, there are visible "ringing"...

    2 issues: First, there are visible "ringing" peaks, your oscilloscope probe might not be well compensated and thus the measurement slightly wronged. Second, with using analoigWriteFrequency and...
  32. The BCLK and MCLK signals are RF @ 2.82 and...

    The BCLK and MCLK signals are RF @ 2.82 and 11.29MHz. It should be self-understanding to treat such signals in an appropriate way, keeping the wiring as short as possible to prevent parasitic...
  33. Replies
    1
    Views
    109

    Ohm’s law (8th grade stuff) allows you to...

    Ohm’s law (8th grade stuff) allows you to calculate whatever voltage divider.

    Little reminder: Vout = Vin * R1 / (R1 + R2), so to bring 12V down to 3.3V, select R1 to 3.3k and calculate R2 to 8.7k.
  34. Naturally. Not only in Teensyduino but in all...

    Naturally. Not only in Teensyduino but in all embedded developments which rely on the gcc compiler because it supports inline assembly. Parts of the Teensyduino audio library are written in assembly....
  35. I'm using one of the cheapest Chinese SALEAE...

    I'm using one of the cheapest Chinese SALEAE clones (https://www.amazon.fr/AZDelivery-Logic-Analyser-compatible-version/dp/B01MUFRHQ2) for just 13€ (free shipping in France with Amazon prime) for 2...
  36. Replies
    9
    Views
    333

    This is not only true and important for the...

    This is not only true and important for the comparators but for ALL internal peripherals (DACs, ADCs, SPI, I2C, I2S, UARTS, USB, and so on) which are by default disabled on boot to save energy. Each...
  37. Please write that to Bill Gates. That's clearly a...

    Please write that to Bill Gates. That's clearly a Windows issue (one of the 9764711)...
  38. It's just important that you buy the MKL02/04...

    It's just important that you buy the MKL02/04 pre-programmed from PJRC. A factory fresh empty MKL02/04 won't do the job.
  39. Make the choice of a pin which is associated to...

    Make the choice of a pin which is associated to one of the Flextimers FTM0 to FTM3 (these are the PWM capable pins) as a clock pin. Make sure you do not need that FTM for PWM or input capture...
  40. Man... Look at the Teensy schematics to see how...

    Man... Look at the Teensy schematics to see how it's wired and the corresponding explanations of the MKL02/04 and how to build a custom Teensy on the PJRC website. The MKL02/04 acts as a kind of...
  41. Replies
    5
    Views
    155

    It depends on the multiplexer and the ground...

    It depends on the multiplexer and the ground current peaks it generates during input switching or not. Normally, the logical GND of a multiplexer IC like a CD4051 would go to GND, while the reference...
  42. You might build a programmer around the MKL02/04...

    You might build a programmer around the MKL02/04 and an USB connector and plan to bring out just PTA0-3, 3V3, GND and Reset_B to a pin header of your PCBs.
  43. There is a misunderstanding. Looking at the...

    There is a misunderstanding. Looking at the Teensy 3.6 schematic, you see that the USB power is not "the chip's own". It goes to an external voltage regulator (LP38691) which then feeds 3.3V into the...
  44. Replies
    5
    Views
    155

    Yes, only in conjunction with true analog I/O...

    Yes, only in conjunction with true analog I/O (not PWM)
  45. Replies
    5
    Views
    155

    GND it must be!

    GND it must be!
  46. Replies
    3
    Views
    136

    The error messages show definition conflicts...

    The error messages show definition conflicts between the EventResponder object which is part of the Teensyduino core and the FreeRTOS library. Apparently, this library has not been updated recently...
  47. I’d suggest to move over to a Teensy 3.6 which...

    I’d suggest to move over to a Teensy 3.6 which has an onboard USB host.
  48. You’d have to track down where the (internal, not...

    You’d have to track down where the (internal, not public) function serial_print() is defined. In Eclipse for example, highlight it and press F3 to open the corresponding source file and jump directly...
  49. Happy to see that this extension to the library,...

    Happy to see that this extension to the library, allowing optionally the selection of different parts of the signal, which I contributed many years ago and which seems to be rarely used, is useful...
  50. Replies
    11
    Views
    1,438

    Read the data sheet. VREF May not go below 1.1V!...

    Read the data sheet. VREF May not go below 1.1V! When providing an external VREF, the 470R can remain in place. Some external references do need a bias resistor and there, you have already one.
Results 1 to 50 of 500
Page 1 of 10 1 2 3 4