[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"detail-sidebar-cat-0-en-105":3,"doc-seo-720346-105":59,"doc-detail-720346-en":130,"doc-similar-720346":161},{"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","differences-between-atmega328p-and-atmega328pb-application-note-at15007","Differences between ATmega328/P and ATmega328PB - Application Note AT15007","","This application note helps users of Atmel ATmega328 variants understand the differences and how to use the Atmel ATmega328PB. It clarifies that ATmega328PB is not a drop-in replacement, yet its functions are backward compatible, so existing ATmega328 code can run without changing configuration or enabling new features. It highlights feature categories such as pin-function differences and added enhancements, and notes compatibility limits for reverse code. It also points to device datasheets for errata, electrical characteristics, and complete details.",{"@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/differences-between-atmega328p-and-atmega328pb-application-note-at15007/720346/",{"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/differences-between-atmega328p-and-atmega328pb-application-note-at15007/720346.png","ImageObject",300,407,{"name":92,"@type":93},"Fans","Person",{"url":74,"name":95,"@type":96},"DocShare","Organization","application/pdf","2026-11-23","2026-11-18",true,{"@type":102,"interactionType":103,"userInteractionCount":14},"InteractionCounter",{"@type":104},"ViewAction",{"@type":106,"mainEntity":107},"FAQPage",[108,114,118],{"name":109,"@type":110,"acceptedAnswer":111},"Is ATmega328PB a drop-in replacement for ATmega328 variants?","Question",{"text":112,"@type":113},"No. ATmega328PB is a new device, but its functions are backward compatible with existing ATmega328 functions.","Answer",{"name":115,"@type":110,"acceptedAnswer":116},"Will existing ATmega328 code run on ATmega328PB without changes?",{"text":117,"@type":113},"Yes. Code for existing ATmega328 variants will work on ATmega328PB without changing configuration or enabling new functions. Reverse code compatibility is not guaranteed.",{"name":119,"@type":110,"acceptedAnswer":120},"What major areas of differences and added capabilities does the note cover?",{"text":121,"@type":113},"It covers pin functionality differences, code compatibility, enhancement and added features (including PTC, CFD, OCM1C2, USART, analog comparator, SPI/TWI/timers), and updated features such as oscillator options and power-save behavior.","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},720346,1795036744,{"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":14,"is_deleted":4,"is_public":8,"is_downloadable":8,"audit_status":8,"page_count":56,"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":129,"read_time":143,"preview_page_count":19,"preview_urls":144},5909892330395,"https://ap-avatar.wpscdn.com/davatar_6f874abed73319feea01a86fa6f0fab8","AVR 8-bit Microcontrollers  \nAT15007: Differences between ATmega328/P and ATmega328PB  \nAPPLICATION NOTE  \nIntroduction  \nThis application note assists the users of Atmel® ATmega328 variants to understand the differences and use Atmel ATmega328PB.  \nATmega328PB is not a drop-in replacement for ATmega328 variants, but anew device. However, the functions are backward compatible with the existing ATmega328 functions. Existing code for these devices will work in the new devices without changing existing configuration or enabling new functions. The code that is available for your existing ATmega328 variants will continue to work on the new ATmega328PB device.  \nThe ATmega328PB is the first 8-bit Atmel AVR® device to feature the successful Atmel QTouch® Peripheral Touch Controller (PTC) . For differences in errata, typical, and electrical characteristics between ATmega328 variants and ATmega328PB, refer to the specific device datasheets.  \nFor complete device details, refer to the latest version of the ATmega328PB [datasheet available at](datasheet available at www.atmel.com)[ www.atmel.com](datasheet available at www.atmel.com).  \nFeatures  \n• Pin functionality difference  \n• Code compatibility  \n• Enhancement and added features  \n• Updated features  \nNote: Code compiled for ATmega328 variants are compatible and can be executed in the ATmega328PB device. Whereas, reverse code compatibility is not guaranteed.  \nTable of Contents  \nIntroduction...................................................................................................................... 1  \nFeatures.......................................................................................................................... 1  \n1. Pin Functionality Difference....................................................................................... 3  \n1.1. Additional Pin Functionalities........................................................................................................3  \n1.2. Alternate Pin Configuration...........................................................................................................3  \n2. Enhancement and Additional Features in ATmega328PB.........................................4  \n2.1. PTC-Peripheral Touch Controller................................................................................................4  \n2.1.1. PTC Functional Description........................................................................................... 4  \n2.2. CFD-Clock Failure Detection mechanism.................................................................................. 5  \n2.3. OCM1C2-Output Compare Modulator........................................................................................5  \n2.4. USART......................................................................................................................................... 5  \n2.5. Analog Comparator...................................................................................................................... 6  \n2.6. Serial Number...............................................................................................................................6  \n2.7. Additional SPI............................................................................................................................... 7  \n2.8. Additional TWI.............................................................................................................................. 7  \n2.9. Additional Timer/Counters............................................................................................................ 7  \n3. Updated Features...................................................................................................... 8  \n3.1. Full Swing Oscillator..................................................................................................................... 8  \n3.2. Calibrated Internal RC Oscillator Accuracy.........................................","cbCaityOTOJOIzm8","https://ap.wps.com/l/cbCaityOTOJOIzm8","pdf",282736,"English","# Introduction\n# Features\n## Pin Functionality Difference\n## Code Compatibility\n## Enhancement and Added Features\n# 1. Pin Functionality Difference\n## Additional Pin Functionalities\n## Alternate Pin Configuration\n# 2. Enhancement and Additional Features in ATmega328PB\n## PTC-Peripheral Touch Controller\n### PTC Functional Description\n## CFD-Clock Failure Detection mechanism\n## OCM1C2-Output Compare Modulator\n## USART\n## Analog Comparator\n## Serial Number\n## Additional SPI\n## Additional TWI\n## Additional Timer/Counters\n# 3. Updated Features\n## Full Swing Oscillator\n## Calibrated Internal RC Oscillator Accuracy\n## Parallel Programming\n## Power Save Mode\n## NV M\n## Signature Bytes\n# 4. Register Description\n## Port E Input Pins Address\n## Port E Data Direction Register\n## Port E Data Register\n## XOSC Failure Detection Control And Status Register\n## USART Control and Status Register 0 D\n## USART Control and Status Register n D\n## Analog Comparator Control and Status Register B\n# 5. Revision History","[{\"question\":\"Is ATmega328PB a drop-in replacement for ATmega328 variants?\",\"answer\":\"No. ATmega328PB is a new device, but its functions are backward compatible with existing ATmega328 functions.\"},{\"question\":\"Will existing ATmega328 code run on ATmega328PB without changes?\",\"answer\":\"Yes. Code for existing ATmega328 variants will work on ATmega328PB without changing configuration or enabling new functions. Reverse code compatibility is not guaranteed.\"},{\"question\":\"What major areas of differences and added capabilities does the note cover?\",\"answer\":\"It covers pin functionality differences, code compatibility, enhancement and added features (including PTC, CFD, OCM1C2, USART, analog comparator, SPI/TWI/timers), and updated features such as oscillator options and power-save behavior.\"}]","Differences between ATmega328/P and ATmega328PB - Application Note AT15007 | PDF",48,[145,149,153,157],{"page_no":8,"url":146,"width":147,"height":148},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-18/06d1e133d92ce6a1ccfc27bee2f4cdb1.webp",983,1305,{"page_no":14,"url":150,"width":151,"height":152},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-18/0dae45f0d22153348910e8929069918b.webp",982,1304,{"page_no":81,"url":154,"width":155,"height":156},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-18/c781a7772e7b53c9cf071859b9113073.webp",981,1303,{"page_no":19,"url":158,"width":159,"height":160},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-18/685db988c44344e3bdb55af2d007886f.webp",980,1301,{"list":162,"token":66},[163,169,175,181,187,193,200,206,213,219],{"doc_id":164,"doc_title":165,"file_type":137,"home_preview_img_url":166,"slug":167,"view_count":24,"category_name":30,"create_tm":168},720211,"ATmega48A/48PA/88A/88PA/168A/168PA/328P - 8-bit Microcontroller Features and Pin Configurations","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230024388182/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796127179&Signature=J20isfNPT7uz5yfVrau0Ctb40gI%3D","atmega48a48pa88a88pa168a168pa328p-8-bit-microcontroller-features-and-pin-configurations",1795035433,{"doc_id":170,"doc_title":171,"file_type":137,"home_preview_img_url":172,"slug":173,"view_count":39,"category_name":30,"create_tm":174},670888,"Arduino Uno - Overview - Hardware Specifications","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229988352149/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796127179&Signature=vTGtKB%2B0%2BiyMmKGfiFT2Cn6kUIc%3D","arduino-uno-overview-hardware-specifications",1793572477,{"doc_id":176,"doc_title":177,"file_type":137,"home_preview_img_url":178,"slug":179,"view_count":24,"category_name":30,"create_tm":180},692096,"LSM6DSOX, ISM330DHC, & LSM6DSO32 - 6 DoF IMUs - Wiring, Pinouts, and Library Examples","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230002896603/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796127179&Signature=Z5uEjjsALee5MPmm2ddOsQp5PJU%3D","lsm6dsox-ism330dhc-lsm6dso32-6-dof-imus-wiring-pinouts-and-library-examples",1794178562,{"doc_id":182,"doc_title":183,"file_type":137,"home_preview_img_url":184,"slug":185,"view_count":19,"category_name":30,"create_tm":186},670860,"SM74611 Smart Bypass Diode - Smart bypass diode datasheet","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229988351360/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796127179&Signature=hdEe7aeA5%2F2nG%2Fr%2FRXPVpv7cEhY%3D","sm74611-smart-bypass-diode-smart-bypass-diode-datasheet",1793572287,{"doc_id":188,"doc_title":189,"file_type":137,"home_preview_img_url":190,"slug":191,"view_count":24,"category_name":30,"create_tm":192},700781,"Front Panel Manual - Altair 8800c Front Panel Board Set","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230012036575/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796127179&Signature=h%2FVOILo31GQAUhCJityASqtieT4%3D","front-panel-manual-altair-8800c-front-panel-board-set",1794520707,{"doc_id":194,"doc_title":195,"file_type":137,"home_preview_img_url":196,"slug":197,"view_count":198,"category_name":30,"create_tm":199},653586,"Chamberlain - LiftMaster - Craftsman Garage Door Opener Remote Control Product Manual","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229973561020/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796127179&Signature=PGA2IKUJBjzUeyiYj1F3KohvRd4%3D","chamberlain-liftmaster-craftsman-garage-door-opener-remote-control-product-manual",12,1792893051,{"doc_id":201,"doc_title":202,"file_type":137,"home_preview_img_url":203,"slug":204,"view_count":29,"category_name":30,"create_tm":205},700200,"SMART ARM-Based Microcontroller - Datasheet Summary","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230012016735/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796127179&Signature=L%2BUsU9aRnWHaIs6B4h1YDGrCMVw%3D","smart-arm-based-microcontroller-datasheet-summary",1794516770,{"doc_id":207,"doc_title":208,"file_type":137,"home_preview_img_url":209,"slug":210,"view_count":211,"category_name":30,"create_tm":212},516409,"SPACE MARINES - FACTION PACK - VERSION 1.4","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229937697140/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796127179&Signature=9NQg53UKh3firXrMxUkAzOyByW4%3D","space-marines-faction-pack-version-14",11,1791331039,{"doc_id":214,"doc_title":215,"file_type":137,"home_preview_img_url":216,"slug":217,"view_count":81,"category_name":30,"create_tm":218},691640,"XMC1300 AB-Step - Microcontroller Series for Industrial Applications - Datasheet","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230002681037/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796127179&Signature=13LmXEAR2Ft436u979yBQqT2FKE%3D","xmc1300-ab-step-microcontroller-series-for-industrial-applications-datasheet",1794175514,{"doc_id":220,"doc_title":221,"file_type":137,"home_preview_img_url":222,"slug":223,"view_count":81,"category_name":30,"create_tm":224},733644,"Audi connect key - Setup - Authorise and Revoke Digital Key","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230031426058/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796127179&Signature=EtQB%2BA3XILaORkqX5Po4Yjf%2FKk8%3D","audi-connect-key-setup-authorise-and-revoke-digital-key",1795386711]