[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"detail-sidebar-cat-0-en-105":3,"doc-seo-561979-105":59,"doc-detail-561979-en":130,"doc-similar-561979":144},{"code":4,"msg":5,"data":6},0,"success",[7,13,18,23,28,33,38,43,48,51,55],{"id":8,"doc_module":4,"doc_module_name":9,"category_name":10,"show_sort_weight":11,"slug":12},1,"Document","Story & Novel",90,"story-novel",{"id":14,"doc_module":4,"doc_module_name":9,"category_name":15,"show_sort_weight":16,"slug":17},2,"Literature",80,"literature",{"id":19,"doc_module":4,"doc_module_name":9,"category_name":20,"show_sort_weight":21,"slug":22},4,"Exam",70,"exam",{"id":24,"doc_module":4,"doc_module_name":9,"category_name":25,"show_sort_weight":26,"slug":27},5,"Comic",60,"comic",{"id":29,"doc_module":4,"doc_module_name":9,"category_name":30,"show_sort_weight":31,"slug":32},6,"Technology",50,"technology",{"id":34,"doc_module":4,"doc_module_name":9,"category_name":35,"show_sort_weight":36,"slug":37},7,"Healthcare",40,"healthcare",{"id":39,"doc_module":4,"doc_module_name":9,"category_name":40,"show_sort_weight":41,"slug":42},8,"Research & Report",30,"research-report",{"id":44,"doc_module":4,"doc_module_name":9,"category_name":45,"show_sort_weight":46,"slug":47},9,"Religion & Spirituality",20,"religion-spirituality",{"id":46,"doc_module":4,"doc_module_name":9,"category_name":49,"show_sort_weight":46,"slug":50},"World Cup","world-cup",{"id":52,"doc_module":4,"doc_module_name":9,"category_name":53,"show_sort_weight":52,"slug":54},10,"Lifestyle","lifestyle",{"id":56,"doc_module":4,"doc_module_name":9,"category_name":57,"show_sort_weight":24,"slug":58},19,"General","general",{"code":4,"msg":60,"data":61},"ok",{"site_id":62,"language":63,"slug":64,"title":65,"keywords":66,"description":67,"schema_data":68,"social_meta":123,"head_meta":125,"extra_data":127,"updated_unix":129},105,"en","pic16f877a-processor-include-header-file","PIC16F877A Processor Include Header File","","Header file for the PIC16F877A microcontroller, defining configuration checks and a comprehensive set of register and bit mappings. Provides guidance on selecting the processor before inclusion, including command-line and assembly directive methods. Includes verify-processor logic, then enumerates banked registers across multiple memory banks and lists status, port, and interrupt-related bit definitions for use in PIC assembly programming.",{"@graph":69,"@context":122},[70,84,105],{"@type":71,"itemListElement":72},"BreadcrumbList",[73,77,79,82],{"item":74,"name":75,"@type":76,"position":8},"https://docshare.wps.com","Home","ListItem",{"item":78,"name":9,"@type":76,"position":14},"https://docshare.wps.com/document/",{"item":80,"name":30,"@type":76,"position":81},"https://docshare.wps.com/document/technology/",3,{"item":83,"name":65,"@type":76,"position":19},"https://docshare.wps.com/document/pic16f877a-processor-include-header-file/561979/",{"url":83,"name":65,"@type":85,"image":86,"author":91,"headline":65,"publisher":94,"fileFormat":97,"inLanguage":63,"description":67,"dateModified":98,"datePublished":99,"encodingFormat":97,"isAccessibleForFree":100,"interactionStatistic":101},"DigitalDocument",{"url":87,"@type":88,"width":89,"height":90},"https://docshare.wps.com/thumbnails/pic16f877a-processor-include-header-file/561979.png","ImageObject",300,407,{"name":92,"@type":93},"Alexandar","Person",{"url":74,"name":95,"@type":96},"DocShare","Organization","text/plain","2026-11-18","2026-10-12",true,{"@type":102,"interactionType":103,"userInteractionCount":39},"InteractionCounter",{"@type":104},"ViewAction",{"@type":106,"mainEntity":107},"FAQPage",[108,114,118],{"name":109,"@type":110,"acceptedAnswer":111},"What must be done before including the header file for PIC16F877A?","Question",{"text":112,"@type":113},"The processor must be selected before this file is included. The document describes multiple ways to select it.","Answer",{"name":115,"@type":110,"acceptedAnswer":116},"How does the file verify that the correct processor header is included?",{"text":117,"@type":113},"It checks for a mismatch using IFNDEF __16F877A and emits a message stating the processor-header file mismatch.",{"name":119,"@type":110,"acceptedAnswer":120},"What kind of information does the header file provide for programming?",{"text":121,"@type":113},"It provides EQU-based definitions for registers and individual bit positions, organized by memory banks and grouped by functions like status, ports, and interrupt flags.","https://schema.org",{"og:url":83,"og:type":124,"og:title":65,"og:site_name":95,"og:description":67},"article",{"robots":126,"canonical":83},"index,follow",{"doc_id":128,"site_id":62},561979,1792360501,{"code":4,"msg":5,"data":131},{"doc_id":128,"user_id":132,"nickname":92,"user_avatar":133,"doc_module":4,"category_id":29,"category_name":30,"doc_title":65,"doc_description":67,"doc_content":134,"file_id":135,"file_url":136,"file_type":137,"file_size":138,"view_count":39,"is_deleted":4,"is_public":8,"is_downloadable":8,"audit_status":8,"page_count":8,"language":139,"language_code":63,"site_id":62,"html_lang":63,"table_of_contents":140,"faqs":141,"seo_title":142,"seo_description":67,"update_tm":143,"read_time":81,"preview_page_count":4},962090768658,"https://ap-avatar.wpscdn.com/davatar_6f874abed73319feea01a86fa6f0fab8","        LIST\n\n;==========================================================================\n;  MPASM PIC16F877A processor include\n; \n;  (c) Copyright 1999-2012 Microchip Technology, All rights reserved\n;==========================================================================\n\n        NOLIST\n\n;==========================================================================\n;  This header file defines configurations, registers, and other useful\n;  bits of information for the PIC16F877A microcontroller.  These names\n;  are taken to match the data sheets as closely as possible.\n;\n;  Note that the processor must be selected before this file is included.\n;  The processor may be selected the following ways:\n;\n;       1. Command line switch:\n;               C:\\MPASM MYFILE.ASM /PIC16F877A\n;       2. LIST directive in the source file\n;               LIST   P=PIC16F877A\n;       3. Processor Type entry in the MPASM full-screen interface\n;       4. Setting the processor in the MPLAB Project Dialog\n;==========================================================================\n\n;==========================================================================\n;\n;       Verify Processor\n;\n;==========================================================================\n        IFNDEF __16F877A\n           MESSG \"Processor-header file mismatch.  Verify selected processor.\"\n        ENDIF\n\n\n\n;==========================================================================\n;\n;       Register Definitions\n;\n;==========================================================================\n\nW                EQU  H'0000'\nF                EQU  H'0001'\n\n;----- Register Files -----------------------------------------------------\n\n;-----Bank0------------------\nINDF             EQU  H'0000'\nTMR0             EQU  H'0001'\nPCL              EQU  H'0002'\nSTATUS           EQU  H'0003'\nFSR              EQU  H'0004'\nPORTA            EQU  H'0005'\nPORTB            EQU  H'0006'\nPORTC            EQU  H'0007'\nPORTD            EQU  H'0008'\nPORTE            EQU  H'0009'\nPCLATH           EQU  H'000A'\nINTCON           EQU  H'000B'\nPIR1             EQU  H'000C'\nPIR2             EQU  H'000D'\nTMR1             EQU  H'000E'\nTMR1L            EQU  H'000E'\nTMR1H            EQU  H'000F'\nT1CON            EQU  H'0010'\nTMR2             EQU  H'0011'\nT2CON            EQU  H'0012'\nSSPBUF           EQU  H'0013'\nSSPCON           EQU  H'0014'\nCCPR1            EQU  H'0015'\nCCPR1L           EQU  H'0015'\nCCPR1H           EQU  H'0016'\nCCP1CON          EQU  H'0017'\nRCSTA            EQU  H'0018'\nTXREG            EQU  H'0019'\nRCREG            EQU  H'001A'\nCCPR2            EQU  H'001B'\nCCPR2L           EQU  H'001B'\nCCPR2H           EQU  H'001C'\nCCP2CON          EQU  H'001D'\nADRESH           EQU  H'001E'\nADCON0           EQU  H'001F'\n\n;-----Bank1------------------\nOPTION_REG       EQU  H'0081'\nTRISA            EQU  H'0085'\nTRISB            EQU  H'0086'\nTRISC            EQU  H'0087'\nTRISD            EQU  H'0088'\nTRISE            EQU  H'0089'\nPIE1             EQU  H'008C'\nPIE2             EQU  H'008D'\nPCON             EQU  H'008E'\nSSPCON2          EQU  H'0091'\nPR2              EQU  H'0092'\nSSPADD           EQU  H'0093'\nSSPSTAT          EQU  H'0094'\nTXSTA            EQU  H'0098'\nSPBRG            EQU  H'0099'\nCMCON            EQU  H'009C'\nCVRCON           EQU  H'009D'\nADRESL           EQU  H'009E'\nADCON1           EQU  H'009F'\n\n;-----Bank2------------------\nEEDATA           EQU  H'010C'\nEEADR            EQU  H'010D'\nEEDATH           EQU  H'010E'\nEEADRH           EQU  H'010F'\n\n;-----Bank3------------------\nEECON1           EQU  H'018C'\nEECON2           EQU  H'018D'\n\n;----- STATUS Bits -----------------------------------------------------\nC                EQU  H'0000'\nDC               EQU  H'0001'\nZ                EQU  H'0002'\nNOT_PD           EQU  H'0003'\nNOT_TO           EQU  H'0004'\nIRP              EQU  H'0007'\n\nRP0              EQU  H'0005'\nRP1              EQU  H'0006'\n\n\n;----- PORTA Bits --------------------------------------------","cbCairJWkEJhXyQC","https://ap.wps.com/l/cbCairJWkEJhXyQC","txt",17402,"English","# Register Definitions\n## Processor selection and verification\n## Register files by bank\n## Status, port, and interrupt bit definitions","[{\"question\":\"What must be done before including the header file for PIC16F877A?\",\"answer\":\"The processor must be selected before this file is included. The document describes multiple ways to select it.\"},{\"question\":\"How does the file verify that the correct processor header is included?\",\"answer\":\"It checks for a mismatch using IFNDEF __16F877A and emits a message stating the processor-header file mismatch.\"},{\"question\":\"What kind of information does the header file provide for programming?\",\"answer\":\"It provides EQU-based definitions for registers and individual bit positions, organized by memory banks and grouped by functions like status, ports, and interrupt flags.\"}]","PIC16F877A Processor Include Header File | TXT",1791807416,{"list":145,"token":66},[146,153,159,165,171,177,183,189,195,201],{"doc_id":147,"doc_title":148,"file_type":149,"home_preview_img_url":150,"slug":151,"view_count":81,"category_name":30,"create_tm":152},685882,"Chapter 1 - Part 1 - Complete I/O Port List - Hardware programming warning","pdf","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230000257211/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796110859&Signature=Xg8cWAGcmBBKAiXTc%2BQe7Ety3Bw%3D","chapter-1-part-1-complete-io-port-list-hardware-programming-warning",1794021106,{"doc_id":154,"doc_title":155,"file_type":149,"home_preview_img_url":156,"slug":157,"view_count":24,"category_name":30,"create_tm":158},689932,"PCF8574 - Remote 8-bit I/O expander for I2C-bus","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230002264225/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796110859&Signature=neq3lgDhZg56coOp1uXw924wLR0%3D","pcf8574-remote-8-bit-io-expander-for-i2c-bus",1794136905,{"doc_id":160,"doc_title":161,"file_type":149,"home_preview_img_url":162,"slug":163,"view_count":19,"category_name":30,"create_tm":164},689929,"PCF8574 - Remote 8-bit I/O expander for I2C-bus - Data sheet","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230002264179/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796110859&Signature=pdv0u0GRtskIiVET5EaoJDHEbYs%3D","pcf8574-remote-8-bit-io-expander-for-i2c-bus-data-sheet-689929",1794136899,{"doc_id":166,"doc_title":167,"file_type":149,"home_preview_img_url":168,"slug":169,"view_count":29,"category_name":30,"create_tm":170},690041,"MCP23017/MCP23S17 - 16-Bit I/O Expander with Serial Interface - Features","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230002438212/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796110859&Signature=UWpdr9aseVXmJsjD17RUsuLiTTg%3D","mcp23017mcp23s17-16-bit-io-expander-with-serial-interface-features",1794145754,{"doc_id":172,"doc_title":173,"file_type":149,"home_preview_img_url":174,"slug":175,"view_count":19,"category_name":30,"create_tm":176},690332,"TC1782 32-Bit Single-Chip Microcontroller - Data Sheet V 1.4.1 - 2014-05","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230002018661/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796110859&Signature=5LJvdifKZbWb4vcs3vR2EtYImy4%3D","tc1782-32-bit-single-chip-microcontroller-data-sheet-v-141-2014-05",1794163219,{"doc_id":178,"doc_title":179,"file_type":149,"home_preview_img_url":180,"slug":181,"view_count":19,"category_name":30,"create_tm":182},691643,"XMC1300 AB-Step Microcontroller Series for Industrial Applications - Reference Manual - V1.3 - Revision History 2016-08","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230002681047/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796110859&Signature=Sif9xeuTKU7efZv8pogCPIyOWXs%3D","xmc1300-ab-step-microcontroller-series-for-industrial-applications-reference-manual-v13-revision-history-2016-08",1794175524,{"doc_id":184,"doc_title":185,"file_type":149,"home_preview_img_url":186,"slug":187,"view_count":34,"category_name":30,"create_tm":188},689931,"PCF8574A Remote 8-Bit I/O Expander for I2C Bus","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230001466296/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796110859&Signature=tRZ1K1tmyeFrrxe3FvOd%2FXowtIg%3D","pcf8574a-remote-8-bit-io-expander-for-i2c-bus",1794136900,{"doc_id":190,"doc_title":191,"file_type":149,"home_preview_img_url":192,"slug":193,"view_count":19,"category_name":30,"create_tm":194},700683,"MPU-6000 and MPU-6050 - Register Map and Descriptions - Revision 4.0","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230011569048/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796110859&Signature=zCfrnzZS%2BOSNyo6mj0RNc736rFc%3D","mpu-6000-and-mpu-6050-register-map-and-descriptions-revision-40",1794519974,{"doc_id":196,"doc_title":197,"file_type":149,"home_preview_img_url":198,"slug":199,"view_count":19,"category_name":30,"create_tm":200},690334,"TC1796 Data Sheet - Edition 2008-04 - Revision History V1.0","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230002625707/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796110859&Signature=oLb9r0XfYMcfQ0SyP%2BBL21kUHSM%3D","tc1796-data-sheet-edition-2008-04-revision-history-v10",1794163224,{"doc_id":202,"doc_title":203,"file_type":149,"home_preview_img_url":204,"slug":205,"view_count":19,"category_name":30,"create_tm":206},700482,"Max FIFO - Application Note - Revision 1.0 - February 2021","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230011566840/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796110859&Signature=XIkCLjl7T119DVLSRodozHV2AdA%3D","max-fifo-application-note-revision-10-february-2021",1794519024]