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

Search:

Type: Posts; User: xenington

Page 1 of 2 1 2

Search: Search took 0.00 seconds.

  1. Hi Pieter I tried to insert the signed...

    Hi Pieter

    I tried to insert the signed division implementation into the C++ example (for unsigned division):


    Implementation of Signed Division by a Multiple of Two

    constexpr unsigned int K...
  2. @Nominal Animal Brilliant answer, thank you so...

    @Nominal Animal

    Brilliant answer, thank you so much for your time. My understanding is a lot clearer now. Also, I swapped your implementation for the one I was using and it works much better (I...
  3. Exponential Moving Average - How does it work?

    Hello everyone

    I am using an exponential moving average to smooth the readings from an LSM303DLHC compass module and it seems to work. However, I do not understand how it works. Here is the code...
  4. Replies
    489
    Views
    49,927

    I tried it on my Windows 7 partition and it...

    I tried it on my Windows 7 partition and it worked perfectly - even opening, editing and saving directly to the sd card.

    So, having already gone through an epic battle to get the T4.0 MTP to work...
  5. Replies
    489
    Views
    49,927

    Thank you. Found them. So, the 1003 at line 7...

    Thank you. Found them.
    So, the 1003 at line 7 in my serial output means "MTP_OPERATION_CLOSE_SESSION" and then 1002 at line 8 is "MTP_OPERATION_OPEN_SESSION", i.e. an attempt to re-open the...
  6. Replies
    489
    Views
    49,927

    Thank you. That gives me somewhere to start...

    Thank you. That gives me somewhere to start investigating.

    Here is some more serial output when mtp-test is run:

    MTP test
    1002 16 1 0: 1 0 0
    1001 12 1 1: 1 0 0
    1004 12 1 2: 1 0 0
    1007 24 1...
  7. Replies
    489
    Views
    49,927

    Hi everyone I am trying to get this to work on...

    Hi everyone

    I am trying to get this to work on T4.1, Ubuntu 18.04, IDE 1.8.12, td 1.52 and need some help please.

    I have the latest MTP-t4, USB2 and sdFat libraries and have modified Storage.h,...
  8. Replies
    797
    Views
    49,926

    Thank you. If you like, I can go through the...

    Thank you. If you like, I can go through the datasheet and double-check for you.
  9. Replies
    797
    Views
    49,926

    Hi KurtE As far as you know, is this pinout up...

    Hi KurtE

    As far as you know, is this pinout up to date and correct now? I found a Kicad schematic on Github which has many different pin assignments. I guess the schematic is old, but would like...
  10. Yes, it does. Very interesting - thank you. :)

    Yes, it does. Very interesting - thank you. :)
  11. Yes, I understand, the query was intended to be...

    Yes, I understand, the query was intended to be general. Thank you for trying to help anyway. Incidentally, I now think that the problem might be caused by the screen I am using (RA8875), but that...
  12. Ignore that last post

    Ignore that last post. I haven't had my morning coffee yet. :o

    Compiling the program using the 'smallest' option leaves nearly 30KB of ITCM free:


    ITCM: 64kB, DTCM: 448kB, OCRAM: 0(+512)kB...
  13. ITCM spillover?

    Sorry for resurrecting this thread, but I have suddenly found it very interesting.

    My program is randomly dropping sensor readings and copying over variables with strange numbers. I think it might...
  14. Problem solved

    @HallMark

    Yes, I have thanks. the TeensyTimerTools clashed with the flexPWM timer I was using to measure input frequencies. I found a way round it though with FreqMeasureMulti_X:
    ...
  15. Replies
    13
    Views
    1,239

    FreqMeasureMulti_X

    Hello all

    Attached is the final version of FreqMeasureMulti_X. The version attached to message #12 above is now redundant.

    This new version measures the period of 4 digital signals at a...
  16. Thank you for the reply and link. Is it...

    Thank you for the reply and link.

    Is it possible to have multiple interrupt requests, e.g. IRQ_PIT[1], IRQ_PIT[2], etc, which can have different priorities?
  17. Teensy 4 PIT timers and interrupt requests

    Hi

    I was thinking about PIT timers and attaching and prioritising IRQ's (as you do).

    For example:


    attachInterruptVector(IRQ_PIT, example_ISR);
    NVIC_ENABLE_IRQ(IRQ_PIT); ...
  18. Replies
    13
    Views
    1,239

    Oh, and it only works on pins 2, 4, 6 and 8. ...

    Oh, and it only works on pins 2, 4, 6 and 8.

    Thanks
  19. Replies
    13
    Views
    1,239

    New FreqMeasureMulti

    Hi KurtE (and everyone else)

    Unfortunately, I was right about FreqMeasureMulti being a cycle counter and not a cycle measurer.

    So, I had a go at writing my own! It doesn't have the broad...
  20. Replies
    13
    Views
    1,239

    Hi KurtE Thanks for the info. It was very...

    Hi KurtE

    Thanks for the info. It was very useful in getting started in understanding how this works.

    One thing I have discovered is that it appears (I may be wrong) that freqmeasuremulti for T4...
  21. Replies
    13
    Views
    1,239

    @KurtE Hi Kurt Can you please explain how...

    @KurtE

    Hi Kurt

    Can you please explain how FreqMeasureMulti for the Teensy 4 actually works? Regarding rising edges only.

    Does it measure the time between 2 edges? Take an average of several...
  22. Replies
    1
    Views
    283

    Teensy 4 GPIO flag reset

    Hello, hopefully just a quick one :)

    My understanding of interrupts is that most have their flags reset when the interrupt is started. Am I correct in thinking that this means the interrupt won't...
  23. Replies
    13
    Views
    1,239

    If I use the output of pin10, this is printed: ...

    If I use the output of pin10, this is printed:


    59.97(2:2490368:16.60 2:2490368:16.60 2:2555904:17.04 2:2490368:16.60 )
    60.03(2:2490368:16.60 2:2490368:16.60 2:2490368:16.60 2:2490368:16.60 )...
  24. Replies
    13
    Views
    1,239

    I tried them all: TCK, GPT and TMR. The...

    I tried them all: TCK, GPT and TMR.

    The example sketch you gave above in post #3 prints the following:


    41981.53(2:4294967295:0.00 2:4294967295:0.00 2:0:0.00 2:4294967295:0.00 )...
  25. Replies
    13
    Views
    1,239

    @ KurtE Excellent work. The library works...

    @ KurtE

    Excellent work. The library works very well. I can take readings from 4 sensors producing square wave frequencies around 50KHz in less than 1 microsecond! Using pulseIn() or digitalRead()...
  26. Replies
    13
    Views
    1,239

    Thank you, thank you, thank you, thank you, thank...

    Thank you, thank you, thank you, thank you, thank you.

    This has been doing my nut in for ages. I will do some testing tomorrow and report back.
  27. Replies
    240
    Views
    12,812

    You didn't have to install Linux, I don't mind...

    You didn't have to install Linux, I don't mind checking for such things (there's probably only me that uses it anyway). It is nice to know you care though.
  28. Replies
    240
    Views
    12,812

    Hi Luni The latest version (downloaded...

    Hi Luni

    The latest version (downloaded yesterday) will not compile for me without the files src/Teensy/GPT/GPTchannel.h and src/Teensy/TMR/TMRchannel.h being renamed GPTChannel.h and TMRChannel.h...
  29. Replies
    13
    Views
    1,239

    The TXB0108 level shifter was producing loads of...

    The TXB0108 level shifter was producing loads of interference so I replaced it with resistor voltage dividers instead (10k + 15k).
  30. Replies
    13
    Views
    1,239

    FreqMeasureMulti on the T4

    OK. So I have had look into porting FreqMeasureMulti for the t4 and it is all very confusing. Can someone give me some pointers please?

    I am not sure which timer to use: flexpwm or GPT? Both can...
  31. Replies
    0
    Views
    222

    FreqMeasureMulti on the T4

    OK. So I have had look into porting FreqMeasureMulti for the t4 and it is all very confusing. Can someone give me some pointers please?

    I am not sure which timer to use: flexpwm or GPT? Both can...
  32. OK. So I have had look into making...

    OK. So I have had look into making FreqMeasureMulti work for the t4 and it is all very confusing. Can someone give me some pointers please?

    I am not sure which timer to use: flexpwm or GPT? Both...
  33. Replies
    275
    Views
    14,168

    Genius. Thanks Kurt

    Genius. Thanks Kurt
  34. Replies
    489
    Views
    49,927

    It's alive! The problem turned out to be...

    It's alive!

    The problem turned out to be embarrasingly simple - the cable I was using was too long (about 1m). Swapped to a 50cm cable and everything burst into life. I feel pretty stupid. Or...
  35. Sorry to resurect this thread, but this...

    Sorry to resurect this thread, but this information may be useful to the people in the UK.

    uk.rs.online have free postage and sells these FPC connectors:
    ...
  36. Replies
    489
    Views
    49,927

    OK, getting mighty peeved now. Another day wasted...

    OK, getting mighty peeved now. Another day wasted trying to get this to work.

    I have installed everything: libmtp, mtp-tools, gvfs-mtp, go-mtp, jmtpfs, gmtp and python-pymtp. I fiddled some more...
  37. Replies
    489
    Views
    49,927

    >KurtE Thanks I'll give it a go. I have tried...

    >KurtE Thanks I'll give it a go. I have tried various mtp software on the ubuntu side which makes me think my problem might be old teensy libs.

    When updating ide and teensyduino, are the included...
  38. Replies
    489
    Views
    49,927

    Yes the sdfat-beta examples all work. I have to...

    Yes the sdfat-beta examples all work. I have to keep renaming sdfat-beta.h > sdfat.h to do it though.

    I don't mind the empty tab in mtp-test.
  39. Replies
    489
    Views
    49,927

    Sdio via the pads underneath. # define use_sdio...

    Sdio via the pads underneath. # define use_sdio is set to 1.

    Will investigate serial1 tomorrow.
  40. Replies
    489
    Views
    49,927

    Teensy 4, ide 1.8.10, teensyduino 1.49. The pc is...

    Teensy 4, ide 1.8.10, teensyduino 1.49. The pc is running ubuntu 18.04. Unfortunately, Serial doesn't work in mtp experimental mode. Is there another way to get the logs?

    In an earlier post you...
  41. Replies
    489
    Views
    49,927

    Been trying to get this working on Linux all day....

    Been trying to get this working on Linux all day. Getting fed up now.

    By fiddling with the udev rules, nautilus now displays 'Teensy MTP Disk' but is unable to access it ("no MTP devices found"). ...
  42. Is anyone working on this? How difficult...

    Is anyone working on this?

    How difficult might it be? I may have a go if not too bad....
  43. Replies
    240
    Views
    12,812

    Got a 'file not found' compile error which was...

    Got a 'file not found' compile error which was corrected by changing /src/Teensy/TMR/TMR.h : line 3


    #include "TmrChannel.h"

    to


    #include "TMRchannel.h"
  44. Replies
    489
    Views
    49,927

    I still can't get MTP to work on Linux with the...

    I still can't get MTP to work on Linux with the t4.

    The t3.6 worked using yoongmh's library, wolfmanjm's edits and SdFat, but then I upgraded to IDE 1.8.10 and Teensyduino 1.49 and it all went...
  45. Replies
    489
    Views
    49,927

    Making some progress. All compilation errors...

    Making some progress.

    All compilation errors disappear after making the following changes:

    MTP_storage.cpp....line137....change "File" to "FsFile"
    MTP_storage.cpp....line180....change...
  46. Replies
    489
    Views
    49,927

    Many thanks to wolfmanjm for getting this to work...

    Many thanks to wolfmanjm for getting this to work on Linux. I had all but given up!

    Also, thank you to WMXZ for trying it with Teensy 4. I can't get it to work yet, but hopefully will soon.
    ...
  47. Many, many thanks for your help. It works! I...

    Many, many thanks for your help.

    It works! I would never have figured it out for myself. Here is what I came up with:


    byte lengthName = strlen(surveyName);
    byte widthChar[lengthName];...
  48. Hi Thank you for the reply. I have tried some...

    Hi

    Thank you for the reply. I have tried some things based on your suggestion, but can't get it to work. Could you explain the following a bit more please?


    MagUbuntuCond_36_array[c - '...
  49. Font character width & concatenating arrays

    Hi All,

    I am trying to determine the width in screen pixels of a character array. The character array can be any length up to 25 characters and is input by the user.

    The font data table...
  50. Replies
    3
    Views
    457

    Thank you for confirming that. I really...

    Thank you for confirming that.

    I really appreciate the wisdom and time that you guys give.
Results 1 to 50 of 56
Page 1 of 2 1 2