[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"detail-sidebar-cat-0-en-105":3,"doc-seo-689858-105":59,"doc-detail-689858-en":131,"doc-similar-689858":150},{"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":124,"head_meta":126,"extra_data":128,"updated_unix":130},105,"en","xiao-rp2040-powerful-mcu-gpio-interfaces-and-example-functions","XIAO RP2040 - Powerful MCU, GPIO, Interfaces and Example Functions","","XIAO RP2040 is a compact microcontroller board featuring a dual-core ARM Cortex M0+ processor with a flexible clock up to 133 MHz, plus 264KB SRAM and 2MB on-board Flash for running programs with good performance and low power design. It provides 14 GPIO pins (digital, analog, PWM) and supports multiple interfaces including I2C, UART, SPI and SWD. The document also includes hardware notes for safe voltage use, bootloader and reset procedures, and starter code examples for digital I/O, serial output, I2C communication, SPI transfer, and an optional OLED display extension.",{"@graph":69,"@context":123},[70,84,106],{"@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/xiao-rp2040-powerful-mcu-gpio-interfaces-and-example-functions/689858/",{"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/xiao-rp2040-powerful-mcu-gpio-interfaces-and-example-functions/689858.png","ImageObject",300,407,{"name":92,"@type":93},"Riley","Person",{"url":74,"name":95,"@type":96},"DocShare","Organization","application/pdf","2026-11-29","2026-11-08",true,{"@type":102,"interactionType":103,"userInteractionCount":105},"InteractionCounter",{"@type":104},"ViewAction",11,{"@type":107,"mainEntity":108},"FAQPage",[109,115,119],{"name":110,"@type":111,"acceptedAnswer":112},"What are the core hardware specs of XIAO RP2040?","Question",{"text":113,"@type":114},"It uses a dual-core ARM Cortex M0+ up to 133 MHz, with 264KB SRAM and 2MB on-board Flash memory.","Answer",{"name":116,"@type":111,"acceptedAnswer":117},"How do you enter Bootloader mode when the port disappears?",{"text":118,"@type":114},"Long-press the “B” button, connect the XIAO RP2040 to the computer, then the chip enters Bootloader mode and the burn port reappears.",{"name":120,"@type":111,"acceptedAnswer":121},"What voltage precautions are mentioned for general I/O pins and power?",{"text":122,"@type":114},"General I/O pins work at 3.3V; input higher than 3.3V may damage the chip. The built-in DC-DC converter lets a 5V supply power the device via VIN/5V pins.","https://schema.org",{"og:url":83,"og:type":125,"og:title":65,"og:site_name":95,"og:description":67},"article",{"robots":127,"canonical":83},"index,follow",{"doc_id":129,"site_id":62},689858,1794129633,{"code":4,"msg":5,"data":132},{"doc_id":129,"user_id":133,"nickname":92,"user_avatar":134,"doc_module":4,"category_id":29,"category_name":30,"doc_title":65,"doc_description":67,"doc_content":135,"file_id":136,"file_url":137,"file_type":138,"file_size":139,"view_count":105,"is_deleted":4,"is_public":8,"is_downloadable":8,"audit_status":8,"page_count":44,"language":140,"language_code":63,"site_id":62,"html_lang":63,"table_of_contents":141,"faqs":142,"seo_title":143,"seo_description":67,"update_tm":130,"read_time":144,"preview_page_count":8,"preview_urls":145},1374391975076,"https://ap-avatar.wpscdn.com/avatar/14000253ca4ec9f6853?x-image-process=image/resize,m_fixed,w_180,h_180&k=1783305029341752051","XIAO RP2040  \nThe XIAO RP2040 is as small as the Seeeduino XIAO but more powerful than Seeeduino XIAO. On one hand, it carries the powerful Dual-core RP2040 processor that can §exible clock running up to 133 MHz which is a low-power microcontrollers. On the XIAO RP2040 there is also 264KB of SRAM, and 2MB of on-board Flash memory which can provide more program to save and run. On the other hand, this little board has good performance in processing but needs less power. All in all, it is designed in a tiny size as small as a thumb(20x17 . 5mm) and can be used for wearable devices and small projects.  \nThere are 14 GPIO PINs on XIAO RP2040, on which there are 11 digital pins, 4 analog pins, 11 PWM Pins,1 I2C interface, 1 UART interface, 1 SPI interface, 1 SWD Bonding pad interface.  \nFeatures  \n Powerful MCU: Dual-core ARM Cortex M0+ processor, §exible clock running up to 133 MHz  \n Rich on-chip resources: 264KB of SRAM, and 2MB of on-board Flash memory  \n Flexible compatibility: Support Micropython/Arduino/CircuitPython  \n Easy project operation: Breadboard-friendly & SMD design, no components on the back  \n Small size: As small as a thumb(20x17 . 5mm) for wearable devices and small projects.  \n Multiple interfaces: 11 digital pins, 4 analog pins, 11 PWM Pins,1 I2C interface, 1 UART interface, 1 SPI interface, 1 SWD Bonding pad interface.  \nSpeci¦cation  \n\n| Item | Value |\n| --- | --- |\n| CPU | Dual-core ARM Cortex M0+ processor up to 133MHz |\n| Flash Memory | 2MB |\n| SRAM | 264KB |\n| Digital I/O Pins | 11 |\n| Analog I/O Pins | 4 |\n| PWM Pins | 11 |\n| I2C interface | 1 |\n| SPI interface | 1 |\n| UART interface | 1 |\n| Power supply and downloading interface | Type-C |\n| Power | 3.3V/5V DC |\n\nDimensions  \n20×17.5×3.5mm  \nHardware Overview  \n􀇞  \nNote  \nFor general I/O pins: Working voltage of MCU is 3.3V . Voltage input connected to general I/O pins may cause chip damage if it' higher than 3.3V .  \nFor power supply pins: The built-in DC-DC converter circuit able to change 5V voltage into 3.3V allows to power the device with a 5V supply via VIN-PIN and 5V-PIN.  \nPlease pay attention to use, do not lift the shield cover.  \nEnter Bootloader Mode  \nSometimes the XIAO RP2040 port may disappear when user programming process fails. we can solve this problem by the following operation:  \n Long press the \"B\" button.  \n Connect the XIAO PR2040 to your computer.  \n The computer will appear a disk driver.  \nAt this point, the chip enters Bootloader mode and the burn port appears again. Because the RP2040 chip has two partitions, one is the Bootloader and the other is the user program. The product will burn a bootloader code in the system memory when it leaves the factory. We can switch modes by performing the above steps.  \nReset  \nIf you want to reset the Seeeduino XIAO, perform the following steps:  \n Connect the Seeeduino XIAO to your computer.  \n Press the \"R\" pins once.  \nPlease note: The behavior of the built-in programmable Single-colour LEDs(two are blue, one is green) are reversed to the one on an Arduino. On the XIAO RP2040, the pin has to be pulled low to enable.  \nDigital Input and Output  \n Use pin 6 as the digital pin:  \n1 const int buttonPin = p27; // the number of the pushbutton pin  \n2 const int ledPin = p16; // the number of the LED pin 3  \n4 int buttonState = 0 ; // variable for reading the pushbutton status 5  \n6 void setup() {  \n7 // initialize the LED pin as an output:  \n8 pinMode (ledPin , OUTPUT) ;  \n9 // initialize the pushbutton pin as an input:  \n10 pinMode (buttonPin , INPUT) ; 11 }  \n12  \n13 void loop() {  \n14 // read the state of the pushbutton value:  \n15 buttonState = digitalRead (buttonPin ) ; 16  \n􀃅  \n17 // check if the pushbutton is pressed. If it is, the buttonState is HIGH:  \n18 if (buttonState == HIGH) {  \n19 // turn LED on:  \n20 digitalWrite(ledPin , HIGH) ;  \n21 } else {  \n22 // turn LED off:  \n23 digitalWrite(ledPin , LOW) ; 24 }  \n25 }  \nSerial  \n Use pin 6 as the TX pin of UART(RX pin of UART is pin 7","cbCaipT5FloavkKh","https://ap.wps.com/l/cbCaipT5FloavkKh","pdf",24485382,"English","# Features\n## MCU and resources\n## Compatibility and operation\n# Specifications\n## CPU, Flash, SRAM\n## Pin and interface list\n# Dimensions and hardware overview\n## Voltage and power notes\n# Bootloader mode and reset\n## Enter bootloader mode\n## Reset behavior\n# Digital input/output\n# Serial (UART)\n# I2C communication\n# SPI communication\n# More fun: OLED extension","[{\"question\":\"What are the core hardware specs of XIAO RP2040?\",\"answer\":\"It uses a dual-core ARM Cortex M0+ up to 133 MHz, with 264KB SRAM and 2MB on-board Flash memory.\"},{\"question\":\"How do you enter Bootloader mode when the port disappears?\",\"answer\":\"Long-press the “B” button, connect the XIAO RP2040 to the computer, then the chip enters Bootloader mode and the burn port reappears.\"},{\"question\":\"What voltage precautions are mentioned for general I/O pins and power?\",\"answer\":\"General I/O pins work at 3.3V; input higher than 3.3V may damage the chip. The built-in DC-DC converter lets a 5V supply power the device via VIN/5V pins.\"}]","XIAO RP2040 - Powerful MCU, GPIO, Interfaces and Example Functions | PDF",23,[146],{"page_no":8,"url":147,"width":148,"height":149},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-09/7a29b7543f343b98061c6dc762c620ca.webp",983,1390,{"list":151,"token":66},[152,158,164,171,177,183,189,195,201,208],{"doc_id":153,"doc_title":154,"file_type":138,"home_preview_img_url":155,"slug":156,"view_count":39,"category_name":30,"create_tm":157},720204,"ATMEGA328P Breadboard Kit - Chip Specifications - Pinout","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230024388150/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796111459&Signature=BhkUv%2BpIGRbT0v%2F1ZxLnpnhq5Yo%3D","atmega328p-breadboard-kit-chip-specifications-pinout",1795035417,{"doc_id":159,"doc_title":160,"file_type":138,"home_preview_img_url":161,"slug":162,"view_count":29,"category_name":30,"create_tm":163},700225,"Adafruit STM32F405 Feather Express","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230011564446/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796111459&Signature=FrrkI2H3BRyGz03DerZ92TVyYjk%3D","adafruit-stm32f405-feather-express",1794517354,{"doc_id":165,"doc_title":166,"file_type":138,"home_preview_img_url":167,"slug":168,"view_count":169,"category_name":30,"create_tm":170},692060,"PSoC™ 4100S - Based on Arm® Cortex®-M0+ CPU - Datasheet","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230002893508/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796111459&Signature=4lOVsUIndkgV3U1fb4gg1X64R4w%3D","psoc-4100s-based-on-arm-cortex-m0-cpu-datasheet",13,1794178065,{"doc_id":172,"doc_title":173,"file_type":138,"home_preview_img_url":174,"slug":175,"view_count":29,"category_name":30,"create_tm":176},700143,"ESP32-C3 SuperMini datasheet - Product Introduction & Setup Guide","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230012013230/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796111459&Signature=cCBE6flsyKPaJGRTwVCRBiKx%2FoI%3D","esp32-c3-supermini-datasheet-product-introduction-setup-guide",1794516171,{"doc_id":178,"doc_title":179,"file_type":138,"home_preview_img_url":180,"slug":181,"view_count":29,"category_name":30,"create_tm":182},690359,"Grove-3-Axis Digital Accelerometer (LIS3DHTR) - Overview - Hardware and Example Code","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230002023998/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796111459&Signature=CVW0czsFS9xYRrqAusgIGBxRyHw%3D","grove-3-axis-digital-accelerometer-lis3dhtr-overview-hardware-and-example-code",1794164675,{"doc_id":184,"doc_title":185,"file_type":138,"home_preview_img_url":186,"slug":187,"view_count":29,"category_name":30,"create_tm":188},700199,"HT32F50231/HT32F50241 Datasheet - Revision V1.50 - Technical overview","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230012016728/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796111459&Signature=Y8rxqKCVhavNK8XYoW2DluNbSLI%3D","ht32f50231ht32f50241-datasheet-revision-v150-technical-overview",1794516768,{"doc_id":190,"doc_title":191,"file_type":138,"home_preview_img_url":192,"slug":193,"view_count":19,"category_name":30,"create_tm":194},700244,"MicroPython Documentation - Quick Reference for the pyboard","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230012021799/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796111459&Signature=oQW5SwgXfLIfuLNnE2M762LWIII%3D","micropython-documentation-quick-reference-for-the-pyboard",1794517692,{"doc_id":196,"doc_title":197,"file_type":138,"home_preview_img_url":198,"slug":199,"view_count":24,"category_name":30,"create_tm":200},690252,"SAM3X / SAM3A Series - Datasheet","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230002604217/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796111459&Signature=Z0Fndtjc%2FFbNHO4HsjXzosXp%2BAw%3D","sam3x-sam3a-series-datasheet",1794159490,{"doc_id":202,"doc_title":203,"file_type":138,"home_preview_img_url":204,"slug":205,"view_count":206,"category_name":30,"create_tm":207},690266,"PSoC 4: PSoC 4200DS Family Datasheet","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230002607521/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796111459&Signature=eHJQ9zaSYWGnXcQcurTtnlZSKmU%3D","psoc-4-psoc-4200ds-family-datasheet",12,1794160150,{"doc_id":209,"doc_title":210,"file_type":138,"home_preview_img_url":211,"slug":212,"view_count":24,"category_name":30,"create_tm":213},720253,"Arduino Nano Technical Overview - Pinout, Power, Memory, Communication","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230024390057/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796111459&Signature=kGxW4NAM9MbZWpkmNHQ5Do87NnQ%3D","arduino-nano-technical-overview-pinout-power-memory-communication",1795035966]