Analog.com Analog Dialogue Wiki English 简体中文 日本語
EngineerZone
EngineerZone
  • Log In
  • Site
  • Search
  • User
  • Forums

    Popular Forums

    • RF and Microwave
    • Power Management
    • Video
    • FPGA Reference Designs
    • Precision ADCs
    • Linux Software Drivers
    • SigmaDSP Processors & SigmaStudio Dev. Tool

    Product Forums

    • A2B
    • Amplifiers
    • Analog Microcontrollers
    • Clock and Timing
    • Data Converters
    • Direct Digital Synthesis (DDS)
    • Energy Monitoring and Metering
    • Interface and Isolation
    • MEMS Inertial Sensors
    • Processors and DSP
    • Switches/Multiplexers
    • Temperature Sensors
    • Voltage References
    View All

    Application Forums

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

    Design Center Forums

    • ACE Evaluation Software
    • ADEF System Platforms
    • Design Tools and Calculators
    • FPGA Reference Designs
    • Linux Software Drivers
    • Microcontroller no-OS Drivers
    • Reference Designs
    • Signal Chain Power (SCP)
    • Software Interface Tools
    • System Demonstration Platform (SDP) Support
  • Learn

    Highlighted Webinar

    Maximize the Benefits of High Bandwidth Current Sense Amplifiers for Space Constrained Applications

    Recent Discussions

    • Pluto is not receiving data
    • ADALM-pluto sampling frequency
    • ADALM PLUTO SDR
    • Bad FIT image format and MSD mounting errors in firmware built for Sidekiq Z2
    • set the sample rate to 30MHz or the maximum that usb2.0 allows

    Places

    • ADI Education Home
    • ADI Webinars
    • StudentZone (Analog Dialogue)
    • Video Annex
    • Virtual Classroom

    Latest Webinars

    • Maximize the Benefits of High Bandwidth Current Sense Amplifiers for Space Constrained Applications
    • Design Efficient Power Solutions for Battery-powered Applications
    • Shunt-based Energy Metering in High-Power Applications
    • Isolating GigaSpeed: Unlocking Data Integrity for USB and HDMI Communication
    • Extend Battery Life and Maximize Performance - Let Supervisors Do The Work
    View All Webinars
  • Community Hub

    Challenge Yourself!

      KCC's Quizzes AQQ245 on Fossil Dating with Carbon14
    View All

    Places

    • Community Help
    • Logic Lounge
    • The Weekly Brew

    Resources

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

    Highlighted Blogs

    Join the Analog Devices IEEE Radar Challenge

     

    Seeing is Believing but Smart Surveillance Cameras Let You Speak and Listen Too!

    Latest Blogs

    • We are Celebrating a Milestone on EngineerZone: Meet Our 100K Member!
    • How to Raise the Resolution of an Optical Motor Encoder without Changing the Disk
    • The Changing Nature of Logistics and Retail Automation
    • Variable Speed Drive 101
    • How to Optimize Voltage Regulators for Powering an Audio Amplifier
    Read All Blogs

    ADI Blogs

    • EZ Spotlight
    • The Engineering Mind
  • Partners

    Electronic Design Services - PartnerZone

    • Boston Engineering
    • Calian, Advanced Technologies
    • Colorado Engineering Inc. (DBA CAES AT&E)
    • Clockworks Signal Processing
    • Epiq Solutions
    • Fidus
    • PalmSens
    • Richardson RFPD
    • Tri-Star Design, Inc.
    • VadaTech
    • Vanteon
    • X-Microwave
    View All
8052 Core Products
  • Analog Microcontrollers
8052 Core Products
Documents ADUC847: Detecting the stop condition in slave mode
  • Q&A
  • Docs/FAQs
  • Members
  • Tags
  • More
  • Cancel
  • Documents
  • +ADuC812: FAQ
  • +ADUC814: FAQ
  • +ADUC816: FAQ
  • +ADUC824: FAQ
  • +ADuC831: FAQ
  • +ADUC832: FAQ
  • +ADUC834: FAQ
  • +ADuC836: FAQ
  • +ADuC83x: FAQ
  • +ADUC841: FAQ
  • +ADuC842: FAQ
  • +ADUC845: FAQ
  • -ADuC847: FAQ
    • ADuC847: Crystal start up
    • ADUC847: Detecting the stop condition in slave mode
    • ADUC847 External reference voltage range
    • ADuC847: Noise perfomance
    • ADuC847: Using aspire in debug run mode
    • Recommended programming socket for ADuC847
    • I tested ADuC847 Burnout current to detect the short/open circuit. But it doesn't work
    • Model on Eval board - flash and supply - EVAL-ADuC847
    • What is the maximum Source current, that port P2.5 and P2.6 can deliver?
  • +ADUC848: FAQ
  • +ADuC84x: FAQ
  • +ADUC8xx: FAQ
  • +ADUCXX: FAQ

ADUC847: Detecting the stop condition in slave mode

Q 

I need technical informations about Analogue Device ADuc847

I want to use it in I2C hardware slave mode

Is it possible to detect I2C Stop sequence in software ?

The problem is when the master abort the communication sequence before the
normal end The slave couldn't detect de stop sequence in software point of view

 

A 

There is no register or indicator on the ADUC847 that you can read to tell that
the I2C interface has received a valid stop condition 

Note that the ADuc841/2 has a Stop detection(see p48 of datasheet, BIT7),
although the ADC is much different to the ADuc845.

Here are some notes that may help;


STOP CONDITION:

The I2CI interrupt bit (Bit 0) is set by the user every time the byte is
transmitted or received.

Bits I2CTX2 (Bit 2) will indicate whether the Micro-controller is transmitting
or receiving. I2CTX=0, means that the micro-controller is receiving.

From these 2 bits, we have the following: once the I2CTX = 0 ( receiving ) and
once the I2CI =1, then the byte has been received, the user can read the data
and the interrupt is cleared.

The interrupts will continue to occur while the data is being received. And
will continue to be cleared while the user reads the data. Once the user reads
the data and no interrupt occurs, then a STOP Condition has occurred. ( Timeout
will be required here, I’m not too sure how long ).

The only issue is that there is no guarantee that the last data byte is valid.
You will have to make that verification with software also. So care will be
needed.

From this also, the interface return to an IDLE state. So you are now sure what
state the controller is in.

  • aduc8xx
  • aduc8x
  • aduc847
  • Share
  • History
  • More
  • Cancel
Related
Recommended
Social
Quick Links
  • About ADI
  • ADI Signals+
  • Analog Dialogue
  • Careers
  • Contact us
  • Investor Relations
  • News Room
  • Quality & Reliability
  • Sales & Distribution
  • Incubators
Languages
  • English
  • 简体中文
  • 日本語
myAnalog

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

Go to myAnalog
Analog Logo
©1995 - 2023 Analog Devices, Inc. All Rights Reserved
沪ICP备09046653号-1
  • Sitemap
  • Legal
  • Privacy & Security
  • Privacy Settings
  • Cookie Settings