Locale Icon
English
  • Forums

    Popular Forums

    • LTspice
    • Video
    • Power Management
    • RF & Microwave
    • Precision ADCs
    • FPGA Reference Designs

    Product Forums

    • Amplifiers
    • Clocks & Timers
    • Data Converters
    • Direct Digital Synthesis (DDS)
    • Energy
    • Interface and Isolation
    • MEMS Inertial Sensors
    • Power Management
    • Processors & DSP
    • Processors & Microcontrollers
    • Switches & Multiplexers
    • Sensors
    • Voltage References
    View All

    Application Forums

    • A2B Audio Bus
    • Audio
    • Automated Test Equipment (ATE)
    • Condition-Based Monitoring
    • Depth, Perception & Ranging Technologies
    • Embedded Vision Sensing Library
    • Motor Control Hardware Platforms
    • Precision Technology Signal Chains Library
    • Video
    • Wireless Sensor Networks Reference Library

    Design Center Forums

    • ACE Evaluation Software
    • ADEF System Platforms
    • Design Tools & Calculators
    • FPGA Reference Designs
    • Linux Software Drivers
    • Microcontroller no-OS Drivers
    • Power Studio Designer
    • Power Studio Planner
    • Reference Designs
    • Robot Operating System (ROS) SDK
    • Signal Chain Power (SCP)
    • Software Interface Tools
    • System Demonstration Platform (SDP) Support
  • Learn

    Highlighted Webinar

    Power Management Fundamentals II Session 5: Deeper Look into Power Protection

    When is the best time to discover your power circuit needs protection? Let's explore the use of some input protection and control options like ideal diodes...

    Places

    • ADI Academy
    • ADI Webinars
    • Video Annex
    • Virtual Classroom

    Libraries

    • 3D ToF Depth Sensing Library
    • Continuous-Wave CMOS Time of Flight (TOF) Library
    • Embedded Vision Sensing Library
    • Gigabit Multimedia Serial Link (GMSL) Library
    • Optical Sensing Library
    • Precision Technology Signal Chains Library
    • Software Modules and SDKs Library
    • Supervisory Circuits Library
    • Wireless Sensor Networks Library

    Latest Webinars

    • Design Smarter with Compact, Low-Power Precision Current Source Signal Chains
    • Power Management Fundamentals II Session 6: Key Layout Considerations for Power
    • A 16T/16R X-Band Direct Sampling Phased Array Subsystem using Apollo MxFE
    • Power Management Fundamentals II Session 5: Deeper Look into Power Protection
    • Power Management Fundamentals II Session 4: Isolated Converters Explained
    View All Webinars
  • Community Hub

    Challenge Yourself!

      KCC's Quizzes AQQ296 about repairing an equation in a digital display

      1. Quote of this month: " When I die, I want to die like my grandfather who died peacefully in his sleep. Not screaming like all the passengers in his...

    View All

    What's Brewing

      Read a Blog, Take this Quiz for Another Chance to Win a Gift Card!

      Important: Read the blog first . The quiz questions are all based on the content from the blog: Too Much Chatter and Not Enough Talk - Learn the Benefits...

    View All

    Places

    • Community Help
    • Analog Dialogue Quiz
    • Logic Lounge
    • Super User Program

    Resources

    • EZ Code of Conduct
    • EZ How To Help Articles
    • Getting Started Guide
    • ADI: Words Matter
    • Community Help Videos
    View All
  • Blogs

    Highlighted Blogs

    Achieving Power Over Data with RS-485 Transceivers

    By Bryson Barney What if a single wire could carry both energy and information seamlessly—without either getting in the way? The future of connectivity...

     

    ​​Functional Safety: A Driver of “Shift Left”​

    By Richard Obrien The key to faster, safer product development is to start smart - not catch up hard. In this blog, we’ll explore how the "Shift Left...

    Latest Blogs

    • The 5 Advantages of Hardware Fault Tolerance
    • The Power Problem Inside Every AI Breakthrough: Part 1 of 3
    • Simplifying Stability with EVAL-KW4503Z: Part 1 of 3
    • Energy Transfer Considerations in Isolated SMPS: Part 2 of 4
    • Automating LTspice .NOISE Measurements with .STEP and .MEAS Directives: Part 2 of 3
    Read All Blogs

    ADI Blogs

    • EZ Spotlight
    • The Engineering Mind
  • ContentZone

    Visit ContentZone

    ContentZone

    Technical articles. Blogs. Videos. Your ADI content, all in one place.

    View ContentZone

    Featured Content

    Featured Content Title

    Blurb About Content

    View Content By Industry

    • Aerospace and Defense Systems
    • Automotive Solutions
    • Consumer Technology Solutions
    • Data Center Solutions
    • Energy Solutions
    • Healthcare Solutions
    • Industrial Automation Technology Solutions
    • Instrumentation and Measurement Solutions
    • Intelligent Building Solutions
    • Wireless Communication Solutions

    View Content By Technology

    • A2B Audio Bus
    • ADI OtoSense Predictive Maintenance Solutions
    • Dynamic Speaker Management
    • Gallium Nitride (GaN) Technology
    • Gigabit Multimedia Serial Link (GMSL)
    • Industrial Vision
    • Power Solutions
    • Precision Technology
    • RF
    • Sensor Interfaces
    • SmartMesh
