Navigation

    LILYGO

    • Register
    • Login
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups

    T-Display-S3 Noisy Output and Unreliable timing

    Technical Discussion
    1
    1
    99
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • 1
      1530dean last edited by

      Not sure why but there appears to be a lot of noise on the output pin when toggling its output there is also times when the output timing does not comply with the code.
      I am using GPIO3 in this routine but the jitter appears on all of the outputs.
      Referring to the screen shot you can see the edges are not clean and one of the pulses is approximatley 22us when it should be 15us as per my code below..?
      One of the things I have noticed is that the RED led is flashing rapidly when connected to the USB port but it does not flash when powered by external PSU. The noise appears to be related and my feeling is that there is some sort of routine still running from flash in the background but I am unable to view the memory...?

      Arduino Code
      #include <TFT_eSPI.h>

      TFT_eSPI tft;

      void setup() {
      pinMode(3,OUTPUT);
      //tft.begin();
      //tft.setRotation(1);
      //tft.fillScreen(TFT_BLUE);
      }

      void loop() {
      digitalWrite(3, HIGH); // Set pin 16 high
      delayMicroseconds(15); // Delay 15 microseconds
      digitalWrite(3, LOW); // Set pin 16 low
      delayMicroseconds(15); // Delay 15 microseconds
      }

      Screen shot from Oscillscope
      5ead175c-0a23-46b1-a6f9-8514a5aae5b7-image.png

      1 Reply Last reply Reply Quote 0
      • First post
        Last post
      Powered by NodeBB | Contributors