Locale Icon
English
EngineerZone
EngineerZone
Precision Microcontrollers
  • Log In
  • User
  • Site
  • Search
OR
Ask a Question
  • 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
    • Precision Studio
    • Power Studio Designer
    • Power Studio Planner
    • Reference Designs
    • Robot Operating System (ROS) SDK
    • Signal Chain Designer
    • Software Interface Tools
  • Learn

    Highlighted Webinar

    Fast-Track Certification: Leveraging IC Safety App Notes for Functional Safety Designs

    Stop guessing, start certifying. Learn how to use IC safety application notes to streamline your FMEDA and meet IEC 61508 and ISO 13849 standards with...

    Places

    • ADI Academy
    • ADI Webinars
    • EZ Blogs
    • 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
  • Community Hub

    Challenge Yourself!

      New KCC Quiz AQQ299 about Opamp Open Loop Gain and LTspice

      A kind proposal from Al Butvidas 1. Quote of the month: " A good friend calls you in jail. A great friend bails you out of jail. Your best friend sits...

    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: The Power Problem Inside Every AI Breakthrough Everyone...

    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
  • ContentZone

    Visit ContentZone

    Search content by industry or technology.
    • Blogs
    • Technical Articles
    • Tutorials
    • Videos
    • Webinars
    Your ADI content all in one place.
    View ContentZone

    The Latest Read

    Master FPGA-Based DSP Design: The Complete Building Blocks Guide You Need to Read

    The Engineering Mind Blog on EngineerZone presents an exceptional five-part series titled " DSP Building Blocks " that walks engineers through the essential...

    New Release

    Signal Chain Designer: DC Error Simulation
    Signal Chain Designer: DC Error Simulation

    This video covers the DC error calculation capabilities of Signal Chain Designer. DC error is unique in that often requires calibration and has so many...

    Recent Technical Insights

    Latest Technical Article from Analog.com
    PSM Integration for Enhanced Module Solutions in 48 V Data Centers

    The integration of the LTC2971 into quarter brick solutions for 48 V data centers enhances monitoring, control, and reliability by providing high precision...

Precision Microcontrollers
  • Processors & Microcontrollers
Precision Microcontrollers
Documents Example for parity checking on ADuCM361
  • Q&A
  • Docs/FAQs
  • File Uploads
  • Members
  • Tags
  • Cancel
  • +Documents
  • +ADuCM Cortex-M3: FAQ
  • +ADuCM310 FAQ:
  • +Aducm320: FAQ
  • +ADuCM350: FAQ
  • +ADuCM355: FAQ
  • +ADuCM360: FAQ
  • -ADuCM361: FAQ
    • Example for parity checking on ADuCM361
    • ADuCM361 serial download mode
  • +ADuCM362 FAQ:
  • +ADuCRF101: FAQ
  • +Bio-Impedance & ECG Measurement Solution: FAQ
  • +CN0300: FAQ
  • +Continuously Amperometric Measurement: FAQ
  • Do we need new Maxim supplied algorithms for the MAX32664, as I assume that the ones provided for the MAXREFDES101 do not support SpO2?
  • +EVAL-ADUCRF101MKxZ FAQ:
  • +MAX32663A: FAQ
  • MAX32664-A HRM & SPO2 FIRMWARE V10.0.0: FAQ
  • +MAX32664GTGA+: FAQ
  • +MAX32664GTGC+: FAQ
  • +MAX32664GTGZ+: FAQ
  • +MAX32664GWEA+: FAQ
  • +MAX32664GWEB+: FAQ
  • +MAX32664GWEC+: FAQ
  • +MAX32664GWED+T: FAQ
  • +MAX32674C: FAQ

Example for parity checking on ADuCM361

Q 

I would like to ask you if you have any example for parity checking? I have a
bit problem with following code:
 
...
ucCOMIID0 = UrtIntSta(pADI_UART);
if ((ucCOMIID0 & 0x4) == 0x4)
{  
ucCOMLSR = UrtLinSta(pADI_UART);
if((ucCOMLSR & COMLSR_PE) != COMLSR_PE)
{  
.....
}  
}
...
 
Code is placed in the UART interrupt and does receive bytes correctly, but
parity check (second if) seems to be ignored even I have uart set up like
following:
UrtCfg(pADI_UART,B1200, COMLCR_WLS_7BITS,COMLCR_PEN_EN | COMLCR_EPS_EN);
 
1.Please be so kind and send me example of using parity checking.
2.Please also send me the initialization routine.

 

A 

1.Normally we test the UART using the PC. What we do to trigger the parity
check is to set up the PC with odd parity and the ADuCM360 with even parity (or
the other way around).
Then, if a character is sent from the PC we hit a breakpoint in the interrupt
handler where we check for a parity error. We will always hit the breakpoint if
the PC is configured with the other parity.

This is the interrupt handler I have that works:

Uart handler
{             
      ucCOMSTA0 = UrtLinSta(pADI_UART);
      ucCOMIID0 = UrtIntSta(pADI_UART);
      if ((ucCOMIID0 & 0x2) == 0x2)                         // Transmit buffer
empty
       {
                  ucTxBufferEmpty = 1;
       }      
      if ((ucCOMIID0 & 0x4) == 0x4)                         // Receive byte
       {
                ucComRx            = UrtRx(pADI_UART);
       }
       if ( (ucCOMSTA0& COMLSR_PE) == COMLSR_PE

       {
Breakpoint here.
//enters if statement if parity is incorrect

          ucCOMSTA0++;
          ucCOMSTA0--;
       }
}

2.We used the initialization code as you mentioned in your message :

UrtCfg(pADI_UART,B1200, COMLCR_WLS_7BITS,COMLCR_PEN_EN | COMLCR_EPS_EN);

The rest of it, such as interrupt configuration, GPIO settings etc, is exactly
the same as the project on the CD/ftp.

Tags: aduc cortex m3 aducm361
  • 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