EngineerZone
EngineerZone
Processors & DSP
  • Log In
  • User
  • Site
  • Search
OR
Ask a Question
Processors & DSP
Processors & DSP
Documents How do I validate TWI on my newly designed board based on ADSP-SC58x/ADSP-2158x processors?
  • Forums
  • FAQs/Docs
  • Members
  • Tags
  • Cancel
  • +Documents
  • +ADAU 1701: FAQ
  • +ADSP-21160M: FAQ
  • +ADSP-21363: FAQ
  • +ADSP-21368: FAQ
  • +ADSP-21369: FAQ
  • +ADSP-21469: FAQ
  • +ADSP-21489: FAQ
  • +ADSP-2160: FAQ
  • +ADSP-BF522: FAQ
  • +ADSP-BF531: FAQ
  • +ADSP-BF532: FAQ
  • +adsp-bf533: FAQ
  • +ADSP-BF534: FAQ
  • +ADSP-BF535: FAQ
  • +ADSP-BF536: FAQ
  • +ADSP-BF537: FAQ
  • +ADSP-BF538F: FAQ
  • +ADSP-BF539: FAQ
  • +ADSP-BF542: FAQ
  • +ADSP-BF544: FAQ
  • +ADSP-BF561: FAQ
  • +adsp-bf561: FAQS
  • +adsp-bf609: FAQS
  • +ADSP-BF60x: FAQ
  • +ADSP-BF70x: FAQ
  • +ADSP-CM408F: FAQ
  • -ADSP-SC58x: FAQ
    • How do I validate SPI on my newly designed board based on ADSP-SC58x/ADSP-2158x processors?
    • How do I validate the SPORT on my newly designed board based on ADSP-SC58x/ADSP-2158x processors?
    • How do I validate the UART on my newly designed board based on ADSP-SC58x/ADSP-2158x processors?
    • How do I validate TWI on my newly designed board based on ADSP-SC58x/ADSP-2158x processors?
  • +ADSP-TS001: FAQ
  • +ADSP-TS101S: FAQ
  • +ADSP-TS201S: FAQ
  • +CCES: FAQ
  • +cm40x: FAQ
  • +Command-line device programmer (cldp): FAQS
  • +Compiler: FAQ
  • +Connected Devices Virtual Conference: FAQS
  • +Disassembly Window: FAQ
  • +Enabling Product-Specific Push Notifications: FAQS
  • +ICE-1000: FAQ
  • +JEDEC J-STD-020: FAQ
  • +Misra rule checking: FAQ
  • +Nesting Interrupt: FAQ
  • +Power Domains: FAQ
  • +PROCESSORS AND DSP SUPPORT COMMUNITY: FAQS
  • +Questions 536 / VDK: FAQS
  • +RoHS-Compliant: FAQ
  • +Updating ICE-1000/2000 firmware with OpenOCD: FAQ
  • +VDSP-BLKFN-PC-FULL: FAQ
  • +VDSP-TS-PC-FULL: FAQ
  • +VDSP: FAQ
  • +VISUALAUDIO: FAQ

