{"id":6918,"date":"2026-06-22T02:06:30","date_gmt":"2026-06-22T02:06:30","guid":{"rendered":"https:\/\/materialparts.com\/pic16f628a-i-p\/"},"modified":"2026-06-22T02:06:30","modified_gmt":"2026-06-22T02:06:30","slug":"pic16f628a-i-p","status":"publish","type":"post","link":"https:\/\/materialparts.com\/zh\/pic16f628a-i-p\/","title":{"rendered":"PIC16F628A-I\/P"},"content":{"rendered":"<h2>\u4ea7\u54c1\u6982\u89c8<\/h2>\n<p>The PIC16F628A-I\/P from Microchip Technology is an 8-bit PIC microcontroller with 1.75KB Flash, 224B RAM, 16 I\/O, dual comparator, and DIP-18 package.<\/p>\n<h2>\u4e3b\u8981\u89c4\u683c<\/h2>\n<table>\n<tr>\n<td>\u7c7b\u578b<\/td>\n<td>8-bit PIC Microcontroller<\/td>\n<\/tr>\n<tr>\n<td>Max Frequency<\/td>\n<td>20 MHz<\/td>\n<\/tr>\n<tr>\n<td>\u95ea\u5149\u706f<\/td>\n<td>1.75 KB (2048 words x 14 bits)<\/td>\n<\/tr>\n<tr>\n<td>SRAM<\/td>\n<td>224 bytes<\/td>\n<\/tr>\n<tr>\n<td>EEPROM<\/td>\n<td>128 bytes<\/td>\n<\/tr>\n<tr>\n<td>I\/O Pins<\/td>\n<td>16<\/td>\n<\/tr>\n<tr>\n<td>\u8ba1\u65f6\u5668<\/td>\n<td>3 (Timer0, Timer1, Timer2)<\/td>\n<\/tr>\n<tr>\n<td>Comparators<\/td>\n<td>2<\/td>\n<\/tr>\n<tr>\n<td>\u4ea4\u6d41<\/td>\n<td>1x EUSART<\/td>\n<\/tr>\n<tr>\n<td>Capture\/Compare\/PWM<\/td>\n<td>1 (CCP module)<\/td>\n<\/tr>\n<tr>\n<td>\u7535\u6e90\u7535\u538b<\/td>\n<td>3.0V to 5.5V<\/td>\n<\/tr>\n<tr>\n<td>\u5305\u88c5<\/td>\n<td>DIP-18 (300 mil)<\/td>\n<\/tr>\n<tr>\n<td>\u5de5\u4f5c\u6e29\u5ea6<\/td>\n<td>-40C to +85C (I grade)<\/td>\n<\/tr>\n<\/table>\n<h2>\u7279\u70b9<\/h2>\n<ul>\n<li>1.75KB Flash with 100,000 erase\/write cycles<\/li>\n<li>128 bytes EEPROM data memory<\/li>\n<li>Internal 4 MHz oscillator (no external crystal needed)<\/li>\n<li>Dual comparator with internal voltage reference<\/li>\n<li>DIP-18 package for prototyping and education<\/li>\n<li>Low-cost entry point for PIC development<\/li>\n<\/ul>\n<h2>\u5e94\u7528<\/h2>\n<ul>\n<li>Educational and hobby projects<\/li>\n<li>Simple control applications<\/li>\n<li>Replacement for 555 timer circuits<\/li>\n<li>Serial communication bridge<\/li>\n<\/ul>","protected":false},"excerpt":{"rendered":"<p>Product Overview The PIC16F628A-I\/P from Microchip Technology is an 8-bit PIC microcontroller with 1.75KB Flash, 224B RAM, 16 I\/O, dual comparator, and DIP-18 package. Key Specifications Type 8-bit PIC Microcontroller Max Frequency 20 MHz Flash 1.75 KB (2048 words x 14 bits) SRAM 224 bytes EEPROM 128 bytes I\/O Pins 16 Timers 3 (Timer0, Timer1, [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[13,25],"tags":[],"chip_brand":[134],"class_list":["post-6918","post","type-post","status-publish","format-standard","hentry","category-integrated-circuits-ics","category-microcontrollers-mcu","chip_brand-microchip"],"acf":{"brief_explanation":"8-bit PIC MCU, 1.75KB Flash, 16 I\/O, DIP-18","date_code":"","package_case":"PDIP-18 (23.5 x 6.35 x 5.0 mm, 300 mil)","in_stock":23456,"datasheet":"https:\/\/ww1.microchip.com\/downloads\/en\/DeviceDoc\/40044F.pdf","price":"$0.90 @ 1ku","product_introduction":"The PIC16F628A-I\/P from Microchip Technology is a classic 8-bit PIC microcontroller in a through-hole DIP-18 package, widely used in education, hobby electronics, and simple control applications. The 1.75KB Flash and 224 bytes SRAM provide adequate resources for small firmware projects. The 128-byte EEPROM enables non-volatile data storage. The internal 4 MHz oscillator eliminates the need for an external crystal for basic operation, while external clock options up to 20 MHz are supported. The dual comparator with an internal voltage reference enables analog monitoring without external components. The EUSART supports serial communication for debugging and data transfer. The CCP module provides capture, compare, and PWM functions for timing and motor control. The DIP-18 package makes this device ideal for breadboard prototyping, educational labs, and legacy through-hole designs.","working_principle":"The PIC16F628A uses Microchip's baseline 14-bit instruction word PIC core with an 8-level hardware stack. Most instructions execute in a single cycle at the clock rate (200 ns at 20 MHz). The 1.75KB Flash stores up to 2048 14-bit instructions. The 224 bytes of SRAM includes the special function registers (SFRs) and general-purpose registers. The internal oscillator runs at 4 MHz by default, configurable via the configuration register. The dual comparator module can compare external pin voltages against each other or against an internal 16-tap voltage reference. The CCP module can capture timer values on external events (capture mode), generate timed outputs (compare mode), or produce PWM waveforms (PWM mode). The EUSART implements asynchronous serial communication with configurable baud rate derived from the timer or oscillator. The 128-byte EEPROM uses a separate address space and requires special read\/write sequences with a write completion flag.","pin_description":"<table><tr><th>Pin<\/th><th>Name<\/th><th>Type<\/th><th>Function<\/th><\/tr><tr><td>1<\/td><td>RA2\/AN2\/VREF<\/td><td>I\/O<\/td><td>Port A bit 2 \/ Comparator VREF<\/td><\/tr><tr><td>2<\/td><td>RA3\/AN3\/CMP1<\/td><td>I\/O<\/td><td>Port A bit 3 \/ Comparator 1 input<\/td><\/tr><tr><td>3<\/td><td>RA4\/T0CKI\/CMP2<\/td><td>I\/O<\/td><td>Port A bit 4 \/ Timer0 clock \/ CMP2<\/td><\/tr><tr><td>4<\/td><td>RA5\/MCLR\/VPP<\/td><td>Input<\/td><td>Master Clear (reset) \/ Programming<\/td><\/tr><tr><td>5<\/td><td>VSS<\/td><td>Power<\/td><td>Ground<\/td><\/tr><tr><td>6<\/td><td>RB0\/INT<\/td><td>I\/O<\/td><td>Port B bit 0 \/ External interrupt<\/td><\/tr><tr><td>7-13<\/td><td>RB1-RB7<\/td><td>I\/O<\/td><td>Port B bits 1-7 (shared with serial, CCP)<\/td><\/tr><tr><td>14<\/td><td>VDD<\/td><td>Power<\/td><td>Supply voltage (3.0-5.5V)<\/td><\/tr><tr><td>15-17<\/td><td>RA0-RA1\/RA6<\/td><td>I\/O<\/td><td>Port A bits 0-1, 6<\/td><\/tr><tr><td>18<\/td><td>RA7\/OSC1<\/td><td>I\/O<\/td><td>Port A bit 7 \/ Oscillator input<\/td><\/tr><\/table>","application_scenarios":"<ul><li>Educational lab: blinking LED, push-button debounce, and serial output on breadboard<\/li><li>555 timer replacement: generating timed pulses with the CCP module<\/li><li>Serial-to-parallel converter using EUSART and shift register output<\/li><li>Battery monitor using dual comparators and internal VREF<\/li><\/ul>","alternative_models":"<table><tr><th>Manufacturer<\/th><th>Part Number<\/th><th>Package<\/th><th>Notes<\/th><\/tr><tr><td>Microchip<\/td><td>PIC16F648A-I\/P<\/td><td>DIP-18<\/td><td>4KB Flash upgrade, pin-compatible<\/td><\/tr><tr><td>Microchip<\/td><td>PIC16F627A-I\/P<\/td><td>DIP-18<\/td><td>1KB Flash, lower cost<\/td><\/tr><tr><td>Microchip<\/td><td>PIC16F887-I\/P<\/td><td>DIP-40<\/td><td>More I\/O, more Flash, larger package<\/td><\/tr><tr><td>Microchip<\/td><td>ATtiny2313A-PU<\/td><td>DIP-20<\/td><td>AVR alternative, 2KB Flash<\/td><\/tr><tr><td>Microchip<\/td><td>PIC16F18426-I\/P<\/td><td>DIP-14<\/td><td>Newer PIC, more features, fewer pins<\/td><\/tr><\/table>"},"_links":{"self":[{"href":"https:\/\/materialparts.com\/zh\/wp-json\/wp\/v2\/posts\/6918","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/materialparts.com\/zh\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/materialparts.com\/zh\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/materialparts.com\/zh\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/materialparts.com\/zh\/wp-json\/wp\/v2\/comments?post=6918"}],"version-history":[{"count":0,"href":"https:\/\/materialparts.com\/zh\/wp-json\/wp\/v2\/posts\/6918\/revisions"}],"wp:attachment":[{"href":"https:\/\/materialparts.com\/zh\/wp-json\/wp\/v2\/media?parent=6918"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/materialparts.com\/zh\/wp-json\/wp\/v2\/categories?post=6918"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/materialparts.com\/zh\/wp-json\/wp\/v2\/tags?post=6918"},{"taxonomy":"chip_brand","embeddable":true,"href":"https:\/\/materialparts.com\/zh\/wp-json\/wp\/v2\/chip_brand?post=6918"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}