Search results

  1. the_maxx

    Timing measurement of analog signals

    Hello, I have changed the code, here is my version: uint32_t seeTimes[64][3]; volatile uint32_t myCnt = 0; void catchTimes() { seeTimes[myCnt][0] = ARM_DWT_CYCCNT; seeTimes[myCnt][2] = micros(); // not enough resolution as it runs 3+ times per us seeTimes[myCnt][1] =...
  2. the_maxx

    Timing measurement of analog signals

    Hello defragster, Thanks for your suggestions. This is my first time using a micro-controller and there are some concepts that I don't understand yet. I will have to read your suggestions slowly and make some tests. I will be back once I have made some tests.
  3. the_maxx

    Timing measurement of analog signals

    Hello thebigg, I have just done it, with the following example and I get 20 us resolution: void setup() { } long val; long volt; void loop() { val = digitalReadFast(A8); long mcrT = micros(); if(val==1){ Serial.println(mcrT); } } Do you think that it will be faster...
  4. the_maxx

    Timing measurement of analog signals

    Same result. I read that with Teensy I should be able to measure with ns resolution. Am i mistaken? My code looks like this: void setup() { } long val; long volt; void loop() { val = digitalReadFast(A8); volt = analogRead(A8); long mcrT = micros(); if(val==1){ if(volt>0){...
  5. the_maxx

    Timing measurement of analog signals

    Hello, As ratnin suggested I am measuring using digitalRead(). To start with the measurements I am using a constant voltage source in order to estimate the time resolution of my measurement. Taking a look to my results, the minimum step that I can measure with mcrT is 68-70 us. Is there a...
  6. the_maxx

    Timing measurement of analog signals

    Thank you, I will try to use it.
  7. the_maxx

    Timing measurement of analog signals

    Hello, I am new in the microcontrollers world so excuse me if I ask stupid things. I have a Teensy4.0 and I want to use it to measure analog data with the following structure: The time between trigger and trigger is constant and the time of the signals between triggers can change. The width...
Back
Top