{"id":15012057,"url":"https://github.com/socxin/ch552","last_synced_at":"2025-04-12T03:31:07.149Z","repository":{"id":45664601,"uuid":"153390528","full_name":"SoCXin/CH552","owner":"SoCXin","description":"L1 R1：WCH 24MHz MCS-51 USB MCU (CH552T/CH552P/CH552E/CH552G/CH551G)","archived":false,"fork":false,"pushed_at":"2023-01-28T13:27:39.000Z","size":2401,"stargazers_count":51,"open_issues_count":0,"forks_count":13,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-03-25T23:22:13.203Z","etag":null,"topics":["8051","ldo","lowcost","lowpin","mcu","pio","qitas","type-c","usb","usb-device","wch"],"latest_commit_sha":null,"homepage":"https://doc.soc.xin/CH552","language":"C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/SoCXin.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null},"funding":{"github":null,"patreon":null,"open_collective":null,"ko_fi":"qitas","tidelift":null,"community_bridge":null,"liberapay":null,"issuehunt":null,"otechie":null,"custom":null}},"created_at":"2018-10-17T03:31:45.000Z","updated_at":"2025-02-14T16:12:49.000Z","dependencies_parsed_at":"2023-02-15T16:30:41.600Z","dependency_job_id":null,"html_url":"https://github.com/SoCXin/CH552","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SoCXin%2FCH552","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SoCXin%2FCH552/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SoCXin%2FCH552/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SoCXin%2FCH552/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/SoCXin","download_url":"https://codeload.github.com/SoCXin/CH552/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248512525,"owners_count":21116616,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["8051","ldo","lowcost","lowpin","mcu","pio","qitas","type-c","usb","usb-device","wch"],"created_at":"2024-09-24T19:42:03.074Z","updated_at":"2025-04-12T03:31:04.951Z","avatar_url":"https://github.com/SoCXin.png","language":"C","funding_links":["https://ko-fi.com/qitas"],"categories":[],"sub_categories":[],"readme":"﻿# [CH552](https://doc.soc.xin/CH552)\r\n\r\n[![Build Status](https://github.com/SoCXin/CH552/workflows/demo/badge.svg)](https://github.com/SoCXin/CH552/actions/workflows/demo.yml)\r\n[![Build Status](https://github.com/SoCXin/CH552/workflows/src/badge.svg)](https://github.com/SoCXin/CH552/actions/workflows/src.yml)\r\n\r\n* [WCH](http://www.wch.cn/)：[MCS-51](https://github.com/SoCXin/MCS-51)\r\n* [L1R1](https://github.com/SoCXin/Level)：24 MHz\r\n\r\n## [简介](https://doc.soc.xin/CH552)\r\n\r\n[CH552](http://www.wch.cn/products/CH552.html) 兼容MCS51的增强型E8051内核，79%指令是单字节单周期指令，2KB BootLoader + 14KB Flash，1K xRAM(支持DMA) +256B iRAM，128B DataFlash。\r\n\r\n内置24MHz时钟源和PLL，内置了ADC模数转换、触摸按键电容检测、3组定时器和信号捕捉及PWM、双异步串口、SPI、USB设备控制器和全速收发器、USB type-C等功能模块。\r\n\r\n### 关键参数\r\n\r\n* 24 MHz MCS-51 Core\r\n* 256B IRAM + 1KB SRAM + 14KB FLASH + 128B EEPROM\r\n* 5V-\u003e3.3V LDO\r\n* 2KB BootLoader，支持USB和串口ISP\r\n* Type-C 主从检测\r\n* USB device fs\r\n* UART x 2 + SPI x 1\r\n* 小封装 (TSSOP20/SOP16/MSOP10/QFN16)\r\n\r\n## [资源收录](https://github.com/SoCXin)\r\n\r\n* [参考资源](src/)\r\n* [参考文档](docs/)\r\n* [参考工程](project/)\r\n\r\n## [选型建议](https://github.com/SoCXin/PL51RC003)\r\n\r\n[CH552](https://item.szlcsc.com/112593.html) 在USB应用领域拥有较高的人气，低阶高性价比的USB单片机。可以使用平台[platform-wch51](https://github.com/OS-Q/platform-wch51)进行开发，支持官方库和arduino\r\n\r\n所属同系列中[CH554](https://github.com/SoCXin/CH554) 增加支持USB HOST主机模式。[CH551](http://www.wch.cn/products/CH551.html)的ROM降为10K，片内xRAM为512字节，异步串口仅提供UART0，仅SOP16封装，并且去掉了ADC模数转换模块和USB type-C模块。\r\n\r\n相较[STM8S003](https://github.com/SoCXin/STM8S003) 及 [N76E003](https://github.com/SoCXin/N76E003) 系列产品，[CH552](https://github.com/SoCXin/CH552)缺少IIC硬件，ADC较弱，没有专门的 eeprom存储器。TSSOP20封装不兼容前两者，无法直接替换。\r\n\r\n## [www.SoC.xin](http://www.SoC.Xin)\r\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsocxin%2Fch552","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsocxin%2Fch552","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsocxin%2Fch552/lists"}