Forum Rule: Always post complete source code & details to reproduce any issue!
Results 1 to 4 of 4

Thread: Need help with testing a Library for signal generation

  1. #1
    Junior Member
    Join Date
    Jun 2022
    Posts
    8

    Need help with testing a Library for signal generation

    Hello,
    i have found a library i want to use, but i cant get it to work.
    Maybe someone who has both a Teensy LC and a Teensy 3.2 and could test something for me.
    This is the library, it should generate signals accordind to the xy2-100 protocol.
    https://github.com/Tuet/XY2_100

    What i would like to have testet, is if the example "BasisTest.ino" from the lib produces a 4Mhz clock signal.
    This is so i can rule out a mistake on my end with my Teensy LC, bacause for me there are no signals being generated.
    Or maybe the library has a bug for the Teensy LC and only works with the Tensy 3.2.

    Thanks
    DerFrosti

  2. #2
    Senior Member PaulStoffregen's Avatar
    Join Date
    Nov 2012
    Posts
    26,561
    Sure, that's easy. Ran it here on a Teensy 3.2 and LC. Indeed it seems Teensy LC isn't working.

    On Teensy 3.2, here are the waveforms my scope sees on pins 2, 14, 7, 8. The waveforms keep repeating with different data patterns on the blue and red traces.

    Click image for larger version. 

Name:	file1.png 
Views:	7 
Size:	60.6 KB 
ID:	28776

    On Teensy LC, it gives this single pulse when the program starts running. Then all 4 pins remain low and no other activity seems to happen.

    Click image for larger version. 

Name:	file2.png 
Views:	5 
Size:	36.2 KB 
ID:	28777

  3. #3
    Junior Member
    Join Date
    Jun 2022
    Posts
    8
    Thank you,
    so it seems there really is a problem with the implementation for the Teensy LC.
    Sadly i havent found it. It seems to something with the Flex Timer, cause i cant change the speed of when the isr is triggered.
    Maybe ill buy a Teensy 3.2

  4. #4
    Senior Member+ manitou's Avatar
    Join Date
    Jan 2013
    Posts
    2,713
    See follow-up thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •