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

    Enabling New Space Missions: Commercial Space Screening Approach for Agile, High-Reliability Payloads

    As the Space market evolves and accelerates, mission designers need space-capable electronics that balance performance, reliability, and affordability...

    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
    • Other Products Library
    • Precision Technology Signal Chains Library
    • Software Modules and SDKs Library
    • Supervisory Circuits Library
    • Wireless Sensor Networks Library

    Latest Webinars

    • Enabling New Space Missions: Commercial Space Screening Approach for Agile, High-Reliability Payloads
    • Understanding and Selecting RF Low Noise Amplifiers for Instrumentation, Phased Array and General Purpose Applications
    • 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
    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: Mature, Not Old! The Longevity of 4 – 20 mA New...

    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

    Charting Calm Seas: Tips for Robust RS-485 Data Transmission

    by Bryson Barney As our world becomes ever more dependent on flawless digital communication, engineers need to find new ways of charting calm seas when...

     

    Unpacking IEC 61508: Low Complexity versus Type A Made Simple

    IEC 61508 appears to include two very similar concepts. Type A and simple, which is referred to as “low complexity”. Anything that isn’t low complexity...

    Latest Blogs

    • Taming the AI Power Storm: Part 2 of 3
    • TIA Me Up, But Keep It Stable: Part 2 of 3
    • Celebrating Innovation: Top 3 EngineerZone Spotlight Blogs from 2025
    • Transforming Power: Transfer Techniques in SMPS: Part 3 of 4
    • Taming the Chaos: Correlated and Uncorrelated Sources in LTspice .NOISE Simulations: Part 3 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
Precision DACs
  • Log In
  • User
  • Site
  • Search
OR
Ask a Question
Precision DACs
  • Data Converters
