8.2.0 • Published 9 months ago
@mchp-mcc/scf-avr8-twi-v1 v8.2.0
Two Wire Interface (TWI) Module
Overview
The Two Wire Interface (TWI) module is a serial interface useful for communicating with other peripheral or microcontroller devices. These peripheral devices may be serial EEPROMs, shift registers, display drivers, Analog-to-Digital (A/D) converters, Temperature and Humidity sensors, and so on.
Features
- The TWI interface supports the following operating modes
- Host mode
- Client mode
- The driver implementation is of non-blocking type and can be configured to operate in following modes
- Polling
- Interrupt
Related Documentation
Changelog
All notable changes to this project will be documented in this file.
8.2.0 - 2025-03-20
Bug Fixes
- M8PD-14644 :- Updated the client address and mask fields on TWI Peripheral Library V1 UI to have validators to filter incorrect values
- M8PD-14198 :- Corrected the error type assignment in ErrorEventHandler API in the TWI Peripheral Library V1 client driver firmware
- M8PD-13251 :- Updated the TWI Peripheral Library V1 driver to release the unused SDA and SCL pins
New Features and Improvements
- M8PD-14052 :- Updated the TWI Peripheral Library V1 MCC module to generate interface structure only when entry point is abstract driver
- M8PD-12101 :- Updated the TWI Peripheral Library V1 to have editable register user interface
- M8PD-6104 :- Updated the API documentation for TWI Peripheral Library V1
- M8PD-5936 :- Updated the TWI Peripheral Library V1 host driver firmware to remove unnecessary static APIs
8.1.6 - 2024-12-18
Bug Fixes
- M8PD-12294 :- Fixed the TWI PLIB to configure the SDA and SCL pins as input by default
- M8PD-11758 :- Fixed TWI driver code to prevent bus lock up due to bus collisions on a TWI bus with multiple clients
- M8PD-10836 :- Fixed I2C client driver to check for RXACK flag before calling TX_READY or RX_READY event
- M8PD-10431 :- Simplified TWI client ISR logic
- M8PD-10408 :- Fixed the logic that checks if the I2C bus is in busy state
- M8PD-5225 :- Corrected the faulty logic in the I2C client that triggered the TX_READY event right after an address match
- M8PD-5206 :- Fixed bug in TWI melody driver for AVR128DB48 that wrongly enables TWI module in Deinitialize function
New Features and Improvements
- M8PD-11225 :- Added toggle button on MCC melody UI to enable general call address recognition for I2C Clients
8.1.5 - 2024-09-27
Bug Fixes
- M8PD-10703 :- Unit test stage on CICD pipeline and locally passed when the coverage for the module files was lesser than the threshold
- M8PD-9373 :- Included stddef.h header in the interface files of the I2C/TWI Host and client for successful compilation
- M8PD-8902 :- Fixed I2C drivers to avoid incorrect occurrence of TX_READY state prior to the ACK reception for the address match
- M8PD-8843 :- Fixed I2C drivers to enable clock stretching for ack, address or data reception
- M8PD-6056 :- Fixed the incorrect I2C Client Address initialization
- M8PD-6055 :- Fixed I2C Client SDA and SCL pin configuration to be (high impedance) input/output pins
New Features and Improvements
- M8PD-7530 :- Fixed MISRA violations for I2C/TWI firmware
- M8PD-6082 :- Updated AVR TWI UI to include configurations required for I2C support for MDFU Client