[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"doc-seo-696694-105":3,"detail-sidebar-cat-0-en-105":80,"doc-detail-696694-en":130,"doc-similar-696694":162},{"code":4,"msg":5,"data":6},0,"ok",{"site_id":7,"language":8,"slug":9,"title":10,"keywords":11,"description":12,"schema_data":13,"social_meta":73,"head_meta":75,"extra_data":77,"updated_unix":79},105,"en","mplab-harmony-compatibility-guide-objective-and-overview-modularity-flexibility-testing-documentation","MPLAB Harmony Compatibility Guide - Objective and Overview - Modularity, Flexibility, Testing, Documentation","","MPLAB Harmony Compatibility Guide defines how to make software libraries compatible with the MPLAB Harmony integrated software framework. The guide provides design, implementation, and porting guidelines covering modularity, flexibility, testing, and documentation support. It explains compatible interoperability rules for libraries, including how modules avoid direct resource access and use provided interfaces. The document also describes MPLAB Harmony’s layered architecture, library types, device drivers, services, PLIB behavior, middleware roles, OSAL usage, and the polled non-blocking execution model.",{"@graph":14,"@context":72},[15,34,55],{"@type":16,"itemListElement":17},"BreadcrumbList",[18,23,27,31],{"item":19,"name":20,"@type":21,"position":22},"https://docshare.wps.com","Home","ListItem",1,{"item":24,"name":25,"@type":21,"position":26},"https://docshare.wps.com/document/","Document",2,{"item":28,"name":29,"@type":21,"position":30},"https://docshare.wps.com/document/technology/","Technology",3,{"item":32,"name":10,"@type":21,"position":33},"https://docshare.wps.com/document/mplab-harmony-compatibility-guide-objective-and-overview-modularity-flexibility-testing-documentation/696694/",4,{"url":32,"name":10,"@type":35,"image":36,"author":41,"headline":10,"publisher":44,"fileFormat":47,"inLanguage":8,"description":12,"dateModified":48,"datePublished":49,"encodingFormat":47,"isAccessibleForFree":50,"interactionStatistic":51},"DigitalDocument",{"url":37,"@type":38,"width":39,"height":40},"https://docshare.wps.com/thumbnails/mplab-harmony-compatibility-guide-objective-and-overview-modularity-flexibility-testing-documentation/696694.png","ImageObject",300,407,{"name":42,"@type":43},"WPS_1790064749","Person",{"url":19,"name":45,"@type":46},"DocShare","Organization","application/pdf","2026-11-28","2026-11-11",true,{"@type":52,"interactionType":53,"userInteractionCount":33},"InteractionCounter",{"@type":54},"ViewAction",{"@type":56,"mainEntity":57},"FAQPage",[58,64,68],{"name":59,"@type":60,"acceptedAnswer":61},"What is the purpose of the MPLAB Harmony Compatibility Guide?","Question",{"text":62,"@type":63},"It provides design, implementation, and porting guidelines to make software libraries compatible with MPLAB Harmony.","Answer",{"name":65,"@type":60,"acceptedAnswer":66},"What do the modularity guidelines aim to ensure?",{"text":67,"@type":63},"They ensure libraries do not interfere with each other and support compatibility and interoperability across MPLAB Harmony libraries.",{"name":69,"@type":60,"acceptedAnswer":70},"How does MPLAB Harmony handle its basic execution model?",{"text":71,"@type":63},"In basic configuration it uses a polled non-blocking cooperative multi-tasking model within a system-wide “super loop,” where modules can implement state machine functions.","https://schema.org",{"og:url":32,"og:type":74,"og:title":10,"og:site_name":45,"og:description":12},"article",{"robots":76,"canonical":32},"index,follow",{"doc_id":78,"site_id":7},696694,1794434400,{"code":4,"msg":81,"data":82},"success",[83,87,91,95,100,104,109,114,119,122,126],{"id":22,"doc_module":4,"doc_module_name":25,"category_name":84,"show_sort_weight":85,"slug":86},"Story & Novel",90,"story-novel",{"id":26,"doc_module":4,"doc_module_name":25,"category_name":88,"show_sort_weight":89,"slug":90},"Literature",80,"literature",{"id":33,"doc_module":4,"doc_module_name":25,"category_name":92,"show_sort_weight":93,"slug":94},"Exam",70,"exam",{"id":96,"doc_module":4,"doc_module_name":25,"category_name":97,"show_sort_weight":98,"slug":99},5,"Comic",60,"comic",{"id":101,"doc_module":4,"doc_module_name":25,"category_name":29,"show_sort_weight":102,"slug":103},6,50,"technology",{"id":105,"doc_module":4,"doc_module_name":25,"category_name":106,"show_sort_weight":107,"slug":108},7,"Healthcare",40,"healthcare",{"id":110,"doc_module":4,"doc_module_name":25,"category_name":111,"show_sort_weight":112,"slug":113},8,"Research & Report",30,"research-report",{"id":115,"doc_module":4,"doc_module_name":25,"category_name":116,"show_sort_weight":117,"slug":118},9,"Religion & Spirituality",20,"religion-spirituality",{"id":117,"doc_module":4,"doc_module_name":25,"category_name":120,"show_sort_weight":117,"slug":121},"World Cup","world-cup",{"id":123,"doc_module":4,"doc_module_name":25,"category_name":124,"show_sort_weight":123,"slug":125},10,"Lifestyle","lifestyle",{"id":127,"doc_module":4,"doc_module_name":25,"category_name":128,"show_sort_weight":96,"slug":129},19,"General","general",{"code":4,"msg":81,"data":131},{"doc_id":78,"user_id":132,"nickname":42,"user_avatar":133,"doc_module":4,"category_id":101,"category_name":29,"doc_title":10,"doc_description":12,"doc_content":134,"file_id":135,"file_url":136,"file_type":137,"file_size":138,"view_count":33,"is_deleted":4,"is_public":22,"is_downloadable":22,"audit_status":22,"page_count":139,"language":140,"language_code":8,"site_id":7,"html_lang":8,"table_of_contents":141,"faqs":142,"seo_title":143,"seo_description":12,"update_tm":79,"read_time":144,"preview_page_count":33,"preview_urls":145},3985747859154,"https://ap-avatar.wpscdn.com/davatar_276721f389ce27ea32af1340a28f341c","MPLAB® Harmony Help-MPLAB Harmony Compatibility Guide  \nMPLAB Harmony Integrated Software Framework v1 .11  \n© 2013-2017 Microchip Technology Inc. All rights reserved.  \nMPLAB Harmony Compatibility Guide   \nThis section provides information for making software libraries compatible with MPLAB Harmony.  \n1: Objective  \nThe objective of this document is to provide a set of design, implementation, and porting guidelines for making software libraries compatible with MPLAB Harmony.  \nDescription  \nFollowing 2: Overview, MPLAB Harmony compatibility guidelines are broken down into the following primary subsets.  \n• 3: Modularity Guidelines  \n• 4: Flexibility Guidelines  \n• 5: Testing Guidelines  \n• 6: Documentation Guidelines  \nModularity guidelines ensure that libraries do not interfere with each other. Adherence to modularity guidelines is essential to making libraries compatible and interoperable with other MPLAB Harmony libraries. Flexibility guidelines affect the number of different environments in which a library can be used as well as the ability of a library to be customized for any particular solution. Testing guidelines make recommendations on how to verify correct and robust behavior of libraries. And, documentation guidelines describe the recommended documentation support for MPLAB Harmony compatible libraries.  \nA range of compatibility and compliance to these guidelines is possible. One key example is that it is not necessary that a library support all possible execution models to be considered MPLAB Harmony compatible. However, it does affect the level of flexibility supported and restrictions must be clearly documented. Another key example is that libraries that are released as part of the MPLAB Harmony framework follow more stringent coding style and naming convention guidelines than can be required of pre-existing libraries. This document describes the acceptable levels of compatibility with each rule.  \n2: Overview  \nThis section provides an overview of MPLAB Harmony and describes libraries and the execution model.  \nDescription  \nMPLAB Harmony is a modular, layered, cross-microcontroller, RTOS-friendly, integrated software framework, illustrated by the following block diagram.  \n2. 1: Libraries  \nMPLAB Harmony libraries provide simple C-language application software interfaces to peripherals and middleware supported by Microchip microcontrollers  \nDescription  \nA MPLAB Harmony library can be an active state machine driven module or a fully re-entrant library with no internal state of its own. Libraries are highly adaptable to support a wide variety of hardware, RTOS, and functional configurations. All modules are designed to be fully interoperable, respecting the abstractions of other modules in the system. Modules only access the resources owned by other modules through the interfaces provided by them, never directly. Libraries may be dynamic, supporting multiple client modules and/or multiple identical instances of themselves, or they may be static, supporting a single client and/or single instance operation, saving code size when dynamic behavior is not required.  \nDevice drivers are library modules that support internal (on-chip) or external (off-chip) peripherals and provide abstracted file-system like interfaces that stay consistent across different implementations to simplify porting from one Microchip microcontroller or system configuration to another. System services help prevent conflicts between modules by providing access to common resources such as interrupts, clocks, and I/O ports. Drivers and services may be built upon part-specific Peripheral Libraries (PLIBs) or they may use other driver and/or service modules if they need the resources owned by them. PLIBs provide a functional breakdown of internal (on-chip) peripherals and hide register details while providing direct (unprotected) low-level access to microcontroller hardware. PLIBs do not maintain any internal state data, except that which is mai","cbCaiud8NRIVKQ0f","https://ap.wps.com/l/cbCaiud8NRIVKQ0f","pdf",430501,35,"English","# Objective\n# Overview\n## Libraries\n## Execution Model","[{\"question\":\"What is the purpose of the MPLAB Harmony Compatibility Guide?\",\"answer\":\"It provides design, implementation, and porting guidelines to make software libraries compatible with MPLAB Harmony.\"},{\"question\":\"What do the modularity guidelines aim to ensure?\",\"answer\":\"They ensure libraries do not interfere with each other and support compatibility and interoperability across MPLAB Harmony libraries.\"},{\"question\":\"How does MPLAB Harmony handle its basic execution model?\",\"answer\":\"In basic configuration it uses a polled non-blocking cooperative multi-tasking model within a system-wide “super loop,” where modules can implement state machine functions.\"}]","MPLAB Harmony Compatibility Guide - Objective and Overview - Modularity, Flexibility, Testing, Documentation | PDF",88,[146,150,154,158],{"page_no":22,"url":147,"width":148,"height":149},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-12/c14d6c09e63184b325b48b0d6819e169.webp",983,1272,{"page_no":26,"url":151,"width":152,"height":153},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-12/c44ef52a1f76b4efc7b1540cbedd55bb.webp",982,1270,{"page_no":30,"url":155,"width":156,"height":157},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-12/80e5f5d6d65e958a1367b63650655dea.webp",981,1269,{"page_no":33,"url":159,"width":160,"height":161},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-12/3374cc5bbe046a96b920b1aea351c75d.webp",980,1268,{"list":163,"token":11},[164,170,176,182,188,194,200,205,211,217],{"doc_id":165,"doc_title":166,"file_type":137,"home_preview_img_url":167,"slug":168,"view_count":96,"category_name":29,"create_tm":169},696689,"MPLAB Harmony v3 Application Development Guide for MPLAB Harmony v2 Users","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230009773863/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796110439&Signature=rqDiDrNxTWwliQsQd5FVjd3eQdE%3D","mplab-harmony-v3-application-development-guide-for-mplab-harmony-v2-users",1794434391,{"doc_id":171,"doc_title":172,"file_type":137,"home_preview_img_url":173,"slug":174,"view_count":96,"category_name":29,"create_tm":175},696692,"How to Setup MPLAB Harmony v3 Software Development Framework - TB3232 - Technical Brief","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230009773888/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796110439&Signature=KAfeoSmgUkb2RValo2NdHOI05NI%3D","how-to-setup-mplab-harmony-v3-software-development-framework-tb3232-technical-brief",1794434399,{"doc_id":177,"doc_title":178,"file_type":137,"home_preview_img_url":179,"slug":180,"view_count":110,"category_name":29,"create_tm":181},696688,"MPLAB Harmony Integrated Software Framework - v1.11 - Overview","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230009773866/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796110439&Signature=Y4V5VbPllg6%2Fbhg5OtN7k9vZ4nI%3D","mplab-harmony-integrated-software-framework-v111-overview",1794434390,{"doc_id":183,"doc_title":184,"file_type":137,"home_preview_img_url":185,"slug":186,"view_count":33,"category_name":29,"create_tm":187},672942,"Volume I - Getting Started With MPLAB Harmony Libraries and Applications - RTOS Demonstrations Help","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229990229816/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796110439&Signature=r8Zid5AhWzcFqlGKUjnnBkPKYp0%3D","volume-i-getting-started-with-mplab-harmony-libraries-and-applications-rtos-demonstrations-help",1793615639,{"doc_id":189,"doc_title":190,"file_type":137,"home_preview_img_url":191,"slug":192,"view_count":110,"category_name":29,"create_tm":193},672944,"MPLAB Harmony v3 - Unified Software Development Framework for 32-bit MCUs and MPUs","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229989935159/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796110439&Signature=erIEVyRL1fgROmJRJjJcgWF0TdA%3D","mplab-harmony-v3-unified-software-development-framework-for-32-bit-mcus-and-mpus",1793615641,{"doc_id":195,"doc_title":196,"file_type":137,"home_preview_img_url":197,"slug":198,"view_count":96,"category_name":29,"create_tm":199},672951,"MPLAB Harmony Help - MPLAB Harmony Integrated Software Framework v1.00 - Introduction","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229990229862/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796110439&Signature=kOw6yN3xjpCo%2F5ak7Dn%2F8c7R3Cg%3D","mplab-harmony-help-mplab-harmony-integrated-software-framework-v100-introduction",1793615723,{"doc_id":201,"doc_title":202,"file_type":137,"home_preview_img_url":203,"slug":204,"view_count":33,"category_name":29,"create_tm":187},672941,"MPLAB Harmony Integrated Software Framework v1 - 11 - Release Notes - April 2017","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229990229839/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796110439&Signature=0uVeEEwgdQa8im%2Fn%2FxTbbUGusMs%3D","mplab-harmony-integrated-software-framework-v1-11-release-notes-april-2017",{"doc_id":206,"doc_title":207,"file_type":137,"home_preview_img_url":208,"slug":209,"view_count":105,"category_name":29,"create_tm":210},672939,"MPLAB Harmony 3 - Integrated Software Framework - Advanced and Easy-to-Use Embedded Software Solution","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229990229815/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796110439&Signature=bfMwbf6ZfzGGJghFfGONV%2Bob6oM%3D","mplab-harmony-3-integrated-software-framework-advanced-and-easy-to-use-embedded-software-solution",1793615633,{"doc_id":212,"doc_title":213,"file_type":137,"home_preview_img_url":214,"slug":215,"view_count":115,"category_name":29,"create_tm":216},672945,"MPLAB Harmony Help - MPLAB Harmony Tutorial - Creating an Application","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229990229866/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796110439&Signature=v0CloR1Wf3n1h3Vkk8r7oPyvQmA%3D","mplab-harmony-help-mplab-harmony-tutorial-creating-an-application",1793615646,{"doc_id":218,"doc_title":219,"file_type":137,"home_preview_img_url":220,"slug":221,"view_count":26,"category_name":29,"create_tm":222},735368,"MPLAB Harmony System Service Libraries Help - System Service Overview - Introduction","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230034345745/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796110439&Signature=RdsONHupTGa%2Bw6NzxgJj4OsCfvA%3D","mplab-harmony-system-service-libraries-help-system-service-overview-introduction",1795460531]