How do I validate TWI on my newly designed board based on ADSP-SC58x/ADSP-2158x processors?

The attached code can be used as a reference to test TWI connections on newly designed board with ADSP SC58x/ ADSP-2158x processors.

The code does the following:

  • This code intends to test data transfer between the two TWI modules.
  • The TWI is configured in fast mode of operation with one TWI as the master transmitter and the other TWI as the slave receiver.
  • The code tests for two types of data patterns:
    • Fixed data pattern as 0xAA: This is to check whether the TWI transmit data comes out well.
    • Incremental data: This is to make sure that the transmitted data is received properly when it is received by the TWI configured as the slave receiver.
  • Appropriate connections should be made externally based on the Tx and Rx choice. For example, if TWI0 is configured as the master transmitter while TWI1 is configured as the slave receiver. In this case, the connections need to be made as follows:
    • TWI0_SCL <--> TWI1_SCL
    • TWI0_SDA <--> TWI1_SDA

How to modify the code for customized system requirements:

  • The existing code uses TWI0 is configured as the master transmitter while TWI1 is configured as the slave receiver.
  • The TWI configuration can be modified to any other combination of TWIs.

How to test that the code works?

  • To make sure that the TWI signals are coming out on the pins as expected, probe the TWI master clock pins. To make sure that a known data (e.g. 0xAA as byte of the frame in this case) is transferred for easy probing, use the definition “Fixed_data”(See screenshot below).
  • For the easy probing of the signals, the SCCB compatible operation has been enabled for TWI and the data transfer counter has been disabled.

The below screenshot shows how the TWI signals should look like

  • For a quick sanity check that the TWI slave receiver is able to receive the data as expected, one can look at compare the transmit and receive data (in incremental data format) by looking at the CCES memory window as shown in the screenshot below:

Attachments:
TWI_Sample_Core1.zip
Tags: adsp-sc58x
  • Share
  • History
  • More
  • Cancel
analog-devices logo

About Analog Devices

  • Who We Are
  • Careers
  • Newsroom
  • What We Do (Signals+)
  • Investor RelationsExternalLink
  • Quality & Reliability
  • Sales and Distribution
  • What's New on Analog.com
  • Contact Us

Find Help

  • Support
  • Resources
  • WikiExternalLink
  • Analog Dialogue
  • ADI Developer PortalExternalLink

myAnalog

Interested in the latest news and articles about ADI products, design tools, training, and events?

Go to myAnalog
  • Instagram page
  • Twitter page
  • Linkedin page
  • Youtube page
  • Facebook
  • Legal and Risk
  • Accessibility
  • Privacy Policy
  • Privacy Settings
  • Cookie Settings

©2026 Analog Devices, Inc. All Rights Reserved

analog-devices

About Analog Devices

Down Up
  • Who We Are
  • Careers
  • Newsroom
  • What We Do (Signals+)
  • Investor RelationsExternalLink
  • Quality & Reliability
  • Sales and Distribution
  • What's New on Analog.com
  • Contact Us

Find Help

Down Up
  • Support
  • Resources
  • WikiExternalLink
  • Analog Dialogue
  • ADI Developer PortalExternalLink

myAnalog

Interested in the latest news and articles about ADI products, design tools, training, and events?

Go to myAnalog
Instagram page Facebook Twitter page Linkedin page Youtube page
  • Legal and Risk
  • Accessibility
  • Privacy Policy
  • Privacy Settings
  • Cookie Settings

©2026 Analog Devices, Inc. All Rights Reserved