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

Search:

Type: Posts; User: nox771

Page 1 of 9 1 2 3 4

Search: Search took 0.01 seconds.

  1. Replies
    673
    Views
    376,398

    The 5us high/low is correct for 100kHz rate. ...

    The 5us high/low is correct for 100kHz rate. 4.7k is a good value. It really looks like Slave clock stretching, but that is quite a long duration. I'm not sure why it would not respond to some...
  2. Replies
    673
    Views
    376,398

    Those delays should not be caused by the Master. ...

    Those delays should not be caused by the Master. Ignoring the SCL delay, when the bytes transmit, what is the SCL toggle speed? That would be the Master-side clock.

    I'm not sure why the hold...
  3. Replies
    673
    Views
    376,398

    I'm not sure what else to suggest. Other...

    I'm not sure what else to suggest. Other displays I've used generally scale with transmit speed (but they were graphical, so I2C was the bottleneck for moving frame data). Perhaps that display has...
  4. Replies
    673
    Views
    376,398

    It's an interesting idea, but I suspect it is a...

    It's an interesting idea, but I suspect it is a bit more complex than it seems. On the Slave end, the code would run as part of the ISR. The code you show has elements that seem right, but overall...
  5. Replies
    673
    Views
    376,398

    Thanks for the feedback. I'll probably...

    Thanks for the feedback. I'll probably investigate it, but I have no idea when I could get something out.
  6. Replies
    673
    Views
    376,398

    I don't quite follow your question. On...

    I don't quite follow your question. On Master-side the resetBus function will take I2C off the pins for a moment, manually send some clocks down SCL to release any stuck slaves, and then reconnect...
  7. Replies
    673
    Views
    376,398

    You'll have to supply a link to your library you...

    You'll have to supply a link to your library you are using. Other than that it is guessing. Using google I can see a DigoleSerial.h lib at:...
  8. Replies
    673
    Views
    376,398

    It depends. Mostly any speedup will depend on...

    It depends. Mostly any speedup will depend on the slave device and if it will respond well to faster than normal I2C speeds. I've gotten faster than normal communication working on something like a...
  9. Replies
    673
    Views
    376,398

    Also to anyone following this thread - in regards...

    Also to anyone following this thread - in regards to Teensy4:

    I was offered a T4 beta board back when it started, but I could not accept as I did not have the requisite time to work on a library...
  10. Replies
    673
    Views
    376,398

    This thread is still correct for problems...

    This thread is still correct for problems involving this library.

    I am unfamiliar with DigoleSerialDisp library. It may work by simply swapping the include line:

    #include <i2c_t3.h>
    instead...
  11. Replies
    673
    Views
    376,398

    Edit by proxy is a bit too cumbersome. I think...

    Edit by proxy is a bit too cumbersome. I think at this point just edit the top post so it refers all future updates/downloads to GitHub (there is already a link at the top of first post, just...
  12. Replies
    673
    Views
    376,398

    All - I uploaded a new release on GitHub:...

    All - I uploaded a new release on GitHub:
    https://github.com/nox771/i2c_t3

    It applies some fixes and changes the license to MIT. I would edit the top-post accordingly, but for some reason the...
  13. Replies
    42
    Views
    7,211

    For next TD version, please pull new release of...

    For next TD version, please pull new release of i2c_t3 here (tagged 'v11'):
    https://github.com/nox771/i2c_t3

    Changed license to MIT and applied some fixes.
  14. Replies
    673
    Views
    376,398

    You cannot include both i2c_t3 and Wire libs in...

    You cannot include both i2c_t3 and Wire libs in the same project because they define the same objects. If you want to use i2c_t3, you need to replace all
    #include <Wire.h>
    with
    #include...
  15. Replies
    673
    Views
    376,398

    Back when I first started the lib the code was...

    Back when I first started the lib the code was based on whatever Wire was in Teensyduino at the time, which was listed as LGPL, that is why it uses LGPL (IIRC Arduino Wire has a LGPL header). ...
  16. Replies
    7
    Views
    1,018

    The problem is likely that you are using the...

    The problem is likely that you are using the Adafruit_MCP23017 library, which since it uses I2C, you will need to make sure inside that library to change Wire.h to i2c_t3.h also. If the Adafruit...
  17. Replies
    673
    Views
    376,398

    Ah, I have an idea of what it might be. Change...

    Ah, I have an idea of what it might be. Change your downloaded dir name from "i2c_t3-master" to "i2c_t3". Teensyduino ships with i2c_t3 by default, so it will pick that one first unless you have...
  18. Replies
    673
    Views
    376,398

    There seems to be some conversions between signed...

    There seems to be some conversions between signed and unsigned types going on. Try first working exclusively with unsigned types, and avoid int if possible. The original Arduino Wire lib annoyingly...
  19. Replies
    673
    Views
    376,398

    Increasing the buffer sizes should work. 258...

    Increasing the buffer sizes should work. 258 bytes sounds correct for the default buffer size, as 1st byte is used for slave address. Are you using size_t as your index? If you use uint8_t as a...
  20. Replies
    673
    Views
    376,398

    The library error tracking functions do not log...

    The library error tracking functions do not log addresses (it is more of an error "counting" system instead of an error "logging" system). This is really the only way to do it since a true error log...
  21. Replies
    673
    Views
    376,398

    All, I uploaded a v10.1 release on GitHub and the...

    All, I uploaded a v10.1 release on GitHub and the top-post.

    This has a fix for a subtle priority escalation bug involving nested Wire calls inside callbacks (refer to:...
  22. Replies
    673
    Views
    376,398

    Yes each bus has its own callback functions. ...

    Yes each bus has its own callback functions.

    There is a subtle priority escalation bug if you try doing Wire calls inside the callback, as described here:...
  23. Replies
    673
    Views
    376,398

    You can provide handling or not for unneeded...

    You can provide handling or not for unneeded addresses. Usually it is not a problem (since nothing talks to those addresses anyway). But something like that should work for emulating multiple...
  24. Replies
    673
    Views
    376,398

    You can make a Slave respond to a range of...

    You can make a Slave respond to a range of addresses, and then determine which one was addressed using the Wire.getRxAddr() function. If you look at the basic_slave_range example it shows something...
  25. Replies
    673
    Views
    376,398

    You don't use those functions to determine if the...

    You don't use those functions to determine if the buffer is empty, instead use Wire.available(). Those functions exist because at a hardware level the I2C moves data in bytes, so it is natural to...
  26. Replies
    11
    Views
    8,131

    Hello, for the next TD release please pull i2c_t3...

    Hello, for the next TD release please pull i2c_t3 off GitHub again. It had a big update which is described here:...
  27. Replies
    673
    Views
    376,398

    GC is one of several things that are lacking, but...

    GC is one of several things that are lacking, but unfortunately at the moment I'm out of time, and it might be a while before I can look into it. I can add this as a future to-do.
  28. Replies
    12
    Views
    3,895

    If the regulators are worth a damn at all they...

    If the regulators are worth a damn at all they should block a Broadcom / Qualcomm deal. Putting those two together (with all of their sub-acquisitions) consolidates a large amount of wireless chip...
  29. Replies
    34
    Views
    5,526

    Things to try: 1) Try putting a delay on the...

    Things to try:
    1) Try putting a delay on the startup code prior to the Wire commands. If RTC holds SDA/SCL low during powerup it could hang the Wire commands (I'm not sure how default Wire lib...
  30. Replies
    30
    Views
    6,221

    What it looks like is the 64LQFP package is out...

    What it looks like is the 64LQFP package is out everywhere (Mouser has 8500 on order at end of Feb - otherwise lead time is now showing 39 weeks).

    However there is some stock on bigger QFPs and...
  31. A couple FYI's - 1) I ran into a similar bug...

    A couple FYI's -

    1) I ran into a similar bug on earlier i2c_t3 code, which is now fixed. This is caused by the STOP interrupt code, which probably needs fixing on Wire. IIRC, the interrupt...
  32. Replies
    673
    Views
    376,398

    All, I've uploaded a new v10.0 library to the top...

    All, I've uploaded a new v10.0 library to the top post and GitHub. Documentation has been updated.

    This has passed all my testing but it is a pretty involved change in some parts, so post here if...
  33. Just FYI - I'm going to be working on a...

    Just FYI - I'm going to be working on a significant update soon, and I'll try to add this in (but it will probably be a more generic error logging as discussed a long time ago - when it gets closer I...
  34. Replies
    673
    Views
    376,398

    sendRequest() will background a transfer, but it...

    sendRequest() will background a transfer, but it is correct you will need to poll or periodically check done() or finish() to know when the transfer is complete. The expectation was this is...
  35. Replies
    17
    Views
    5,976

    Paul, please pull a new i2c_t3 off GitHub again...

    Paul, please pull a new i2c_t3 off GitHub again for next TD version. There were some more fixes on the LC/3.5/3.6, details:...
  36. Replies
    673
    Views
    376,398

    All - I've uploaded a v9.4 release to the top...

    All - I've uploaded a v9.4 release to the top post and GitHub. A couple other bugs showed up involving RepSTART into Slave ISR on LC/3.5/3.6. Changes are:


    Fixed Slave ISR for LC/3.5/3.6 not...
  37. Possibly because you are doing pass by value...

    Possibly because you are doing pass by value instead of pass by reference. Try changing the function arguments to references:

    void IntOn(IntervalTimer& actTimer) {
  38. Replies
    673
    Views
    376,398

    This looks like a problem in the build system,...

    This looks like a problem in the build system, not in the source code. It seems to be trying to link in default Wire lib (WireKinetis.cpp.o) at the same time as i2c_t3, which won't work because they...
  39. Replies
    30
    Views
    6,221

    There are a few out there, mostly places I've...

    There are a few out there, mostly places I've never dealt with (click "show all"):
    https://octopart.com/search?q=MK20DX256VLH7+
  40. Replies
    18
    Views
    8,635

    I merged this. GitHub and forum download are...

    I merged this. GitHub and forum download are updated.
  41. Replies
    18
    Views
    8,635

    Just FYI, please pull a new i2c_t3 release to...

    Just FYI, please pull a new i2c_t3 release to include for your next TD version. There have been a few bug fixes since the version included in TD 1.39. Here is the link:...
  42. Replies
    673
    Views
    376,398

    Just FYI - I've uploaded a v9.3 release to the...

    Just FYI - I've uploaded a v9.3 release to the top post and GitHub. It fixes a Slave-mode bug in the ISR for LC/3.5/3.6 devices (STOP bit not properly triggering callback). Try the update if you...
  43. Replies
    30
    Views
    5,709

    Just a thought, but if you had a RPi3 with WiFi,...

    Just a thought, but if you had a RPi3 with WiFi, and you had a NFS disk (from other Linux machine, or NAS server) you could build on the remote disk and prevent burning out the SD card.
  44. Replies
    3
    Views
    1,242

    I got one of these DE0-Nano boards a long time...

    I got one of these DE0-Nano boards a long time ago. I never got a chance to get into it, but I liked the form factor (0.1" headers) and it seemed to be reasonably capable. Not too expensive either....
  45. Replies
    13
    Views
    3,069

    I've always wondered what kind of fun would...

    I've always wondered what kind of fun would happen if you tried bringing a case like this through the airport:
    http://www.bit-tech.net/reviews/modding/wmd_part2_g-gnome_case_mod/1/

    It's so...
  46. Replies
    673
    Views
    376,398

    Internally the library maintains its state...

    Internally the library maintains its state through several variables in the i2cStruct (refer to i2c_t3.h file, and look for i2cStruct, then "Current" variables). There are functions to access some...
  47. Replies
    673
    Views
    376,398

    No it cannot do this right now. When you do a...

    No it cannot do this right now. When you do a beginTransmission(addr) it will clear the Tx buffer, so your 2nd slave data will clear out the 1st slave data. You would have to create some wrapper...
  48. Replies
    673
    Views
    376,398

    You'll have to clarify what error you are...

    You'll have to clarify what error you are getting. I've not tried in combination with the audio lib. Note that there is a way to make it behave very similar to stock Wire lib by setting immediate...
  49. Replies
    673
    Views
    376,398

    tonton81 is right, you should try converting the...

    tonton81 is right, you should try converting the "i2c_t3::" method calls into "Wire.", such as "Wire.begin()" and see if that works for you.

    The way the library is structured is that in addition...
  50. Replies
    673
    Views
    376,398

    Your problem is this line in both sets of code...

    Your problem is this line in both sets of code (in the initialization section):

    while (!Serial); // wait for Leonardo enumeration, others continue immediately

    This halts the program until the...
Results 1 to 50 of 425
Page 1 of 9 1 2 3 4