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

Search:

Type: Posts; User: nox771

Page 1 of 8 1 2 3 4

Search: Search took 0.01 seconds.

  1. Replies
    2
    Views
    734

    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:...
  2. Replies
    578
    Views
    240,741

    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...
  3. Replies
    30
    Views
    1,355

    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.
  4. Replies
    3
    Views
    262

    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....
  5. Replies
    13
    Views
    1,512

    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...
  6. Replies
    578
    Views
    240,741

    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...
  7. Replies
    578
    Views
    240,741

    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...
  8. Replies
    578
    Views
    240,741

    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...
  9. Replies
    578
    Views
    240,741

    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...
  10. Replies
    578
    Views
    240,741

    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...
  11. Replies
    578
    Views
    240,741

    Yes on a T3.2 you could specify internal pullups...

    Yes on a T3.2 you could specify internal pullups on the Master device, and for communicating just between two T3.2 devices that can work (note, this is generally not the case on other teensy...
  12. Replies
    578
    Views
    240,741

    w/pullups just means to make sure there are...

    w/pullups just means to make sure there are external pullups. To be clear, on T3.2 pins 29/30 means "arduino" pins 29/30 which are backside SMT pads, are you actually connecting to those pads? ...
  13. Replies
    578
    Views
    240,741

    I'll take a closer look tomorrow. However with...

    I'll take a closer look tomorrow. However with just a cursory look, one thing is a little odd. Presumably you are using your library that needs Wire on the Master device only, is that right? If...
  14. Replies
    578
    Views
    240,741

    To share the bus with a library you need to...

    To share the bus with a library you need to coordinate the transfers so they do not interfere with each other. That is purely application level code, i2c_t3 only manages single buffer transfers at a...
  15. Replies
    578
    Views
    240,741

    Is there supposed to be more context here? The...

    Is there supposed to be more context here? The library does not define auto retry by default in current version.
  16. Replies
    578
    Views
    240,741

    Nice of you to say, but the challenge I can't...

    Nice of you to say, but the challenge I can't ever get around is time. Like many here, my project stack is already much higher than available time (and unfortunately building a new AVR lib isn't...
  17. Replies
    578
    Views
    240,741

    Sorry but no. The original purpose of the...

    Sorry but no. The original purpose of the library was to support the advanced features and speed of the Teensy 3.x I2C hardware. Much of that simply doesn't exist on the AVR hardware. I would...
  18. Replies
    578
    Views
    240,741

    I would think controlling the STOP behavior via...

    I would think controlling the STOP behavior via some option setting is probably best, as it can be set depending on application.
  19. Replies
    578
    Views
    240,741

    The main purpose of not sending a STOP is to keep...

    The main purpose of not sending a STOP is to keep the bus locked. A secondary purpose is to accelerate a long chain of commands. So if your application has reason to keep the bus locked to a single...
  20. Replies
    578
    Views
    240,741

    I'm not sure what you are referring to. The...

    I'm not sure what you are referring to. The i2c_t3 library itself handles RepSTARTs as given by the i2c spec.

    If you are designing a master-side device, the most common thing is to send...
  21. Replies
    578
    Views
    240,741

    Multiple repeated starts can occur if there was a...

    Multiple repeated starts can occur if there was a chain of commands.

    Typical case for RepSTART might be some device with memory, whereby to read an address you first send the memory address then...
  22. Replies
    578
    Views
    240,741

    Yes keeping SCL low will drain power through the...

    Yes keeping SCL low will drain power through the pullup resistor, on the order of ~mA for typical component values. Recommended operation is to pair every START/repSTART with a STOP (eg. complete...
  23. Replies
    578
    Views
    240,741

    Yes the typical Wire commands should work if you...

    Yes the typical Wire commands should work if you swap Wire.h to i2c_t3.h. The library is designed specifically for that to work. It will also support having both Wire and Wire1 (as well as Wire2...
  24. Replies
    578
    Views
    240,741

    In a single master setup it has no practical...

    In a single master setup it has no practical effect if you don't send a stop. The effect of not sending a stop is that the bus is still "busy" (SCL remains low), but there is no problem leaving it...
  25. Replies
    578
    Views
    240,741

    I don't recommend any configuration whereby you...

    I don't recommend any configuration whereby you essentially trick the compiler into using both the Wire library and the i2c_t3 library at the same time. Both these libs are going to be possibly...
  26. Replies
    578
    Views
    240,741

    Those defines are in the kinetis.h file. It...

    Those defines are in the kinetis.h file. It means your Teensyduino version is too old. You need to update your install. The latest non-beta looks like 1.35:...
  27. Replies
    578
    Views
    240,741

    The problem is your directory name is wrong. For...

    The problem is your directory name is wrong. For Arduino linker to find the file the directory name has to match. In your libraries you need to change i2c_t3-master to just i2c_t3:...
  28. Replies
    578
    Views
    240,741

    It is strange to see ARB lost errors on...

    It is strange to see ARB lost errors on single-master. Perhaps some timing artifact or analog effect is confusing the hardware.

    For the error counters, I can try to add some in, but it may take...
  29. Replies
    578
    Views
    240,741

    Yes the GitHub files should be current. When I...

    Yes the GitHub files should be current. When I do updates to the library, I'll post them here, and on GitHub at the same time (and as you say, Paul will include them in Teensyduino, but only when TD...
  30. Replies
    578
    Views
    240,741

    What document are you referring to? I see a...

    What document are you referring to? I see a minor discrepancy, with I2C_BUF_OVF omitted near the end, is this what you are talking about?

    i2c_t3.h has this:

    //...
  31. Replies
    98
    Views
    12,603

    It seems odd that people start these CNC control...

    It seems odd that people start these CNC control threads based on AVR hardware/firmware as their starting point. There is already an open source project based on LPC1769, both hardware and software,...
  32. Ok, thanks for confirming it works.

    Ok, thanks for confirming it works.
  33. I don't have any of these displays to test. They...

    I don't have any of these displays to test. They seem to have some kind of port expander in it (MCP23008)? Try running in immediate mode using the following call after the begin() lines, and see if...
  34. Replies
    578
    Views
    240,741

    Good to hear, thanks for the update.

    Good to hear, thanks for the update.
  35. Replies
    578
    Views
    240,741

    Ok, thanks. That is the same as the latest...

    Ok, thanks. That is the same as the latest library release (v9.2).
  36. Replies
    578
    Views
    240,741

    Can you post what resetBus_() code you are using?...

    Can you post what resetBus_() code you are using? The auto retry is not a robust error recovery system in itself. All it is doing is this - if a Master device tries to send a command and SDA is...
  37. Replies
    578
    Views
    240,741

    Try this resetBus_() function, just copy/paste in...

    Try this resetBus_() function, just copy/paste in place of the original, or modify as shown in red (at the bottom - comment out the first section and add the three lines at the end). This will force...
  38. Replies
    578
    Views
    240,741

    I tested the registers and disabling/re-enabling...

    I tested the registers and disabling/re-enabling the module does not appear to change the settings. Specifically I added these lines around the new section (the if() is commented out to force the...
  39. Replies
    578
    Views
    240,741

    The SRW bit (Status bit 2) will be set when the...

    The SRW bit (Status bit 2) will be set when the Master receives data from the Slave. That is normal. The RXAK bit (Status bit 0) is used to check for Slave acknowledge, and it may be set as a...
  40. Replies
    578
    Views
    240,741

    Ok. Try the resetBus() routine that hw999...

    Ok. Try the resetBus() routine that hw999 posted. It is unclear to me what condition requires the I2C module to be disabled and re-enabled, but it if works for a larger set of error conditions then...
  41. Replies
    578
    Views
    240,741

    Also in addition to the above change, if that can...

    Also in addition to the above change, if that can fix the bus state when called manually, please let me know if having the I2C_AUTO_RETRY define set in the header file makes it work without...
  42. Replies
    578
    Views
    240,741

    I think there are fragments of information here. ...

    I think there are fragments of information here. Simply shorting the SCL and SDA together by itself doesn't do anything, since they are both pulled up to the same voltage. Shorting the pins...
  43. I would be interested in linking from the i2c_t3...

    I would be interested in linking from the i2c_t3 GitHub site to your library when you get it working. I've always wanted to get SMBus and PMBus support included in i2c_t3 but I've never had time to...
  44. Replies
    578
    Views
    240,741

    If you only have 2 10k in parallel (5k equiv)...

    If you only have 2 10k in parallel (5k equiv) then that should not cause a problem. A 5k pullup is a very reasonable value. The I2C_WAITING state is the normal idle state. This might be expected...
  45. Replies
    578
    Views
    240,741

    Shorting SCL to ground will render the bus...

    Shorting SCL to ground will render the bus inoperable. I2C cannot communicate at all if SCL is grounded. If SDA is grounded then it will assume it is a stuck Slave device and it will try to toggle...
  46. Replies
    578
    Views
    240,741

    In Master mode the library will automatically try...

    In Master mode the library will automatically try to set its priority higher than the calling function (dropping to immediate mode if the calling function is priority 0). For Slave mode operation...
  47. Replies
    578
    Views
    240,741

    Nice benchmarks. This is actually a faster...

    Nice benchmarks. This is actually a faster speedup than I would have expected. The 2.4M rate topped out at around 100kB/s (measured on T3.1), and this running at 6M is ~245kB/s, which is nearly a...
  48. Replies
    578
    Views
    240,741

    Well there is some weird stuff going on. The...

    Well there is some weird stuff going on. The particular code in question is this part from acquireBus_():


    while(timeout == 0 || deltaT < timeout)
    {
    // we are not...
  49. Replies
    578
    Views
    240,741

    I have uploaded a new version with aforementioned...

    I have uploaded a new version with aforementioned fixes to GitHub and the 1st post.

    Looking at the code though, it seems to me for I2C_AUTO_RETRY to be causing a problem you must be running with...
  50. Replies
    578
    Views
    240,741

    That's quite odd. Retry should not be doing...

    That's quite odd. Retry should not be doing anything unless it has trouble acquiring the bus. I have a pending update to remove the 120 divide ratio, so I'll disable the default when that update...
Results 1 to 50 of 385
Page 1 of 8 1 2 3 4