Search results

  1. P

    I2C startup issue

    Problem resolved. I decided to shotgun the problem and just start removing components. The issue was caused by one of the daughter boards in my system. So while I don’t know the root cause yet, I plan to leave the offending board unplugged and work on higher priority parts of the system...
  2. P

    I2C startup issue

    I connected a thicker ground wire to the ground between 3.3v and 5V, then to the first ground pin on the other side, then to the another ground, one at a time with no success. Installed a new Teensy 4.1, with the same result. Measure the resistance between SCL and its pull-up and then SDA to...
  3. P

    I2C startup issue

    maybe “start up” wasn’t the right word. The issue happens at the start of every one second loop. Another thing I noticed is that SDA looks fine, only SCL has the ramping issue, as shown below:
  4. P

    I2C startup issue

    I'm using 2K pull up resistors. This simplified code exhibits the same issue, though I'm not sure it's the code (though I've been wrong before): #include <Arduino.h> #include <i2c_device.h> enum class Switch_Digital : uint16_t { Address = 0x0023, SWITCH_BATT_ENABLE_0 = 0x0001...
  5. P

    I2C startup issue

    I’m having communication errors with the first I transmission. If I immediately send the same message again it is fine. I noticed that the signal isn’t pulled down properly at first. Here is a screenshot: I’ve checked for grounding issues, and even added additional grounding with no change...
  6. P

    Project: SPI_MSTransfer

    EDIT: SPI communication is working. There may be somthing else going on non-teensy related. The warnings below sent me down the rabbit hole. SPI communication stopped working on my project, even after I reverted the code back to a known working version. I'm still troubleshooting the...
  7. P

    Teensy 4.0 hardware timers for PWM and pins

    Thanks Kurt, I'll look into it. Right now I'm generating a PWM on one timer, and reading the duty cycle on 4 independant freqencies on the 4 other pins as follows: Wheelspeed : FTM3 pin2 Input frequency 1: pin5 Input frequency 2: pin6 Input frequency 3: pin22 Input frequency 4: pin23...
  8. P

    Teensy 4.0 hardware timers for PWM and pins

    Could someone tell me how many PWM timers the Teensy 4.0 has and the respective pins? I'm looking for something like this that I got from the PWM and Tone link for the Teensy 3.6: FTM0 5, 6, 9, 10, 20, 21, 22, 23 488.28 Hz FTM1 3, 4 488.28 Hz FTM2 29, 30 488.28 Hz FTM3 2, 7, 8, 14, 35...
Back
Top