Precision DACs
Documents How Does the PEC Function Work in AD536x DACs?
  • Q&A
  • File Uploads
  • FAQs/Docs
  • Members
  • Tags
  • Cancel
  • +Documents
  • +AD3552R: FAQ
  • +AD420: FAQ
  • +AD421: FAQ
  • +AD5024: FAQ
  • +AD5060: FAQ
  • +AD5065: FAQ
  • +AD5115: FAQ
  • +AD5116: FAQ
  • +AD511: FAQ
  • +AD5121: FAQ
  • +AD5141: FAQ
  • +AD5142: FAQ
  • +AD5160: FAQ
  • +AD5161: FAQ
  • +AD5203: FAQ
  • +AD5206: FAQ
  • +AD5222: FAQ
  • +AD5232: FAQ
  • +AD5235: FAQ
  • +AD5243: FAQ
  • +AD5245: FAQ
  • +AD5248: FAQ
  • +AD524: FAQ
  • +AD5251: FAQ
  • +AD5252: FAQ
  • +AD5254: FAQ
  • +AD5258: FAQ
  • +AD5259: FAQ
  • +AD5263: FAQ
  • +AD5270: FAQ
  • +AD5271: FAQ
  • +AD5272: FAQ
  • +AD527x: FAQ
  • +AD5290: FAQ
  • +AD5292: FAQ
  • +AD5293: FAQ
  • +AD5301: FAQ
  • +AD5318: FAQ
  • +AD5321: FAQ
  • +AD5323: FAQ
  • +AD5325: FAQ
  • +AD5331: FAQ
  • +AD5338: FAQ
  • +AD53500: FAQ
  • +AD5363: FAQ
  • -AD536x: FAQ
    • AD536: Using a potential divider
    • Selecting A Reference for the AD536x and AD537x DACs
    • How Does the PEC Function Work in AD536x DACs?
    • Selecting An Output Range for the AD536x and AD537x DACs
    • Using the Offset Register in AD536x and AD537x DACs
    • X1A and X1B Registers in the AD536x and AD537x DACs
    • AD536x and AD537x: FAQs
  • +AD5370: FAQ
  • +AD5383: FAQ
  • +AD5384: FAQ
  • +AD5405: FAQ
  • +AD5412: FAQ
  • +AD5413: FAQ
  • +AD5420: FAQ
  • +AD5421: FAQ
  • +AD5422: FAQ
  • +AD5429: FAQ
  • +AD5439: FAQ
  • +AD5440: FAQ
  • +AD5443: FAQ
  • +AD5446: FAQ
  • +AD5449: FAQ
  • +AD548B: FAQ
  • +AD549: FAQ
  • +AD5522: FAQ
  • +AD5544: FAQ
  • AD5546: FAQ
  • +AD5553: FAQ
  • +AD5554: FAQ
  • +AD5556: FAQ
  • +AD557: FAQ
  • +AD5592R: FAQ
  • +AD5593R: FAQ
  • +AD5623R: FAQ
  • +AD5627: FAQ
  • +AD5640: FAQ
  • +AD565A: FAQ
  • +AD5660: FAQ
  • +AD5662: FAQ
  • +AD5664: FAQ
  • +AD5668: FAQ
  • +AD5669R: FAQ
  • +AD5696R: FAQ
  • +AD5700: FAQ
  • +AD5722R: FAQ
  • +AD5724: FAQ
  • +AD574: FAQ
  • +AD5750: FAQ
  • +AD5755: FAQ
  • +AD5761: FAQ
  • +AD5764: FAQ
  • +AD5780: FAQ
  • +AD5791: FAQ
  • ad667: FAQ
  • +AD674: FAQ
  • +AD688: FAQ
  • +AD693: FAQ
  • +AD694: FAQ
  • +AD698: FAQ
  • +AD8403: FAQ
  • +AD8842: FAQ
  • +AD9913: FAQ
  • +ADG506ATE: FAQ
  • +DAC Communication Troubleshooting: FAQ
  • +DAC Daisy Chain: FAQ
  • +DAC Power-up sequence and Biasing: FAQ
  • +DAC SPI: FAQ
  • +DAC8800: FAQ
  • +GENERAL: FAQ
  • +nanoDAC+: FAQ
  • +Precision Technology Learning Modules
  • +AD667: supply voltage
  • +AD1139: FAQ
  • +AD5535B: FAQ
  • +AD5625: FAQ
  • AD5627R: FAQ
  • +AD5667R: FAQ
  • +AD5671R: FAQ
  • +AD5675: FAQ
  • +AD5684R: FAQ
  • +AD5754: FAQ
  • +AD5755-1: FAQ
  • +AD664: FAQ
  • +AD7305: FAQ
  • +AD7398: FAQ
  • +AD7541A: FAQ
  • +AD7547: FAQ
  • +AD7568: FAQ
  • +AD7805: FAQ
  • +AD7808: FAQ
  • +AD7809: FAQ
  • +AD7835: FAQ
  • +ADN8810: FAQ
  • +DAC08: FAQ
  • +DS4404K: FAQ
  • +DS4422N+: FAQ
  • +DS4424N+: FAQ
  • +General Digipot FAQs
  • +LTC2662: FAQ
  • LTC2672-16 FAQ
  • +LTC2688: FAQ
  • MAX11300: FAQ
  • +MAX11300EVKIT#: FAQ
  • +MAX11300GCM+: FAQ
  • +MAX11300GTL+: FAQ
  • +MAX11300PMB1#: FAQ
  • +MAX11301: FAQ
  • MAX11311GTJ+: FAQ
  • +MAX11311GTJ+T: FAQ
  • +MAX5054BATA+: FAQ
  • +MAX5100BEUP: FAQ
  • MAX5113: FAQ
  • +MAX5113GTJ+: FAQ
  • +MAX5116: FAQ
  • +MAX5141: FAQ
  • MAX5214: FAQ
  • +MAX5214GUA+: FAQ
  • +MAX5215GUA+T: FAQ
  • +MAX5216: FAQ
  • +MAX5217: FAQ
  • +MAX5235AEUB+: FAQ
  • +MAX5259EEE+: FAQ
  • +MAX526CCNG+: FAQ
  • +MAX528CAG+: FAQ
  • +MAX5304: FAQ
  • +MAX5322: FAQ
  • +MAX543: FAQ
  • +MAX5525ETC+: FAQ
  • +MAX5533: FAQ
  • +MAX5541: FAQ
  • +MAX5550: FAQ
  • +MAX5705: FAQ
  • +MAX5715AAUD+: FAQ
  • MAX5719: FAQ
  • +MAX5719AGSD+: FAQ
  • +MAX5725AWP+: FAQ
  • MAX5774: FAQ
  • +MAX5774UCB+D: FAQ
  • +MAX5802BATB+T: FAQ

How Does the PEC Function Work in AD536x DACs?

Q.

How Does the PEC Function Work in AD536x DACs?

--------------------------------------------------------------------

A.

The AD536x parts have a Packet Error Check function (PEC) which indicates to the user that the serial write was accepted as valid by the AD536x. To use the PEC function the user must calculate an 8 bit checksum based on the 24 bit value being sent to the AD536x. The 24 bit value and 8 bit checksum are sent to the AD536x as a 32 bit write operation (see the data sheet for the timing diagram). If either the 24 bit value or the checksum are corrupted during the write operation the AD536x will detect this and the PEC pin will go low. The user must read from the control register to bring the PEC pin high again. The user can then retransmit the 32 bit frame.

The PEC checksum is calculated using the polynomial C(x) = x8 + x2 + x1 + 1. This corresponds to a binary word of 0b100000111. To calculate the checksum the MSB of the polynomial should be aligned to the first MSB of the 24 bit value which is a 1. An XOR operation is carried out. This will have the effect of changing the MSB to a zero and reducing the length of the 24 bit value. The polynomial is then realigned with the next most significant ‘1’ and the XOR operation repeated. This function is repeated, each time reducing the number of bits in the answer. The final time will produce an 8 bit answer which is the checksum. See the ‘crc8 calculator.xls’ file for examples.

General Information:

This document covers the denseDAC family. AD536x refers to the AD5360, AD5361, AD5362 and AD5363 eight and 16 channel DACs.

  • ad5360
  • ad5362
  • ad5363
  • ad5361
  • Share
  • History
  • More
  • Cancel
Related
Recommended
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