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

Search:

Type: Posts; User: Frank B

Search: Search took 0.01 seconds.

  1. Replies
    59
    Views
    9,062

    Got the new displays. so, finally:...

    Got the new displays.

    so, finally:
    https://github.com/PaulStoffregen/cores/pull/433/files

    Its now nearly 50% clock ratio.
    Runs fine for every F_CPU_ACTUAL.
  2. Replies
    59
    Views
    9,062

    I'm using a 8 digit 7-segment display. it worked...

    I'm using a 8 digit 7-segment display.
    it worked with this replacement for shiftout up to 960Mhz:


    static const int maxSpeed = 10000000ULL; //10 MHz
    static const int maxSpeedBeforeDelay =...
  3. Replies
    59
    Views
    9,062

    Ok.. managed to kill the display.. lol, no idea,...

    Ok.. managed to kill the display.. lol, no idea, how :)
    I will stop bothering you and put this on pause until i have a replacement for the display.
  4. Replies
    59
    Views
    9,062

    I will connect the scope this evening. The speed...

    I will connect the scope this evening.
    The speed on atmega or such can't be much higher than 4MHz I think.
    Maybe we should limit it to 10MHz?
    Or less??

    The mentioned library does not work now...
  5. Replies
    59
    Views
    9,062

    I have hardware to test on teensy. But I have no...

    I have hardware to test on teensy. But I have no Atmel*.
    shiftOut is in the core and is part of arduino-compatibility! (digital.c)


    *By the way, I really do not care if it works on the Atmel or...
  6. Replies
    59
    Views
    9,062

    Sure - it's in the T4 core... Don't know, is...

    Sure - it's in the T4 core...

    Don't know, is not important and does not matter - 10 is the lowest value that works. It's not the goal to get a reproducable timing. (SPI would be better, then) It...
  7. Replies
    59
    Views
    9,062

    Tested this - works wonderful.

    Tested this - works wonderful.
  8. Replies
    59
    Views
    9,062

    @defragster: What do you think? static...

    @defragster:
    What do you think?


    static const int shiftOutDly = 10;
    static const int maxSpeedBeforeDelay = 300e6;

    void shiftOut_lsbFirst(uint8_t dataPin, uint8_t clockPin, uint8_t value)
    {...
  9. Replies
    59
    Views
    9,062

    No i have no ATMEL-Arduino. I should buy some,...

    No i have no ATMEL-Arduino. I should buy some, some day..
    Shiftout is just too fast for the display ( "too fast" is definitely NOT compatible with ATMEL-Arduino.. ) - it does not work.

    Just try...
  10. Replies
    59
    Views
    9,062

    The delay is (almost) the same for 24 and 800Mhz...

    The delay is (almost) the same for 24 and 800Mhz (it will be a bit more with 24MHz due to the nature of the waiting loop).. But I understand your point - digitalWrite is slower with 24MHz. Edit:...
  11. Replies
    59
    Views
    9,062

    The only issue I see that it is a little slower -...

    The only issue I see that it is a little slower - but that's the intention.
    For my max7219 it works without the delays if f_cpu is < 396MHz. So of course one could add a bunch of #ifdefs - would...
  12. Replies
    59
    Views
    9,062

    well, the time is independent from f_cpu, so, the...

    well, the time is independent from f_cpu, so, the f_cpu should'nt matter (but I have tested up to 960MHz ;-) . (..and I hope the laws of nature have taken T4 into account)
  13. Replies
    59
    Views
    9,062

    https://www.pjrc.com/teensy/td_libs_LedControl.htm...

    https://www.pjrc.com/teensy/td_libs_LedControl.html which is part of teensyduino uses shiftout(), which is too fast on T4.

    I want to fix it - what is better ?

    a) add own slow _shiftOut for T4...
  14. Replies
    59
    Views
    9,062

    Because I was bored, because I put my debugger...

    Because I was bored, because I put my debugger idea ad-acta and I had to wait for something else, I played with the compiler again - this time
    GCC9.2.1 20191025 (release) [ARM/arm-9-branch revision...
Results 1 to 14 of 14