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

Search:

Type: Posts; User: manitou

Page 1 of 10 1 2 3 4

Search: Search took 0.03 seconds.

  1. How about trying analogWriteFrequency(16,...

    How about trying

    analogWriteFrequency(16, 8000000); // 16 and 17 max 8mhz uses TPM T3.6 only
    analogWrite(16, 128);

    after starting the analogWrite() you could print out the various TPM1...
  2. Works for me too. Here is complete example...

    Works for me too.

    Here is complete example using FreqCount to measure frequency on pin 14. (For Teensy 4, gateinterval is in microseconds ! Who knew. web page documentation needs updating.) ...
  3. see discussion on "slow PWM" for Teensy 4 using...

    see discussion on "slow PWM" for Teensy 4 using XBAR
    https://forum.pjrc.com/threads/25164-2Hz-analogWriteFrequency-on-Teensy-3-1?p=247337&viewfull=1#post247337
  4. LECTURE ON: Using unbounded string operations...

    LECTURE ON:
    Using unbounded string operations results in hard-to-debug programs and programs subject to hacker exploitation. So having a max size value is the more desirable API. Kudos to Teensy....
  5. Re: readStringUntil() The teensy Stream...

    Re: readStringUntil()

    The teensy Stream library has a 2nd argument for readStringUntil(), see hardware/teensy/avr/cores/teensy4/Stream.h

    String readStringUntil(char terminator, size_t max =...
  6. I'm not sure why readStringUntil('\n') worked...

    I'm not sure why readStringUntil('\n') worked for you. Looking at packets from the weatherserver, there is no \n in the reply TCP packet, just the json string (last character is } ). Maybe...
  7. I was able to get your sketch running with a T4.0...

    I was able to get your sketch running with a T4.0 connected to adafruit WINC1500.

    Starting weather connection to server...
    connected to server...
  8. Replies
    8
    Views
    567

    FWIW: If I use "double" instead of "float" in...

    FWIW:
    If I use "double" instead of "float" in sketch in post #4, I don't see a superscalar speedup.


    Teensy 4 @600mhz Faster
    float
    bench1: 0.999970, 2133434 us MFlops 224.99
    bench2:...
  9. Replies
    91
    Views
    26,172

    Yes, when i use INPUT_DISABLE in the loop()

    Yes, when i use INPUT_DISABLE in the loop()
  10. Replies
    14
    Views
    358

    Your assignment is to produce the smallest sketch...

    Your assignment is to produce the smallest sketch that behaves differently on your T3.2s -- and then post that sketch to this thread so others can try.
  11. Replies
    91
    Views
    26,172

    In the Knock example try adding pinMode(A10,...

    In the Knock example try adding pinMode(A10, INPUT_DISABLE); to the if statement

    if (sensorReading >= threshold) {
    // toggle the status of the ledPin:
    ledState = !ledState;
    //...
  12. Replies
    24
    Views
    440

    i don't think the eeprom_initalize() sets or...

    i don't think the eeprom_initalize() sets or changes any values in the EEPROM.

    You might just remove all references to EEPROM.isReady() in your sketch and let the EEPROM read's and write's...
  13. Replies
    24
    Views
    440

    OK, i had a T.32 (batch 1805) that had never had...

    OK, i had a T.32 (batch 1805) that had never had its EEPROM used, and the sketch in post #1 hung! After running one of the T3.2 EEPROM examples, then the post #1 sketch ran. ;)
  14. Replies
    24
    Views
    440

    looking at eeprom.c, it looks like for read's and...

    looking at eeprom.c, it looks like for read's and write's it tests if eeprom is ready, and if it is NOT, it calls eeprom_initialize(). So maybe one needs to run one of the examples from teensy...
  15. Replies
    24
    Views
    440

    The last line of MCU etching contains a batch...

    The last line of MCU etching contains a batch production date. CTER1644B is year 2016 and week 44. ) I don't have any "recent" T3.2's. I have one with CTAD1806B. I fetched the EEPROMex library,...
  16. Replies
    24
    Views
    440

    I have no EEPROMex.h any where on my linux file...

    I have no EEPROMex.h any where on my linux file system???

    google tells me it is part of https://www.arduino.cc/reference/en/libraries/eepromex/, an AVR extension to the Arduiono EEPROM library. ...
  17. Replies
    7
    Views
    519

    your sketch in post #1 works for me on T4.0 with...

    your sketch in post #1 works for me on T4.0 with Adafruit ultimate GPS. (No 5v and no level shifters)
    3v3 to GPS Vin, GND to GND, T4 pin 7 to GPS Tx, T4 pin 8 to GPS Rx

    Time: 16:41:58.000
    Date:...
  18. Replies
    12
    Views
    318

    have you tried analogWrite(16,128) on T3.6? I...

    have you tried analogWrite(16,128) on T3.6? I believe that is using TPM1 channel 0. I have some test functions for T3.6 TPM, see
    https://github.com/manitou48/teensy3/blob/master/k66TPM.ino
    you...
  19. As noted on T3.2 card, backside pins 25 and 32...

    As noted on T3.2 card, backside pins 25 and 32 are PWM. So the simplest solution is to use analogWrite()

    analogWriteFrequency(25,48000);
    analogWrite(25,128); // 50% duty
    Here is what the pin...
  20. Replies
    10
    Views
    194

    you should declare any external variables that...

    you should declare any external variables that are getting updated in the ISR as volatile
    volatile unsigned int ISR_Cnt = 0;
  21. Replies
    10
    Views
    194

    here is a working example ...

    here is a working example https://github.com/manitou48/teensy4/blob/master/gpt_isr.ino
  22. I think the Everspin read/write currents refer to...

    I think the Everspin read/write currents refer to the power drawn by the MRAM chip on the PCB Vin and not to the current on the SPI pins.

    Do you have another SPI device to confirm SPI on Teensy...
  23. Replies
    11
    Views
    385

    Here is a simple float/double sketch that I've...

    Here is a simple float/double sketch that I've run on ESP32 and Teensy 4. you can change the #if 0 to #if 1 to select float or double. Try it on your hardware.

    // ll2utm
    // double/float...
  24. Replies
    2
    Views
    219

    Looking at the source, the timeStatus values are...

    Looking at the source, the timeStatus values are

    typedef enum {timeNotSet, timeNeedsSync, timeSet
    } timeStatus_t ;
    So the value of 2 is "timeSet", maybe if statement should read
    if...
  25. Replies
    562
    Views
    131,076

    I think the Teensy 4 NXP SDK has examples using...

    I think the Teensy 4 NXP SDK has examples using the ACMP comparators and DACs, see boards/evkmimxrt1060/driver_examples/cmp/polling/. The T4 "internal" DACs are only 6-bit. Here is a simple...
  26. Replies
    1
    Views
    253

    SD directory listing anomaly

    Just for the record, I have a SanDisk 8 GB uSD (SDHC, fat32) that has had lots of file activity. A directory listing from SD example listfiles on various Teensy 3* and 4* microSD drives (both SPI...
  27. the examples/tutorials you are using are designed...

    the examples/tutorials you are using are designed for T3*, not Teensy 4. The Teensy 4 has no alternate SPI pins, it will use pins 10-13 for SPI. Pin 13 is SPI CLK, so that'swhy LED is flashing...
  28. Replies
    93
    Views
    18,857

    Curious, what kind of microscope are you using?

    Curious, what kind of microscope are you using?
  29. Replies
    93
    Views
    18,857

    The Ethernet MAC address and USB id are unique. ...

    The Ethernet MAC address and USB id are unique. The MCU stencil has a "batch date", me thinks, (shown in your closeup photo), but your concern is with the crystal.
  30. Replies
    93
    Views
    18,857

    That ppm is a bit high (spec 30 ppm?). My dozen...

    That ppm is a bit high (spec 30 ppm?). My dozen or so T4's are within 10 ppm, though the Teensy4-micromod is 40 ppm, but that's a different PCB layout and different crystal (Sparkfun). Is your...
  31. Replies
    2
    Views
    500

    you should look at the NTP server thread...

    you should look at the NTP server thread. PID logic is used to discipline Teensy clock using GPS PPS and NMEA. It has software for Ethernet and NTP, but there is a post about a non-ethernet...
  32. Replies
    93
    Views
    18,857

    A bit messy. capture pins are fixed by the...

    A bit messy. capture pins are fixed by the hardware. See page 297 of reference manual (search for ENET_1588_EVENT0_IN), there are 3 possible pins. library is using GPIO_B1_12. I don't know if the...
  33. Replies
    3
    Views
    428

    i have no problems with Teensy 4.1 using IDE...

    i have no problems with Teensy 4.1 using IDE 1.8.15/1.54 on Ubuntu 20.04. do you have the latest udev rules?
    https://www.pjrc.com/teensy/00-teensy.rules
  34. Replies
    5
    Views
    426

    Voila, touchRead() starter sketch for LC: ...

    Voila, touchRead() starter sketch for LC:


    #define THRESHOLD 2000
    #define LEDPIN 13

    void setup() {
    Serial.begin(9600);
    while (!Serial);
    pinMode(LEDPIN, OUTPUT);
  35. Replies
    4
    Views
    454

    your sketch didn't compile -- spaces in...

    your sketch didn't compile -- spaces in "MED_SPEE D" and "VERY_HIGH_SP EED"

    that ISR is firing every 11 us -- not sure what settle time is for DAC ... You might print out w_delay (with...
  36. max PWM: LC 24 mhz Teensy3* F_BUS/2, ...

    max PWM:
    LC 24 mhz
    Teensy3* F_BUS/2, e.g., 30 mhz (T3.6 pins 16, 17, TPM@16mhz. PWM 8mhz)
    Teensy4 IPG clock/2 150mhz/2 = 75 mhz
  37. Here's my guess, though I haven't done the math....

    Here's my guess, though I haven't done the math.

    On the T4, FreqCount uses pin 9 to clock quad timer 4 (channels 2 and 3, atomic). Your signal generator is connected to pin 9. To measure the...
  38. Replies
    93
    Views
    18,857

    I've made NO changes to GPS.cpp. and you are...

    I've made NO changes to GPS.cpp. and you are not getting GNRMC sentences, you're getting GPRMC
  39. Replies
    93
    Views
    18,857

    confirm settings.h has #define GPS_USES_RMC ...

    confirm settings.h has

    #define GPS_USES_RMC

    #define GPS_BAUD 9600
    #define GPS_SERIAL Serial1

    #define DHCP_HOSTNAME "teensy-1"
  40. Replies
    93
    Views
    18,857

    Hmm, the simple test looks OK. What i have seen...

    Hmm, the simple test looks OK. What i have seen if you don't have an external antenna, when you power up the T4.1 ethernet, the adafruit GPS loses fix. With no fix, you get the web page that you...
  41. Replies
    93
    Views
    18,857

    here is minimal GPS test sketch running with T4.1...

    here is minimal GPS test sketch running with T4.1 and adafruit ultimate v3 GPS


    // GPS Tx to T4 pin 0 Rx, PPS to T4 pin 35, 3v3 to Vin, GND to GND
    void ding() {
    Serial.println("\nPPS");
    }...
  42. Replies
    3
    Views
    496

    several T4 GPT examples at...

    several T4 GPT examples at https://github.com/manitou48/teensy4

    of course, Teensy interval timer allows you to call a function every second.

    T4 register symbolic field names in...
  43. info and schematic here:...

    info and schematic here: https://www.lectrobox.com/products/arduino_pc_game_port_joystick_shield/

    or use your mutlimeter to see which DB15 pins are analog and which correspond to buttons ...
  44. Replies
    10
    Views
    1,041

    i'm using v7, CircuitPython 7.0.0 on...

    i'm using v7, CircuitPython 7.0.0 on 2021-09-20; Teensy 4.1 with IMXRT1062DVJ6A
    i tested my simple sketch in post #3 on both T4.0 and T4.1. tested with scope and with LED and 470 ohm resistor
    ...
  45. Replies
    1
    Views
    321

    Your sketch worked for me (though you don't...

    Your sketch worked for me (though you don't really need pinMode(A0, INPUT), harmless). if i jumper LC's 3.3v to A0 it reports 1023. if i jumper A0 to GND it reports 1. If A0 is unconnected you get...
  46. Replies
    10
    Views
    1,041

    As i recall, the teensy 4 data sheet says max...

    As i recall, the teensy 4 data sheet says max GPIO current is 4 ma. The T4 schematic shows the onboard LED (pin 13) with a 470 ohm resistor.
  47. Replies
    10
    Views
    1,041

    maybe start with simpler PWM test, just ...

    maybe start with simpler PWM test, just pwmio.PWMOut(board.D23, frequency=1000, duty_cycle=2**15)
    That works for me (verified with scope or logic analyzer). I don't believe D1 is a PWM pin on...
  48. Replies
    2
    Views
    402

    100ms per hour is about 27 ppm for your T4 24mhz...

    100ms per hour is about 27 ppm for your T4 24mhz crystal -- that's a little high, but each crystal is different. The RTC runs from a 32khz crystal which has its own frequency error. Here are some...
  49. reference manual (52.3.1) says "To ensure proper...

    reference manual (52.3.1) says "To ensure proper operations of GPT, the external clock input frequency should be less than 1/4 of frequency of the peripheral clock (ipg_clk)", so max is 150mhz/4 =...
  50. Replies
    8
    Views
    895

    maybe zoom in with your scope between pulse 4 and...

    maybe zoom in with your scope between pulse 4 and 5 and see if there is a spurious spike or some such ? Also with scope confirm that channels 5 thru 8 are in fact not 1500 us (the photo in post #2...
Results 1 to 50 of 500
Page 1 of 10 1 2 3 4