Search results

  1. Z

    The maximum bytes that I2C can write or read on teensy 4.1

    I find the limitation. The timeout value needs to be changed in function endTransmission "if ((status & LPI2C_MSR_PLTF) || timeout > 50) "
  2. Z

    The maximum bytes that I2C can write or read on teensy 4.1

    my changes: //#define BUFFER_LENGTH 136 #define BUFFER_LENGTH 1056 #if 0 uint8_t requestFrom(uint8_t address, uint8_t quantity, uint8_t sendStop); uint8_t requestFrom(uint8_t address, uint8_t quantity, bool sendStop) { return requestFrom(address, quantity, (uint8_t)(sendStop ...
  3. Z

    The maximum bytes that I2C can write or read on teensy 4.1

    Sorry for late reply. I changed code according to "When you edit BUFFER_LENGTH also edit rxBufferIndex, rxBufferLength, txBufferIndex, txBufferLength. They're in WireIMXRT.h starting at line 171. These are currently uint8_t. If you make the buffer larger than 255, they will need to become...
  4. Z

    The maximum bytes that I2C can write or read on teensy 4.1

    Thanks. Performing 8 writes of 120 bytes is a good idea for me. But I need to implement the requirement proposed by the customer. Is it possible to perform a write of 120 bytes then call Wire.endTransmission(false), loop 8 times, at last call Wire.endTransmission(true)? The purpose of...
  5. Z

    The maximum bytes that I2C can write or read on teensy 4.1

    Camera has chip. To make the camera work, it is necessary to configure the chip on the camera. About three thousand registers are required to be configured. These registers are from open-source code of the camera driver.
  6. Z

    The maximum bytes that I2C can write or read on teensy 4.1

    Write camera registers, and read camera registers to debug. Writing about three thousand registers is required to let the camera work. There are approximately 1000 registers with consecutive addresses
  7. Z

    The maximum bytes that I2C can write or read on teensy 4.1

    Do you know the maximum bytes that I2C can write or read on teensy 4.1 by Wire.write(data, length) or Wire.requestFrom(address, quantity) ? I want to write 1024 bytes or read 256 bytes in a I2C transmission. Do you know how to do?
Back
Top