Initial commit: ch55xtool

This commit is contained in:
eddyem 2020-11-16 01:00:51 +03:00
parent 2e60721244
commit d6137006fd
22 changed files with 5049 additions and 0 deletions

33
.gitignore vendored Normal file
View File

@ -0,0 +1,33 @@
*~
*.bak
*.bck
*-cache.lib
*.kicad_pcb-bak
*.dcm
*.pho
*.drl
*.pdf
*.svg
*.ods
*.xml
*/mk/*
.hg*
.dropbox.attr
*.sublime-project
*.sublime-workspace
F1/client-term/client
*.bk
*.config
*.creator
*.creator.user*
*.files
*.includes
*.cflags
*.config
*.creator*
*.cxxflags
*.files
*.includes
*-bak

4
CH55xtool/59-ch55x.rules Normal file
View File

@ -0,0 +1,4 @@
# ch552 bootloader
SUBSYSTEMS=="usb", ATTRS{idVendor}=="4348", ATTRS{idProduct}=="55e0", MODE:="0666", SYMLINK+="ch55x_%n"

167
CH55xtool/CMakeLists.txt Normal file
View File

@ -0,0 +1,167 @@
cmake_minimum_required(VERSION 2.8)
set(PROJ ch55tool)
set(MINOR_VERSION "1")
set(MID_VERSION "0")
set(MAJOR_VERSION "0")
set(VERSION "${MAJOR_VERSION}.${MID_VERSION}.${MINOR_VERSION}")
enable_language(C)
message("VER: ${VERSION}")
# default flags
set(CFLAGS -O2 -Wextra -Wall -Werror -W -std=gnu99)
set(CMAKE_COLOR_MAKEFILE ON)
# here is one of two variants: all .c in directory or .c files in list
aux_source_directory(${CMAKE_CURRENT_SOURCE_DIR} SOURCES)
#list(REMOVE_ITEM SOURCES ${CMAKE_CURRENT_SOURCE_DIR}/<file to remove>)
#set(SOURCES list_of_c_files)
# we can change file list
#if(NOT DEFINED something)
# set(SOURCES ${SOURCES} one_more_list)
# add_definitions(-DSOME_DEFS)
#endif()
# cmake -DEBUG=1 -> debugging
if(DEFINED EBUG)
add_definitions(-DEBUG)
endif()
# directory should contain dir locale/ru for gettext translations
set(LCPATH ${CMAKE_SOURCE_DIR}/locale/ru)
if(NOT DEFINED LOCALEDIR)
if(DEFINED DEBUG)
set(LOCALEDIR ${CMAKE_CURRENT_SOURCE_DIR}/locale)
else()
set(LOCALEDIR ${CMAKE_INSTALL_PREFIX}/share/locale)
endif()
endif()
###### pkgconfig ######
# pkg-config modules (for pkg-check-modules)
set(MODULES usefull_macros libusb-1.0)
# additional modules on condition
#if(DEFINED SOMETHING)
# set(MODULES ${MODULES} more_modules>=version)
# add_definitions(-DSOMEDEFS)
#endif()
# find packages:
find_package(PkgConfig REQUIRED)
# non-required
#find_package(<pkg1>)
pkg_check_modules(${PROJ} REQUIRED ${MODULES})
# external modules like OpenMP:
#include(FindOpenMP)
#if(OPENMP_FOUND)
# set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} ${OpenMP_C_FLAGS}")
# set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${OpenMP_CXX_FLAGS}")
# set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} ${OpenMP_EXE_LINKER_FLAGS}")
#endif()
# append data from find_package:
#list(APPEND ${PROJ}_INCLUDE_DIRS ${<pkg1>_INCLUDE_DIR} ${<pkg2>_INCLUDE_DIR})
#list(APPEND ${PROJ}_LIBRARIES ${<pkg1>_LIBRARY} ${<pkg2>_LIBRARY})
#list(APPEND ${${PROJ}_LIBRARY_DIRS} ${<pkg1>_LIBRARY_DIRS})
###### additional flags ######
#set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -lfftw3_threads")
# conditional check:
#if(NOT DEFINED NO_GSL)
# pkg_check_modules(GSL gsl)
#endif()
#if(NOT DEFINED GSL_VERSION)
# message("GSL not found, some mathematics functions wouldn't be avialable")
#else()
# add_definitions(-DGSL_FOUND)
#endif()
project(${PROJ})
# change wrong behaviour with install prefix
if(CMAKE_INSTALL_PREFIX_INITIALIZED_TO_DEFAULT AND CMAKE_INSTALL_PREFIX MATCHES "/usr/local")
message("Change default install path to /usr")
set(CMAKE_INSTALL_PREFIX "/usr")
endif()
message("Install dir prefix: ${CMAKE_INSTALL_PREFIX}")
# gettext files
set(PO_FILE ${LCPATH}/messages.po)
set(MO_FILE ${LCPATH}/LC_MESSAGES/${PROJ}.mo)
set(RU_FILE ${LCPATH}/ru.po)
# exe file
add_executable(${PROJ} ${SOURCES})
# another exe, depending on some other files
#add_executable(test_client client.c usefull_macros.c parceargs.c)
# -I
include_directories(${${PROJ}_INCLUDE_DIRS})
# -L
link_directories(${${PROJ}_LIBRARY_DIRS})
# -D
add_definitions(${CFLAGS} -DLOCALEDIR=\"${LOCALEDIR}\"
-DPACKAGE_VERSION=\"${VERSION}\" -DGETTEXT_PACKAGE=\"${PROJ}\"
-DMINOR_VERSION=\"${MINOR_VERSION}\" -DMID_VERSION=\"${MID_VERSION}\"
-DMAJOR_VERSION=\"${MAJOR_VESION}\")
###### pthreads ######
find_package(Threads REQUIRED)
if(THREADS_HAVE_PTHREAD_ARG)
set_property(TARGET ${PROJ} PROPERTY COMPILE_OPTIONS "-pthread")
set_property(TARGET ${PROJ} PROPERTY INTERFACE_COMPILE_OPTIONS "-pthread")
endif()
if(CMAKE_THREAD_LIBS_INIT)
list(APPEND ${PROJ}_LIBRARIES "${CMAKE_THREAD_LIBS_INIT}")
endif()
# target libraries
target_link_libraries(${PROJ} ${${PROJ}_LIBRARIES})
# Installation of the program
INSTALL(FILES ${CMAKE_SOURCE_DIR}/59-ch55x.rules DESTINATION /etc/udev/rules.d/)
INSTALL(TARGETS ${PROJ} DESTINATION "bin")
#PERMISSIONS OWNER_WRITE OWNER_READ OWNER_EXECUTE GROUP_READ GROUP_EXECUTE WORLD_READ WORLD_EXECUTE)
INSTALL(FILES ${MO_FILE} DESTINATION "share/locale/ru/LC_MESSAGES")
#PERMISSIONS OWNER_WRITE OWNER_READ GROUP_READ WORLD_READ)
# Script to be executed at installation time (kind of post-intallation script) to
# change the right accesses on the installed files
#INSTALL(SCRIPT inst.cmake)
###### gettext ######
find_package(Gettext REQUIRED)
find_program(GETTEXT_XGETTEXT_EXECUTABLE xgettext)
if(NOT GETTEXT_XGETTEXT_EXECUTABLE OR NOT GETTEXT_MSGFMT_EXECUTABLE)
message(FATAL_ERROR "xgettext not found")
endif()
file(MAKE_DIRECTORY ${LCPATH})
file(MAKE_DIRECTORY ${LCPATH}/LC_MESSAGES)
add_custom_command(
OUTPUT ${PO_FILE}
WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}
COMMAND ${GETTEXT_XGETTEXT_EXECUTABLE} --from-code=utf-8 ${SOURCES} -c -k_ -kN_ -o ${PO_FILE}
COMMAND sed -i 's/charset=.*\\\\n/charset=koi8-r\\\\n/' ${PO_FILE}
COMMAND enconv ${PO_FILE}
DEPENDS ${SOURCES}
)
# we need this to prewent ru.po from deleting by make clean
add_custom_command(
OUTPUT ${MO_FILE}
COMMAND ${GETTEXT_MSGFMT_EXECUTABLE} ${RU_FILE} -o ${MO_FILE}
DEPENDS ru_file_updated
)
add_custom_command(
OUTPUT ru_file_updated
COMMAND [ -f ${RU_FILE} ] && ${GETTEXT_MSGMERGE_EXECUTABLE} -Uis ${RU_FILE} ${PO_FILE} || cp ${PO_FILE} ${RU_FILE}
COMMAND ${CMAKE_COMMAND} -E touch ru_file_updated
#BYPRODUCTS ${RU_FILE}
DEPENDS ${PO_FILE}
)
add_custom_target(MO_FILE ALL DEPENDS ${MO_FILE})

15
CH55xtool/Readme.md Normal file
View File

@ -0,0 +1,15 @@
CH55xtool
=========
Tool for CH55x flashing [from here](https://github.com/MarsTechHAN/ch552tool), rewritten in C.
```
Usage: ch55tool [args]
Where args are:
-P, --pidfile=arg pidfile (default: /tmp/testcmdlnopts.pid)
-b, --binname=arg name of binary file to flash
-d, --dontrestart don't reset MCU after writing
-h, --help show this help
```

82
CH55xtool/cmdlnopts.c Normal file
View File

@ -0,0 +1,82 @@
/*
* This file is part of the CH55tool project.
* Copyright 2020 Edward V. Emelianov <edward.emelianoff@gmail.com>.
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#include <assert.h>
#include <stdio.h>
#include <string.h>
#include <strings.h>
#include <math.h>
#include "cmdlnopts.h"
#include "usefull_macros.h"
/*
* here are global parameters initialisation
*/
static int help;
static glob_pars G;
// default PID filename:
#define DEFAULT_PIDFILE "/tmp/testcmdlnopts.pid"
// DEFAULTS
// default global parameters
static glob_pars const Gdefault = {
.pidfile = DEFAULT_PIDFILE,
};
/*
* Define command line options by filling structure:
* name has_arg flag val type argptr help
*/
static myoption cmdlnopts[] = {
// common options
{"help", NO_ARGS, NULL, 'h', arg_int, APTR(&help), _("show this help")},
{"pidfile", NEED_ARG, NULL, 'P', arg_string, APTR(&G.pidfile), _("pidfile (default: " DEFAULT_PIDFILE ")")},
{"binname", NEED_ARG, NULL, 'b', arg_string, APTR(&G.binname), _("name of binary file to flash")},
{"dontrestart",NO_ARGS, NULL, 'd', arg_int, APTR(&G.dontrestart),_("don't reset MCU after writing")},
end_option
};
/**
* Parse command line options and return dynamically allocated structure
* to global parameters
* @param argc - copy of argc from main
* @param argv - copy of argv from main
* @return allocated structure with global parameters
*/
glob_pars *parse_args(int argc, char **argv){
int i;
void *ptr;
ptr = memcpy(&G, &Gdefault, sizeof(G)); assert(ptr);
size_t hlen = 1024;
char helpstring[1024], *hptr = helpstring;
snprintf(hptr, hlen, "Usage: %%s [args]\n\n\tWhere args are:\n");
// format of help: "Usage: progname [args]\n"
change_helpstring(helpstring);
// parse arguments
parseargs(&argc, &argv, cmdlnopts);
if(help) showhelp(-1, cmdlnopts);
if(argc > 0){
G.rest_pars_num = argc;
G.rest_pars = MALLOC(char *, argc);
for (i = 0; i < argc; i++)
G.rest_pars[i] = strdup(argv[i]);
}
return &G;
}

38
CH55xtool/cmdlnopts.h Normal file
View File

@ -0,0 +1,38 @@
/*
* This file is part of the CH55tool project.
* Copyright 2020 Edward V. Emelianov <edward.emelianoff@gmail.com>.
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#pragma once
#ifndef CMDLNOPTS_H__
#define CMDLNOPTS_H__
/*
* here are some typedef's for global data
*/
typedef struct{
char *pidfile; // name of PID file
char *binname; // name of binary file
int dontrestart; // don't restart after writing
int rest_pars_num; // number of rest parameters
char** rest_pars; // the rest parameters: array of char*
} glob_pars;
glob_pars *parse_args(int argc, char **argv);
#endif // CMDLNOPTS_H__

Binary file not shown.

View File

@ -0,0 +1,110 @@
# SOME DESCRIPTIVE TITLE.
# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER
# This file is distributed under the same license as the PACKAGE package.
# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
#
#, fuzzy
msgid ""
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2020-11-16 00:54+0300\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
"Language: \n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=koi8-r\n"
"Content-Transfer-Encoding: 8bit\n"
#. common options
#: /Big/Data/00__Electronics/CH551..CH554/ch552tool-master/CH55xtool/cmdlnopts.c:48
msgid "show this help"
msgstr ""
#: /Big/Data/00__Electronics/CH551..CH554/ch552tool-master/CH55xtool/cmdlnopts.c:49
msgid "pidfile (default: "
msgstr ""
#: /Big/Data/00__Electronics/CH551..CH554/ch552tool-master/CH55xtool/cmdlnopts.c:50
msgid "name of binary file to flash"
msgstr ""
#: /Big/Data/00__Electronics/CH551..CH554/ch552tool-master/CH55xtool/cmdlnopts.c:51
msgid "don't reset MCU after writing"
msgstr ""
#: /Big/Data/00__Electronics/CH551..CH554/ch552tool-master/CH55xtool/main.c:47
#, c-format
msgid "Another copy of this process found, pid=%d. Exit."
msgstr ""
#: /Big/Data/00__Electronics/CH551..CH554/ch552tool-master/CH55xtool/main.c:55
#, c-format
msgid "%d extra options:\n"
msgstr ""
#: /Big/Data/00__Electronics/CH551..CH554/ch552tool-master/CH55xtool/main.c:71
msgid "Chip not found"
msgstr ""
#: /Big/Data/00__Electronics/CH551..CH554/ch552tool-master/CH55xtool/main.c:74
msgid "Bad chip version"
msgstr ""
#: /Big/Data/00__Electronics/CH551..CH554/ch552tool-master/CH55xtool/main.c:75
#, c-format
msgid "Found %s, version %s; flash size %d\n"
msgstr ""
#. just check chip
#: /Big/Data/00__Electronics/CH551..CH554/ch552tool-master/CH55xtool/main.c:77
msgid "Can't erase chip"
msgstr ""
#: /Big/Data/00__Electronics/CH551..CH554/ch552tool-master/CH55xtool/main.c:78
#, c-format
msgid "Try to write %s\n"
msgstr ""
#: /Big/Data/00__Electronics/CH551..CH554/ch552tool-master/CH55xtool/main.c:79
msgid "Can't write flash"
msgstr ""
#: /Big/Data/00__Electronics/CH551..CH554/ch552tool-master/CH55xtool/main.c:80
msgid "Verify data\n"
msgstr ""
#: /Big/Data/00__Electronics/CH551..CH554/ch552tool-master/CH55xtool/main.c:81
msgid "Verification of flash failed"
msgstr ""
#: /Big/Data/00__Electronics/CH551..CH554/ch552tool-master/CH55xtool/main.c:82
msgid "Can't fix writing"
msgstr ""
#: /Big/Data/00__Electronics/CH551..CH554/ch552tool-master/CH55xtool/main.c:84
msgid "Reset MCU\n"
msgstr ""
#: /Big/Data/00__Electronics/CH551..CH554/ch552tool-master/CH55xtool/usb.c:66
msgid "No devices found"
msgstr ""
#: /Big/Data/00__Electronics/CH551..CH554/ch552tool-master/CH55xtool/usb.c:135
#, c-format
msgid "Version %s not supported\n"
msgstr ""
#: /Big/Data/00__Electronics/CH551..CH554/ch552tool-master/CH55xtool/usb.c:149
msgid "Wrong getver()?"
msgstr ""
#: /Big/Data/00__Electronics/CH551..CH554/ch552tool-master/CH55xtool/usb.c:150
msgid "Wrong detect_chip()?"
msgstr ""
#: /Big/Data/00__Electronics/CH551..CH554/ch552tool-master/CH55xtool/usb.c:152
#, c-format
msgid "Can't open %s"
msgstr ""

109
CH55xtool/locale/ru/ru.po Normal file
View File

@ -0,0 +1,109 @@
# SOME DESCRIPTIVE TITLE.
# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER
# This file is distributed under the same license as the PACKAGE package.
# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
#
msgid ""
msgstr "Project-Id-Version: \n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2020-11-16 00:54+0300\n"
"PO-Revision-Date: 2020-11-16 00:50+0300\n"
"Last-Translator: \n"
"Language-Team: \n"
"Language: ru\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=koi8-r\n"
"Content-Transfer-Encoding: 8bit\n"
"X-Generator: Poedit 2.3.1\n"
#: /Big/Data/00__Electronics/CH551..CH554/ch552tool-master/CH55xtool/main.c:55
#, c-format
msgid "%d extra options:\n"
msgstr "%d ÌÉÛÎÉÈ ÏÐÃÉÊ:\n"
#: /Big/Data/00__Electronics/CH551..CH554/ch552tool-master/CH55xtool/main.c:47
#, c-format
msgid "Another copy of this process found, pid=%d. Exit."
msgstr "îÁÊÄÅÎÁ ÄÒÕÇÁÑ ËÏÐÉÑ ÜÔÏÇÏ ÐÒÏÃÅÓÓÁ, pid=%d. ÷ÙÈÏÄ."
#: /Big/Data/00__Electronics/CH551..CH554/ch552tool-master/CH55xtool/main.c:74
msgid "Bad chip version"
msgstr "îÅÐÒÁ×ÉÌØÎÁÑ ×ÅÒÓÉÑ ÞÉÐÁ"
#. just check chip
#: /Big/Data/00__Electronics/CH551..CH554/ch552tool-master/CH55xtool/main.c:77
msgid "Can't erase chip"
msgstr "îÅ ÍÏÇÕ ÏÞÉÓÔÉÔØ ÞÉÐ"
#: /Big/Data/00__Electronics/CH551..CH554/ch552tool-master/CH55xtool/main.c:82
msgid "Can't fix writing"
msgstr "îÅ ÍÏÇÕ ÚÁ×ÅÒÛÉÔØ ÚÁÐÉÓØ"
#: /Big/Data/00__Electronics/CH551..CH554/ch552tool-master/CH55xtool/usb.c:152
#, c-format
msgid "Can't open %s"
msgstr "îÅ ÍÏÇÕ ÏÔËÒÙÔØ %s"
#: /Big/Data/00__Electronics/CH551..CH554/ch552tool-master/CH55xtool/main.c:79
msgid "Can't write flash"
msgstr "îÅ ÍÏÇÕ ÚÁÐÉÓÁÔØ ÆÌÅÛ"
#: /Big/Data/00__Electronics/CH551..CH554/ch552tool-master/CH55xtool/main.c:71
msgid "Chip not found"
msgstr "þÉÐ ÎÅ ÎÁÊÄÅÎ"
#: /Big/Data/00__Electronics/CH551..CH554/ch552tool-master/CH55xtool/main.c:75
#, c-format
msgid "Found %s, version %s; flash size %d\n"
msgstr "îÁÊÄÅÎ %s, ×ÅÒÓÉÑ %s; ÒÁÚÍÅÒ ÆÌÅÛÁ %d\n"
#: /Big/Data/00__Electronics/CH551..CH554/ch552tool-master/CH55xtool/usb.c:66
msgid "No devices found"
msgstr "õÓÔÒÏÊÓÔ×Á ÎÅ ÏÂÎÁÒÕÖÅÎÙ"
#: /Big/Data/00__Electronics/CH551..CH554/ch552tool-master/CH55xtool/main.c:84
msgid "Reset MCU\n"
msgstr "ðÅÒÅÚÁÐÕÓË íë\n"
#: /Big/Data/00__Electronics/CH551..CH554/ch552tool-master/CH55xtool/main.c:78
#, c-format
msgid "Try to write %s\n"
msgstr "ðÙÔÁÀÓØ ÚÁÐÉÓÁÔØ %s\n"
#: /Big/Data/00__Electronics/CH551..CH554/ch552tool-master/CH55xtool/main.c:81
msgid "Verification of flash failed"
msgstr "ðÒÏ×ÅÒËÁ ÐÒÏ×ÁÌÉÌÁÓØ"
#: /Big/Data/00__Electronics/CH551..CH554/ch552tool-master/CH55xtool/main.c:80
msgid "Verify data\n"
msgstr "ðÒÏ×ÅÒËÁ ÄÁÎÙÈ\n"
#: /Big/Data/00__Electronics/CH551..CH554/ch552tool-master/CH55xtool/usb.c:135
#, c-format
msgid "Version %s not supported\n"
msgstr "÷ÅÒÓÉÑ %s ÎÅ ÐÏÄÄÅÒÖÉ×ÁÅÔÓÑ\n"
#: /Big/Data/00__Electronics/CH551..CH554/ch552tool-master/CH55xtool/usb.c:150
msgid "Wrong detect_chip()?"
msgstr "îÅÐÒÁ×ÉÌØÎÙÊ detect_chip()?"
#: /Big/Data/00__Electronics/CH551..CH554/ch552tool-master/CH55xtool/usb.c:149
msgid "Wrong getver()?"
msgstr "îÅÐÒÁ×ÉÌØÎÙÊ getver()?"
#: /Big/Data/00__Electronics/CH551..CH554/ch552tool-master/CH55xtool/cmdlnopts.c:51
msgid "don't reset MCU after writing"
msgstr "ÎÅ ÐÅÒÅÚÁÐÕÓËÁÔØ íë ÐÏÓÌÅ ÐÒÏÛÉ×ËÉ"
#: /Big/Data/00__Electronics/CH551..CH554/ch552tool-master/CH55xtool/cmdlnopts.c:50
msgid "name of binary file to flash"
msgstr "ÎÁÚ×ÁÎÉÅ ÂÉÎÁÒÎÉËÁ ÄÌÑ ÐÒÏÛÉ×ËÉ"
#: /Big/Data/00__Electronics/CH551..CH554/ch552tool-master/CH55xtool/cmdlnopts.c:49
msgid "pidfile (default: "
msgstr "pid-ÆÁÊÌ (ÐÏ ÕÍÏÌÞÁÎÉÀ: "
#. common options
#: /Big/Data/00__Electronics/CH551..CH554/ch552tool-master/CH55xtool/cmdlnopts.c:48
msgid "show this help"
msgstr "ÏÔÏÂÒÁÚÉÔØ ÜÔÕ ÓÐÒÁ×ËÕ"

90
CH55xtool/main.c Normal file
View File

@ -0,0 +1,90 @@
/*
* This file is part of the CH55tool project.
* Copyright 2020 Edward V. Emelianov <edward.emelianoff@gmail.com>.
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#include "cmdlnopts.h"
#include "usb.h"
#include <signal.h> // signal
#include <stdio.h> // printf
#include <stdlib.h> // exit, free
#include <string.h> // strdup
#include <sys/types.h> // pid_t
#include <unistd.h> // sleep
#include <usefull_macros.h>
static glob_pars *GP = NULL; // for GP->pidfile need in `signals`
/**
* We REDEFINE the default WEAK function of signal processing
*/
void signals(int sig){
if(sig){
signal(sig, SIG_IGN);
DBG("Get signal %d, quit.\n", sig);
}
if(GP->pidfile) // remove unnesessary PID file
unlink(GP->pidfile);
restore_console();
exit(sig);
}
void iffound_default(pid_t pid){
ERRX(_("Another copy of this process found, pid=%d. Exit."), pid);
}
int main(int argc, char *argv[]){
initial_setup();
char *self = strdup(argv[0]);
GP = parse_args(argc, argv);
if(GP->rest_pars_num){
printf(_("%d extra options:\n"), GP->rest_pars_num);
for(int i = 0; i < GP->rest_pars_num; ++i)
printf("%s\n", GP->rest_pars[i]);
return 1;
}
check4running(self, GP->pidfile);
free(self);
signal(SIGTERM, signals); // kill (-15) - quit
signal(SIGHUP, SIG_IGN); // hup - ignore
signal(SIGINT, signals); // ctrl+C - quit
signal(SIGQUIT, signals); // ctrl+\ - quit
signal(SIGTSTP, SIG_IGN); // ignore ctrl+Z
setup_con();
const ch55descr *descr = detect_chip();
if(!descr){
ERRX(_("Chip not found"));
}
char *ver = getver();
if(!ver) ERRX(_("Bad chip version"));
green(_("Found %s, version %s; flash size %d\n"), descr->devname, ver, descr->flash_size);
if(!GP->binname) signals(0); // just check chip
if(erasechip()) ERRX(_("Can't erase chip"));
green(_("Try to write %s\n"), GP->binname);
if(writeflash(GP->binname)) ERRX(_("Can't write flash"));
green(_("Verify data\n"));
if(verifyflash(GP->binname)) ERRX(_("Verification of flash failed"));
if(endflash()) ERRX(_("Can't fix writing"));
if(!GP->dontrestart){
green(_("Reset MCU\n"));
restart();
}
// clean everything
signals(0);
return 0;
}

195
CH55xtool/usb.c Normal file
View File

@ -0,0 +1,195 @@
/*
* This file is part of the CH55tool project.
* Copyright 2020 Edward V. Emelianov <edward.emelianoff@gmail.com>.
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#include <libusb.h>
#include <stdio.h>
#include <string.h>
#include <usefull_macros.h>
#include "usb.h"
#define DETECT_CHIP_LEN (6)
#define GETVER_LEN (30)
#define SENDKEYLEN (6)
#define ERASELEN (6)
#define WRITELEN (6)
#define WRITEPACKETLEN (56)
#define WRITEVERIFYSZ (64)
#define FIXLEN (6)
static uint8_t DETECT_CHIP_CMD_V2[] = "\xA1\x12\x00\x52\x11MCU ISP & WCH.CN";
static uint8_t READ_CFG_CMD_V2[] = {0xa7, 0x02, 0x00, 0x1f, 0x00};
static uint8_t SEND_KEY_CMD_V230[48] = {0xa3, 0x30, 0x00};
static uint8_t SEND_KEY_CMD_V240[56] = {0xa3, 0x38, 0x00};
static uint8_t ERASE_CHIP_CMD_V2[] = {0xa4, 0x01, 0x00, 0x08};
static uint8_t WRITE_CMD_V2[64] = {0xa5, 0x00};
static uint8_t VERIFY_CMD_V2[64] = {0xa6, 0x00};
static uint8_t END_FLASH_CMD_V2[] = {0xa2, 0x01, 0x00, 0x00};
static uint8_t RESET_RUN_CMD_V2[] = {0xa2, 0x01, 0x00, 0x01};
static const ch55descr devlist[] = {
{"CH551", 10240, 0x51},
{"CH552", 16384, 0x52},
{"CH553", 10240, 0x53},
{"CH554", 14336, 0x54},
{"CH559", 61440, 0x59},
{NULL, 0, 0}
};
static uint8_t buf[64];
uint8_t *getusbbuf(){
return buf;
}
static libusb_device_handle *devh = NULL;
int usbcmd(const uint8_t *data, int olen, int ilen){
FNAME();
static libusb_context *ctx = NULL;
int inum, onum;
if(!olen) return 0;
if(!devh){
if(libusb_init(&ctx)) ERR("libusb_init()");
devh = libusb_open_device_with_vid_pid(ctx, CH55VID, CH55PID);
if(!devh) ERR(_("No devices found"));
if(libusb_claim_interface(devh, 0)) ERR("libusb_claim_interface()");
}
#ifdef EBUG
green("usbcmd() send:\n");
for(int i = 0; i < olen; ++i){
printf("0x%02X ", data[i]);
}
printf("\n");
#endif
int oret = libusb_bulk_transfer(devh, EPOUT, (unsigned char*)data, olen, &onum, USB_TIMEOUT);
int iret = libusb_bulk_transfer(devh, EPIN, buf, ilen, &inum, USB_TIMEOUT);
if(oret || iret || onum != olen || inum != ilen){
WARN("libusb_bulk_transfer()");
libusb_release_interface(devh, 0);
libusb_close(devh);
libusb_exit(NULL);
exit(3);
}
#ifdef EBUG
green("usbcmd() got:\n");
for(int i = 0; i < inum; ++i){
printf("0x%02X ", buf[i]);
}
printf("\n");
#endif
return inum;
}
static uint8_t chipid = 0;
const ch55descr *detect_chip(){
int got = usbcmd(DETECT_CHIP_CMD_V2, sizeof(DETECT_CHIP_CMD_V2)-1, DETECT_CHIP_LEN);
if(DETECT_CHIP_LEN != got) return NULL;
const ch55descr *ptr = devlist;
while(ptr->devname){
if(buf[4] == ptr->chipid){
chipid = ptr->chipid;
return ptr;
}
++ptr;
}
return NULL;
}
static int old = -1; // ==1 for V2.30, ==0 for V2.31 or V2.40
static uint8_t chk_sum = 0;
/**
* @brief getver - get version string
* @return version or NULL if failed
*/
char *getver(){
static char v[32];
if(GETVER_LEN != usbcmd(READ_CFG_CMD_V2, sizeof(READ_CFG_CMD_V2), GETVER_LEN)) return NULL;
snprintf(v, 32, "V%d.%d%d", buf[19], buf[20], buf[21]);
int s = buf[22] + buf[23] + buf[24] + buf[25];
chk_sum = s&0xff;
DBG("chk_sum=0x%02X", chk_sum);
if(strcmp(v, "V2.30") == 0){ // ver 2.30, sendkey
for(int i = 3; i < 48; ++i) SEND_KEY_CMD_V230[i] = chk_sum;
DBG("Write key");
if(SENDKEYLEN != usbcmd(SEND_KEY_CMD_V230, sizeof(SEND_KEY_CMD_V230), SENDKEYLEN)) return NULL;
if(buf[3]) return NULL;
old = 1;
}else if(strcmp(v, "V2.31") == 0 || strcmp(v, "V2.40") == 0){
if(SENDKEYLEN != usbcmd(SEND_KEY_CMD_V240, sizeof(SEND_KEY_CMD_V240), SENDKEYLEN)) return NULL;
if(buf[3]) return NULL;
old = 0;
}else{
WARNX(_("Version %s not supported\n"), v);
return NULL;
}
return v;
}
int erasechip(){
if(ERASELEN != usbcmd(ERASE_CHIP_CMD_V2, sizeof(ERASE_CHIP_CMD_V2), ERASELEN)) return 1;
if(buf[3]) return 2;
return 0;
}
static int writeverify(char *filename, uint8_t *cmd){
uint8_t packet[WRITEPACKETLEN];
if(old < 0) ERRX(_("Wrong getver()?"));
if(!chipid) ERRX(_("Wrong detect_chip()?"));
FILE *f = fopen(filename, "r");
if(!f) ERR(_("Can't open %s"), filename);
size_t n = 0, curr_addr = 0;
do{
memset(packet, 0, WRITEPACKETLEN);
if(!(n = fread(packet, 1, WRITEPACKETLEN, f))) break;
n = WRITEPACKETLEN;
for(size_t i = 0; i < n; i++){
if(i % 8 == 7) packet[i] = packet[i] ^ ((chk_sum + chipid) & 0xff);
else if(old == 0) packet[i] ^= chk_sum;
}
cmd[1] = (n + 5) & 0xff;
cmd[3] = curr_addr & 0xff;
cmd[4] = (curr_addr >> 8) & 0xff;
cmd[7] = 56;//n & 0xff;
curr_addr += n;
memcpy(&cmd[8], packet, n);
if(WRITELEN != usbcmd(cmd, n+8, WRITELEN)){
fclose(f);
return 1;
}
if(buf[4]) WARNX("buf[4]==0x%02X", buf[4]);
}while(n == WRITEPACKETLEN);
fclose(f);
return 0;
}
int writeflash(char *filename){
return writeverify(filename, WRITE_CMD_V2);
}
int verifyflash(char *filename){
return writeverify(filename, VERIFY_CMD_V2);
}
int endflash(){
if(FIXLEN != usbcmd(END_FLASH_CMD_V2, sizeof(END_FLASH_CMD_V2), FIXLEN) || buf[4]) return 1;
return 0;
}
void restart(){
int onum;
libusb_bulk_transfer(devh, EPOUT, (unsigned char*)RESET_RUN_CMD_V2, sizeof(RESET_RUN_CMD_V2), &onum, USB_TIMEOUT);
}

48
CH55xtool/usb.h Normal file
View File

@ -0,0 +1,48 @@
/*
* This file is part of the CH55tool project.
* Copyright 2020 Edward V. Emelianov <edward.emelianoff@gmail.com>.
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#pragma once
#ifndef USB_H__
#define USB_H__
#include <stdint.h>
#include <stdlib.h>
#define CH55VID (0x4348)
#define CH55PID (0x55E0)
#define EPOUT (0x02)
#define EPIN (0x82)
#define USB_TIMEOUT (2000)
typedef struct{
char *devname; // device name
uint16_t flash_size; // flash size
uint8_t chipid; // chip ID
} ch55descr;
uint8_t *getusbbuf();
int usbcmd (const uint8_t *data, int olen, int ilen);
const ch55descr *detect_chip();
char *getver();
int erasechip();
int writeflash(char *filename);
int verifyflash(char *filename);
int endflash();
void restart();
#endif // USB_H__

View File

@ -0,0 +1,50 @@
"Source:","/home/eddy/Docs/SAO/ELECTRONICS/CH551..CH554/devboard_552G/ch552g_devbrd/ch552g_devbrd.sch"
"Date:","ðÔ 24 ÍÁÑ 2019 14:19:50"
"Tool:","Eeschema (6.0.0-rc1-dev-1613-ga55d9819b)"
"Generator:","/usr/local/share/kicad/plugins/bom_csv_grouped_by_value.py"
"Component Count:","19"
"Individual Components:"
"Item","Qty","Reference(s)","Value","LibPart","Footprint","Datasheet"
"","","C1","0.1","stm32-rescue:C","Capacitor_SMD:C_0603_1608Metric_Pad1.05x0.95mm_HandSolder",""
"","","C2","0.1","stm32-rescue:C","Capacitor_SMD:C_0603_1608Metric_Pad1.05x0.95mm_HandSolder",""
"","","C3","0.1","Device:C","Capacitor_SMD:C_0805_2012Metric_Pad1.15x1.40mm_HandSolder","~"
"","","C4","0.1","Device:C","Capacitor_SMD:C_0805_2012Metric_Pad1.15x1.40mm_HandSolder","~"
"","","D1","LED","stm32-rescue:LED-RESCUE-stm32","LED_THT:LED_D5.0mm",""
"","","J1","USART0","Connector_Generic:Conn_01x03","Connector_PinHeader_2.54mm:PinHeader_1x03_P2.54mm_Vertical","~"
"","","J2","Ext","Connector_Generic:Conn_01x07","Connector_PinHeader_2.54mm:PinHeader_1x07_P2.54mm_Vertical","~"
"","","P1","USB_B","stm32-rescue:USB_A-RESCUE-stm32","Connectors_USB:USB_B_OST_USB-B1HSxx_Horizontal",""
"","","Q1","DTA114Y","Transistor_BJT:DTA114Y","TO_SOT_Packages_SMD:SOT-323_SC-70_Handsoldering",""
"","","R1","10k","stm32-rescue:R","Resistor_SMD:R_0603_1608Metric_Pad1.05x0.95mm_HandSolder",""
"","","R2","22k","stm32-rescue:R","Resistor_SMD:R_0603_1608Metric_Pad1.05x0.95mm_HandSolder",""
"","","R3","22","stm32-rescue:R","Resistor_SMD:R_0603_1608Metric_Pad1.05x0.95mm_HandSolder",""
"","","R4","22","stm32-rescue:R","Resistor_SMD:R_0603_1608Metric_Pad1.05x0.95mm_HandSolder",""
"","","R5","330","stm32-rescue:R","Resistor_SMD:R_0805_2012Metric_Pad1.15x1.40mm_HandSolder",""
"","","R6","1k5","stm32-rescue:R","Resistor_SMD:R_0603_1608Metric_Pad1.05x0.95mm_HandSolder",""
"","","SW1","Reset","stm32-rescue:SW_Push","Button_Switch_THT:SW_PUSH_6mm",""
"","","SW2","Prog","stm32-rescue:SW_Push","Button_Switch_THT:SW_PUSH_6mm",""
"","","SW3","Button","stm32-rescue:SW_Push","Button_Switch_THT:SW_PUSH_6mm",""
"","","U1","CH552G","ch55x:CH552G","Package_DIP:DIP-16_W7.62mm_LongPads",""
"Collated Components:"
"Item","Qty","Reference(s)","Value","LibPart","Footprint","Datasheet"
"1","2","C1, C2","0.1","stm32-rescue:C","Capacitor_SMD:C_0603_1608Metric_Pad1.05x0.95mm_HandSolder",""
"2","2","C3, C4","0.1","Device:C","Capacitor_SMD:C_0805_2012Metric_Pad1.15x1.40mm_HandSolder","~"
"3","1","D1","LED","stm32-rescue:LED-RESCUE-stm32","LED_THT:LED_D5.0mm",""
"4","1","J1","USART0","Connector_Generic:Conn_01x03","Connector_PinHeader_2.54mm:PinHeader_1x03_P2.54mm_Vertical","~"
"5","1","J2","Ext","Connector_Generic:Conn_01x07","Connector_PinHeader_2.54mm:PinHeader_1x07_P2.54mm_Vertical","~"
"6","1","P1","USB_B","stm32-rescue:USB_A-RESCUE-stm32","Connectors_USB:USB_B_OST_USB-B1HSxx_Horizontal",""
"7","1","Q1","DTA114Y","Transistor_BJT:DTA114Y","TO_SOT_Packages_SMD:SOT-323_SC-70_Handsoldering",""
"8","1","R1","10k","stm32-rescue:R","Resistor_SMD:R_0603_1608Metric_Pad1.05x0.95mm_HandSolder",""
"9","1","R2","22k","stm32-rescue:R","Resistor_SMD:R_0603_1608Metric_Pad1.05x0.95mm_HandSolder",""
"10","2","R3, R4","22","stm32-rescue:R","Resistor_SMD:R_0603_1608Metric_Pad1.05x0.95mm_HandSolder",""
"11","1","R5","330","stm32-rescue:R","Resistor_SMD:R_0805_2012Metric_Pad1.15x1.40mm_HandSolder",""
"12","1","R6","1k5","stm32-rescue:R","Resistor_SMD:R_0603_1608Metric_Pad1.05x0.95mm_HandSolder",""
"13","1","SW1","Reset","stm32-rescue:SW_Push","Button_Switch_THT:SW_PUSH_6mm",""
"14","1","SW2","Prog","stm32-rescue:SW_Push","Button_Switch_THT:SW_PUSH_6mm",""
"15","1","SW3","Button","stm32-rescue:SW_Push","Button_Switch_THT:SW_PUSH_6mm",""
"16","1","U1","CH552G","ch55x:CH552G","Package_DIP:DIP-16_W7.62mm_LongPads",""

File diff suppressed because it is too large Load Diff

View File

@ -0,0 +1,350 @@
(export (version D)
(design
(source /home/eddy/Docs/SAO/ELECTRONICS/CH551..CH554/devboard_552G/ch552g_devbrd/ch552g_devbrd.sch)
(date "Чт 23 мая 2019 17:34:49")
(tool "Eeschema (6.0.0-rc1-dev-1613-ga55d9819b)")
(sheet (number 1) (name /) (tstamps /)
(title_block
(title)
(company)
(rev)
(date)
(source ch552g_devbrd.sch)
(comment (number 1) (value ""))
(comment (number 2) (value ""))
(comment (number 3) (value ""))
(comment (number 4) (value "")))))
(components
(comp (ref U1)
(value CH552G)
(footprint Package_DIP:DIP-16_W7.62mm_LongPads)
(libsource (lib ch55x) (part CH552G) (description ""))
(sheetpath (names /) (tstamps /))
(tstamp 5CE654F8))
(comp (ref P1)
(value USB_B)
(footprint Connectors_USB:USB_B_OST_USB-B1HSxx_Horizontal)
(libsource (lib stm32-rescue) (part USB_A-RESCUE-stm32) (description ""))
(sheetpath (names /) (tstamps /))
(tstamp 5CE6FB96))
(comp (ref R3)
(value 22)
(footprint Resistor_SMD:R_0603_1608Metric_Pad1.05x0.95mm_HandSolder)
(libsource (lib stm32-rescue) (part R) (description ""))
(sheetpath (names /) (tstamps /))
(tstamp 5CE6FBB4))
(comp (ref R4)
(value 22)
(footprint Resistor_SMD:R_0603_1608Metric_Pad1.05x0.95mm_HandSolder)
(libsource (lib stm32-rescue) (part R) (description ""))
(sheetpath (names /) (tstamps /))
(tstamp 5CE6FBBA))
(comp (ref R6)
(value 1k5)
(footprint Resistor_SMD:R_0603_1608Metric_Pad1.05x0.95mm_HandSolder)
(libsource (lib stm32-rescue) (part R) (description ""))
(sheetpath (names /) (tstamps /))
(tstamp 5CE6FBED))
(comp (ref Q1)
(value DTA114Y)
(footprint TO_SOT_Packages_SMD:SOT-323_SC-70_Handsoldering)
(libsource (lib Transistor_BJT) (part DTA114Y) (description "Digital PNP Transistor, 10k/47k, SOT-23"))
(sheetpath (names /) (tstamps /))
(tstamp 5CE6FBF3))
(comp (ref R1)
(value 10k)
(footprint Resistor_SMD:R_0603_1608Metric_Pad1.05x0.95mm_HandSolder)
(libsource (lib stm32-rescue) (part R) (description ""))
(sheetpath (names /) (tstamps /))
(tstamp 5CEA1EDB))
(comp (ref C1)
(value 0.1)
(footprint Capacitor_SMD:C_0603_1608Metric_Pad1.05x0.95mm_HandSolder)
(libsource (lib stm32-rescue) (part C) (description ""))
(sheetpath (names /) (tstamps /))
(tstamp 5CEA1EE1))
(comp (ref SW1)
(value Reset)
(footprint Button_Switch_THT:SW_PUSH_6mm)
(libsource (lib stm32-rescue) (part SW_Push) (description ""))
(sheetpath (names /) (tstamps /))
(tstamp 5CEA1EE7))
(comp (ref R2)
(value 22k)
(footprint Resistor_SMD:R_0603_1608Metric_Pad1.05x0.95mm_HandSolder)
(libsource (lib stm32-rescue) (part R) (description ""))
(sheetpath (names /) (tstamps /))
(tstamp 5CEA4ECA))
(comp (ref C2)
(value 0.1)
(footprint Capacitor_SMD:C_0603_1608Metric_Pad1.05x0.95mm_HandSolder)
(libsource (lib stm32-rescue) (part C) (description ""))
(sheetpath (names /) (tstamps /))
(tstamp 5CEA4ED0))
(comp (ref SW2)
(value Prog)
(footprint Button_Switch_THT:SW_PUSH_6mm)
(libsource (lib stm32-rescue) (part SW_Push) (description ""))
(sheetpath (names /) (tstamps /))
(tstamp 5CEA4ED6))
(comp (ref C3)
(value 0.1)
(footprint Capacitor_SMD:C_0805_2012Metric_Pad1.15x1.40mm_HandSolder)
(datasheet ~)
(libsource (lib Device) (part C) (description "Unpolarized capacitor"))
(sheetpath (names /) (tstamps /))
(tstamp 5CEAC767))
(comp (ref C4)
(value 0.1)
(footprint Capacitor_SMD:C_0805_2012Metric_Pad1.15x1.40mm_HandSolder)
(datasheet ~)
(libsource (lib Device) (part C) (description "Unpolarized capacitor"))
(sheetpath (names /) (tstamps /))
(tstamp 5CEACBFB))
(comp (ref SW3)
(value Button)
(footprint Button_Switch_THT:SW_PUSH_6mm)
(libsource (lib stm32-rescue) (part SW_Push) (description ""))
(sheetpath (names /) (tstamps /))
(tstamp 5CEAFBD2))
(comp (ref D1)
(value LED)
(footprint LED_THT:LED_D5.0mm)
(libsource (lib stm32-rescue) (part LED-RESCUE-stm32) (description ""))
(sheetpath (names /) (tstamps /))
(tstamp 5CEB286A))
(comp (ref R5)
(value 330)
(footprint Resistor_SMD:R_0805_2012Metric_Pad1.15x1.40mm_HandSolder)
(libsource (lib stm32-rescue) (part R) (description ""))
(sheetpath (names /) (tstamps /))
(tstamp 5CEB287B))
(comp (ref J2)
(value Ext)
(footprint Connector_PinHeader_2.54mm:PinHeader_1x07_P2.54mm_Vertical)
(datasheet ~)
(libsource (lib Connector_Generic) (part Conn_01x07) (description "Generic connector, single row, 01x07, script generated (kicad-library-utils/schlib/autogen/connector/)"))
(sheetpath (names /) (tstamps /))
(tstamp 5CEB9FBC))
(comp (ref J1)
(value USART0)
(footprint Connector_PinHeader_2.54mm:PinHeader_1x03_P2.54mm_Vertical)
(datasheet ~)
(libsource (lib Connector_Generic) (part Conn_01x03) (description "Generic connector, single row, 01x03, script generated (kicad-library-utils/schlib/autogen/connector/)"))
(sheetpath (names /) (tstamps /))
(tstamp 5CEBAA68)))
(libparts
(libpart (lib Connector_Generic) (part Conn_01x03)
(description "Generic connector, single row, 01x03, script generated (kicad-library-utils/schlib/autogen/connector/)")
(docs ~)
(footprints
(fp Connector*:*_1x??_*))
(fields
(field (name Reference) J)
(field (name Value) Conn_01x03))
(pins
(pin (num 1) (name Pin_1) (type passive))
(pin (num 2) (name Pin_2) (type passive))
(pin (num 3) (name Pin_3) (type passive))))
(libpart (lib Connector_Generic) (part Conn_01x07)
(description "Generic connector, single row, 01x07, script generated (kicad-library-utils/schlib/autogen/connector/)")
(docs ~)
(footprints
(fp Connector*:*_1x??_*))
(fields
(field (name Reference) J)
(field (name Value) Conn_01x07))
(pins
(pin (num 1) (name Pin_1) (type passive))
(pin (num 2) (name Pin_2) (type passive))
(pin (num 3) (name Pin_3) (type passive))
(pin (num 4) (name Pin_4) (type passive))
(pin (num 5) (name Pin_5) (type passive))
(pin (num 6) (name Pin_6) (type passive))
(pin (num 7) (name Pin_7) (type passive))))
(libpart (lib Device) (part C)
(description "Unpolarized capacitor")
(docs ~)
(footprints
(fp C_*))
(fields
(field (name Reference) C)
(field (name Value) C))
(pins
(pin (num 1) (name ~) (type passive))
(pin (num 2) (name ~) (type passive))))
(libpart (lib Transistor_BJT) (part DTA114Y)
(description "Digital PNP Transistor, 10k/47k, SOT-23")
(footprints
(fp SOT?23*)
(fp SC?59*))
(fields
(field (name Reference) Q)
(field (name Value) DTA114Y))
(pins
(pin (num 1) (name B) (type input))
(pin (num 2) (name E) (type passive))
(pin (num 3) (name C) (type passive))))
(libpart (lib ch55x) (part CH552G)
(fields
(field (name Reference) U)
(field (name Value) CH552G))
(pins
(pin (num 1) (name P3.2/TXD1_/INT0/VBUS1/AIN3) (type 3state))
(pin (num 2) (name P1.4/T2_/CAP1_/SCS/TIN2/UCC1/AIN1) (type 3state))
(pin (num 3) (name P1.5/MOSI/PWM1/TIN3/UCC2/AIN2) (type 3state))
(pin (num 4) (name P1.6/MISO/RXD1/TIN4) (type 3state))
(pin (num 5) (name P1.7/SCK/TXD1/TIN5) (type 3state))
(pin (num 6) (name RST/T2EX_/CAP2_) (type 3state))
(pin (num 7) (name P3.1/PWM2_/TXD) (type 3state))
(pin (num 8) (name P3.0/PWM1_/RXD) (type 3state))
(pin (num 9) (name P1.1/T2EX/CAP2/TIN1/VBUS2/AIN0) (type 3state))
(pin (num 10) (name P3.3/INT1) (type 3state))
(pin (num 11) (name P3.4/PWM2/RXD1_/T0) (type 3state))
(pin (num 12) (name P3.6/UDP) (type 3state))
(pin (num 13) (name P3.7/UDM) (type 3state))
(pin (num 14) (name GND/VSS) (type power_in))
(pin (num 15) (name VCC/VDD) (type power_in))
(pin (num 16) (name V33) (type power_out))))
(libpart (lib stm32-rescue) (part C)
(footprints
(fp C_*))
(fields
(field (name Reference) C)
(field (name Value) C))
(pins
(pin (num 1) (name ~) (type passive))
(pin (num 2) (name ~) (type passive))))
(libpart (lib stm32-rescue) (part LED-RESCUE-stm32)
(footprints
(fp LED*))
(fields
(field (name Reference) D)
(field (name Value) LED-RESCUE-stm32))
(pins
(pin (num 1) (name K) (type passive))
(pin (num 2) (name A) (type passive))))
(libpart (lib stm32-rescue) (part R)
(footprints
(fp R_*)
(fp R_*))
(fields
(field (name Reference) R)
(field (name Value) R))
(pins
(pin (num 1) (name ~) (type passive))
(pin (num 2) (name ~) (type passive))))
(libpart (lib stm32-rescue) (part SW_Push)
(fields
(field (name Reference) SW)
(field (name Value) SW_Push))
(pins
(pin (num 1) (name 1) (type passive))
(pin (num 2) (name 2) (type passive))))
(libpart (lib stm32-rescue) (part USB_A-RESCUE-stm32)
(footprints
(fp USB*))
(fields
(field (name Reference) P)
(field (name Value) USB_A-RESCUE-stm32))
(pins
(pin (num 1) (name VBUS) (type power_in))
(pin (num 2) (name D-) (type passive))
(pin (num 3) (name D+) (type passive))
(pin (num 4) (name GND) (type power_in))
(pin (num 5) (name shield) (type passive)))))
(libraries
(library (logical Connector_Generic)
(uri /usr/share/kicad/kicad-symbols//Connector_Generic.lib))
(library (logical Device)
(uri /usr/share/kicad/kicad-symbols//Device.lib))
(library (logical Transistor_BJT)
(uri /usr/share/kicad/kicad-symbols//Transistor_BJT.lib))
(library (logical ch55x)
(uri /home/eddy/Docs/SAO/ELECTRONICS/CH551..CH554/devboard_552G/ch552g_devbrd/ch55x.lib))
(library (logical stm32-rescue)
(uri /home/eddy/Docs/SAO/ELECTRONICS/STM32/F0-srcs/F0_F1_testboard/kicad/stm32-rescue.lib)))
(nets
(net (code 1) (name GND)
(node (ref P1) (pin 5))
(node (ref J1) (pin 1))
(node (ref SW3) (pin 2))
(node (ref R1) (pin 2))
(node (ref U1) (pin 14))
(node (ref C3) (pin 2))
(node (ref C4) (pin 2))
(node (ref P1) (pin 4))
(node (ref J2) (pin 1)))
(net (code 2) (name /V33)
(node (ref C3) (pin 1))
(node (ref U1) (pin 16))
(node (ref Q1) (pin 2)))
(net (code 3) (name /RST)
(node (ref U1) (pin 6))
(node (ref C1) (pin 1))
(node (ref SW1) (pin 1))
(node (ref R1) (pin 1)))
(net (code 4) (name "Net-(C2-Pad1)")
(node (ref R2) (pin 2))
(node (ref C2) (pin 1))
(node (ref SW2) (pin 1)))
(net (code 5) (name +5V)
(node (ref P1) (pin 1))
(node (ref U1) (pin 15))
(node (ref C1) (pin 2))
(node (ref SW1) (pin 2))
(node (ref J2) (pin 7))
(node (ref SW2) (pin 2))
(node (ref C2) (pin 2))
(node (ref D1) (pin 2))
(node (ref C4) (pin 1)))
(net (code 6) (name /AIN)
(node (ref U1) (pin 1))
(node (ref J2) (pin 6)))
(net (code 7) (name /Txd)
(node (ref U1) (pin 7))
(node (ref J1) (pin 2)))
(net (code 8) (name /Rxd)
(node (ref J1) (pin 3))
(node (ref U1) (pin 8)))
(net (code 9) (name /CAP1)
(node (ref U1) (pin 2))
(node (ref J2) (pin 5)))
(net (code 10) (name "Net-(P1-Pad2)")
(node (ref P1) (pin 2))
(node (ref R3) (pin 1)))
(net (code 11) (name "Net-(D1-Pad1)")
(node (ref D1) (pin 1))
(node (ref R5) (pin 1)))
(net (code 12) (name /BTN)
(node (ref SW3) (pin 1))
(node (ref U1) (pin 10)))
(net (code 13) (name /LED_PWM)
(node (ref U1) (pin 3))
(node (ref R5) (pin 2)))
(net (code 14) (name /Touch1)
(node (ref U1) (pin 5))
(node (ref J2) (pin 2)))
(net (code 15) (name /Touch0)
(node (ref U1) (pin 4))
(node (ref J2) (pin 3)))
(net (code 16) (name /CAP2)
(node (ref J2) (pin 4))
(node (ref U1) (pin 9)))
(net (code 17) (name /UDPbt)
(node (ref P1) (pin 3))
(node (ref R4) (pin 1))
(node (ref R6) (pin 2))
(node (ref R2) (pin 1)))
(net (code 18) (name /UDP)
(node (ref R4) (pin 2))
(node (ref U1) (pin 12)))
(net (code 19) (name /UDM)
(node (ref U1) (pin 13))
(node (ref R3) (pin 2)))
(net (code 20) (name "Net-(Q1-Pad3)")
(node (ref R6) (pin 1))
(node (ref Q1) (pin 3)))
(net (code 21) (name /UDP_PU)
(node (ref Q1) (pin 1))
(node (ref U1) (pin 11)))))

View File

@ -0,0 +1,70 @@
update=Пт 24 мая 2019 14:18:25
version=1
last_client=kicad
[general]
version=1
RootSch=
BoardNm=
[cvpcb]
version=1
NetIExt=net
[eeschema]
version=1
LibDir=
[eeschema/libraries]
[pcbnew]
version=1
PageLayoutDescrFile=
LastNetListRead=ch552g_devbrd.net
CopperLayerCount=2
BoardThickness=1.6
AllowMicroVias=0
AllowBlindVias=0
RequireCourtyardDefinitions=0
ProhibitOverlappingCourtyards=1
MinTrackWidth=0.2
MinViaDiameter=0.4
MinViaDrill=0.3
MinMicroViaDiameter=0.2
MinMicroViaDrill=0.09999999999999999
MinHoleToHole=0.25
TrackWidth1=0.25
TrackWidth2=0.25
TrackWidth3=0.5
TrackWidth4=1
ViaDiameter1=2
ViaDrill1=0.6
ViaDiameter2=2
ViaDrill2=0.6
ViaDiameter3=2.5
ViaDrill3=0.8
dPairWidth1=0.2
dPairGap1=0.25
dPairViaGap1=0.25
SilkLineWidth=0.12
SilkTextSizeV=1
SilkTextSizeH=1
SilkTextSizeThickness=0.15
SilkTextItalic=0
SilkTextUpright=1
CopperLineWidth=0.2
CopperTextSizeV=1.5
CopperTextSizeH=1.5
CopperTextThickness=0.3
CopperTextItalic=0
CopperTextUpright=1
EdgeCutLineWidth=0.05
CourtyardLineWidth=0.05
OthersLineWidth=0.15
OthersTextSizeV=1
OthersTextSizeH=1
OthersTextSizeThickness=0.15
OthersTextItalic=0
OthersTextUpright=1
SolderMaskClearance=0.051
SolderMaskMinWidth=0.25
SolderPasteClearance=0
SolderPasteRatio=-0
[pcbnew/Layer.F.Cu]
Name=F.Cu
Type=3

View File

@ -0,0 +1,564 @@
EESchema Schematic File Version 4
LIBS:stm32-cache
EELAYER 29 0
EELAYER END
$Descr A4 11693 8268
encoding utf-8
Sheet 1 1
Title ""
Date ""
Rev ""
Comp ""
Comment1 ""
Comment2 ""
Comment3 ""
Comment4 ""
$EndDescr
$Comp
L ch55x:CH552G U1
U 1 1 5CE654F8
P 2375 2500
F 0 "U1" H 2375 3115 50 0000 C CNN
F 1 "CH552G" H 2375 3024 50 0000 C CNN
F 2 "Package_DIP:DIP-16_W7.62mm_LongPads" H 1075 2300 50 0001 C CNN
F 3 "" H 1075 2300 50 0001 C CNN
1 2375 2500
1 0 0 -1
$EndComp
Text Label 1075 2750 2 50 ~ 0
Txd
Text Label 1075 2850 2 50 ~ 0
Rxd
Text Label 1075 2250 2 50 ~ 0
CAP1
Text Label 3675 2850 0 50 ~ 0
CAP2
Text Label 1075 2450 2 50 ~ 0
Touch0
Text Label 1075 2550 2 50 ~ 0
Touch1
Text Label 1075 2350 2 50 ~ 0
LED_PWM
Text Label 1075 2150 2 50 ~ 0
AIN
Text Label 3675 2450 0 50 ~ 0
UDM
Text Label 3675 2550 0 50 ~ 0
UDP
Text Label 3675 2650 0 50 ~ 0
UDP_PU
Text Label 1075 2650 2 50 ~ 0
RST
Text Label 3675 2750 0 50 ~ 0
BTN
$Comp
L stm32-rescue:USB_A-RESCUE-stm32 P1
U 1 1 5CE6FB96
P 5575 2250
F 0 "P1" V 5775 2200 50 0000 C CNN
F 1 "USB_B" V 5275 2250 50 0000 C CNN
F 2 "Connectors_USB:USB_B_OST_USB-B1HSxx_Horizontal" V 5525 2150 50 0001 C CNN
F 3 "" V 5525 2150 50 0000 C CNN
1 5575 2250
0 1 1 0
$EndComp
$Comp
L stm32-rescue:PWR_FLAG #FLG01
U 1 1 5CE6FBA2
P 5275 1900
F 0 "#FLG01" H 5275 1995 50 0001 C CNN
F 1 "PWR_FLAG" H 5275 2080 50 0001 C CNN
F 2 "" H 5275 1900 50 0000 C CNN
F 3 "" H 5275 1900 50 0000 C CNN
1 5275 1900
1 0 0 -1
$EndComp
$Comp
L stm32-rescue:GND #PWR016
U 1 1 5CE6FBA8
P 5675 2600
F 0 "#PWR016" H 5675 2350 50 0001 C CNN
F 1 "GND" H 5675 2450 50 0000 C CNN
F 2 "" H 5675 2600 50 0000 C CNN
F 3 "" H 5675 2600 50 0000 C CNN
1 5675 2600
1 0 0 -1
$EndComp
$Comp
L stm32-rescue:PWR_FLAG #FLG02
U 1 1 5CE6FBAE
P 5425 2600
F 0 "#FLG02" H 5425 2695 50 0001 C CNN
F 1 "PWR_FLAG" H 5425 2780 50 0001 C CNN
F 2 "" H 5425 2600 50 0000 C CNN
F 3 "" H 5425 2600 50 0000 C CNN
1 5425 2600
-1 0 0 1
$EndComp
$Comp
L stm32-rescue:R R3
U 1 1 5CE6FBB4
P 4800 2150
F 0 "R3" V 4880 2150 50 0000 C CNN
F 1 "22" V 4800 2150 50 0000 C CNN
F 2 "Resistor_SMD:R_0603_1608Metric_Pad1.05x0.95mm_HandSolder" V 4730 2150 50 0001 C CNN
F 3 "" H 4800 2150 50 0001 C CNN
1 4800 2150
0 1 1 0
$EndComp
$Comp
L stm32-rescue:R R4
U 1 1 5CE6FBBA
P 4800 2350
F 0 "R4" V 4880 2350 50 0000 C CNN
F 1 "22" V 4800 2350 50 0000 C CNN
F 2 "Resistor_SMD:R_0603_1608Metric_Pad1.05x0.95mm_HandSolder" V 4730 2350 50 0001 C CNN
F 3 "" H 4800 2350 50 0001 C CNN
1 4800 2350
0 1 1 0
$EndComp
Wire Wire Line
5275 2050 5275 1925
Wire Wire Line
5675 2600 5675 2550
Wire Wire Line
4950 2350 5175 2350
Wire Wire Line
5675 2600 5425 2600
Wire Wire Line
5275 2600 5275 2350
Connection ~ 5675 2600
Connection ~ 5425 2600
Wire Wire Line
5425 2600 5275 2600
Wire Wire Line
5275 1925 5350 1925
Connection ~ 5275 1925
Wire Wire Line
5275 1925 5275 1900
$Comp
L stm32-rescue:+5V #PWR013
U 1 1 5CE6FBD1
P 5350 1925
F 0 "#PWR013" H 5350 1775 50 0001 C CNN
F 1 "+5V" H 5350 2065 50 0000 C CNN
F 2 "" H 5350 1925 50 0000 C CNN
F 3 "" H 5350 1925 50 0000 C CNN
1 5350 1925
1 0 0 -1
$EndComp
Wire Wire Line
5175 2250 5275 2250
$Comp
L stm32-rescue:R R6
U 1 1 5CE6FBED
P 5175 2500
F 0 "R6" V 5255 2500 50 0000 C CNN
F 1 "1k5" V 5175 2500 50 0000 C CNN
F 2 "Resistor_SMD:R_0603_1608Metric_Pad1.05x0.95mm_HandSolder" V 5105 2500 50 0001 C CNN
F 3 "" H 5175 2500 50 0001 C CNN
1 5175 2500
-1 0 0 1
$EndComp
$Comp
L Transistor_BJT:DTA114Y Q1
U 1 1 5CE6FBF3
P 5075 2850
F 0 "Q1" H 5263 2896 50 0000 L CNN
F 1 "DTA114Y" H 5263 2805 50 0000 L CNN
F 2 "TO_SOT_Packages_SMD:SOT-323_SC-70_Handsoldering" H 5075 2850 50 0001 L CNN
F 3 "" H 5075 2850 50 0001 L CNN
1 5075 2850
1 0 0 -1
$EndComp
$Comp
L stm32-rescue:+5V #PWR05
U 1 1 5CE7A800
P 4000 2250
F 0 "#PWR05" H 4000 2100 50 0001 C CNN
F 1 "+5V" H 4000 2390 50 0000 C CNN
F 2 "" H 4000 2250 50 0000 C CNN
F 3 "" H 4000 2250 50 0000 C CNN
1 4000 2250
1 0 0 -1
$EndComp
Wire Wire Line
3675 2250 4000 2250
$Comp
L stm32-rescue:GND #PWR06
U 1 1 5CE7C243
P 4000 2350
F 0 "#PWR06" H 4000 2100 50 0001 C CNN
F 1 "GND" H 4000 2200 50 0000 C CNN
F 2 "" H 4000 2350 50 0000 C CNN
F 3 "" H 4000 2350 50 0000 C CNN
1 4000 2350
1 0 0 -1
$EndComp
Wire Wire Line
3675 2350 4000 2350
Text Label 3675 2150 0 50 ~ 0
V33
Text Label 5175 3125 2 50 ~ 0
V33
Wire Wire Line
5175 3125 5175 3050
Text Label 4650 2150 2 50 ~ 0
UDM
Text Label 4650 2350 2 50 ~ 0
UDP
$Comp
L stm32-rescue:R R?
U 1 1 5CEA1EDB
P 1075 1175
AR Path="/5CE68CA1/5CEA1EDB" Ref="R?" Part="1"
AR Path="/5CEA1EDB" Ref="R1" Part="1"
F 0 "R1" V 1000 1175 50 0000 C CNN
F 1 "10k" V 1075 1175 50 0000 C CNN
F 2 "Resistor_SMD:R_0603_1608Metric_Pad1.05x0.95mm_HandSolder" V 1005 1175 50 0001 C CNN
F 3 "" H 1075 1175 50 0000 C CNN
1 1075 1175
1 0 0 -1
$EndComp
$Comp
L stm32-rescue:C C?
U 1 1 5CEA1EE1
P 1625 1175
AR Path="/5CE68CA1/5CEA1EE1" Ref="C?" Part="1"
AR Path="/5CEA1EE1" Ref="C1" Part="1"
F 0 "C1" H 1650 1275 50 0000 L CNN
F 1 "0.1" H 1650 1075 50 0000 L CNN
F 2 "Capacitor_SMD:C_0603_1608Metric_Pad1.05x0.95mm_HandSolder" H 1663 1025 50 0001 C CNN
F 3 "" H 1625 1175 50 0000 C CNN
1 1625 1175
1 0 0 -1
$EndComp
$Comp
L stm32-rescue:SW_Push SW?
U 1 1 5CEA1EE7
P 1325 1175
AR Path="/5CE68CA1/5CEA1EE7" Ref="SW?" Part="1"
AR Path="/5CEA1EE7" Ref="SW1" Part="1"
F 0 "SW1" V 1475 1000 50 0000 L CNN
F 1 "Reset" H 1325 1115 50 0000 C CNN
F 2 "Button_Switch_THT:SW_PUSH_6mm" H 1325 1375 50 0001 C CNN
F 3 "" H 1325 1375 50 0000 C CNN
1 1325 1175
0 1 1 0
$EndComp
$Comp
L stm32-rescue:GND #PWR?
U 1 1 5CEA1EF3
P 1075 1425
AR Path="/5CE68CA1/5CEA1EF3" Ref="#PWR?" Part="1"
AR Path="/5CEA1EF3" Ref="#PWR01" Part="1"
F 0 "#PWR01" H 1075 1175 50 0001 C CNN
F 1 "GND" H 1075 1275 50 0000 C CNN
F 2 "" H 1075 1425 50 0000 C CNN
F 3 "" H 1075 1425 50 0000 C CNN
1 1075 1425
1 0 0 -1
$EndComp
Wire Wire Line
1075 925 1075 975
Wire Wire Line
1075 1425 1075 1325
Wire Wire Line
1075 975 1325 975
Connection ~ 1075 975
Wire Wire Line
1625 975 1625 1025
Connection ~ 1325 975
Wire Wire Line
1325 1375 1475 1375
Wire Wire Line
1625 1375 1625 1325
Wire Wire Line
1475 1425 1475 1375
Connection ~ 1475 1375
Wire Wire Line
1075 975 1075 1025
Wire Wire Line
1325 975 1625 975
Wire Wire Line
1475 1375 1625 1375
Text Label 1075 925 2 50 ~ 0
RST
$Comp
L stm32-rescue:+5V #PWR02
U 1 1 5CEA2AC3
P 1475 1425
F 0 "#PWR02" H 1475 1275 50 0001 C CNN
F 1 "+5V" H 1475 1565 50 0000 C CNN
F 2 "" H 1475 1425 50 0000 C CNN
F 3 "" H 1475 1425 50 0000 C CNN
1 1475 1425
-1 0 0 1
$EndComp
$Comp
L stm32-rescue:R R?
U 1 1 5CEA4ECA
P 2675 950
AR Path="/5CE68CA1/5CEA4ECA" Ref="R?" Part="1"
AR Path="/5CEA4ECA" Ref="R2" Part="1"
F 0 "R2" V 2600 950 50 0000 C CNN
F 1 "22k" V 2675 950 50 0000 C CNN
F 2 "Resistor_SMD:R_0603_1608Metric_Pad1.05x0.95mm_HandSolder" V 2605 950 50 0001 C CNN
F 3 "" H 2675 950 50 0000 C CNN
1 2675 950
0 1 1 0
$EndComp
$Comp
L stm32-rescue:C C?
U 1 1 5CEA4ED0
P 2525 1150
AR Path="/5CE68CA1/5CEA4ED0" Ref="C?" Part="1"
AR Path="/5CEA4ED0" Ref="C2" Part="1"
F 0 "C2" H 2550 1250 50 0000 L CNN
F 1 "0.1" H 2550 1050 50 0000 L CNN
F 2 "Capacitor_SMD:C_0603_1608Metric_Pad1.05x0.95mm_HandSolder" H 2563 1000 50 0001 C CNN
F 3 "" H 2525 1150 50 0000 C CNN
1 2525 1150
1 0 0 -1
$EndComp
$Comp
L stm32-rescue:SW_Push SW?
U 1 1 5CEA4ED6
P 2225 1150
AR Path="/5CE68CA1/5CEA4ED6" Ref="SW?" Part="1"
AR Path="/5CEA4ED6" Ref="SW2" Part="1"
F 0 "SW2" V 2375 975 50 0000 L CNN
F 1 "Prog" H 2225 1090 50 0000 C CNN
F 2 "Button_Switch_THT:SW_PUSH_6mm" H 2225 1350 50 0001 C CNN
F 3 "" H 2225 1350 50 0000 C CNN
1 2225 1150
0 1 1 0
$EndComp
Wire Wire Line
2525 950 2525 1000
Wire Wire Line
2225 1350 2375 1350
Wire Wire Line
2525 1350 2525 1300
Wire Wire Line
2375 1400 2375 1350
Connection ~ 2375 1350
Wire Wire Line
2225 950 2525 950
Wire Wire Line
2375 1350 2525 1350
$Comp
L stm32-rescue:+5V #PWR03
U 1 1 5CEA4EF0
P 2375 1400
F 0 "#PWR03" H 2375 1250 50 0001 C CNN
F 1 "+5V" H 2375 1540 50 0000 C CNN
F 2 "" H 2375 1400 50 0000 C CNN
F 3 "" H 2375 1400 50 0000 C CNN
1 2375 1400
-1 0 0 1
$EndComp
Connection ~ 2525 950
$Comp
L stm32-rescue:GND #PWR?
U 1 1 5CEABAFB
P 3250 1300
AR Path="/5CE68CA1/5CEABAFB" Ref="#PWR?" Part="1"
AR Path="/5CEABAFB" Ref="#PWR04" Part="1"
F 0 "#PWR04" H 3250 1050 50 0001 C CNN
F 1 "GND" H 3250 1150 50 0000 C CNN
F 2 "" H 3250 1300 50 0000 C CNN
F 3 "" H 3250 1300 50 0000 C CNN
1 3250 1300
-1 0 0 -1
$EndComp
Wire Wire Line
3250 1250 3250 1300
Text Label 3250 1050 2 50 ~ 0
Rxd
Text Label 3250 1150 2 50 ~ 0
Txd
$Comp
L Device:C C3
U 1 1 5CEAC767
P 4050 1175
F 0 "C3" H 4165 1221 50 0000 L CNN
F 1 "0.1" H 4165 1130 50 0000 L CNN
F 2 "Capacitor_SMD:C_0805_2012Metric_Pad1.15x1.40mm_HandSolder" H 4088 1025 50 0001 C CNN
F 3 "~" H 4050 1175 50 0001 C CNN
1 4050 1175
1 0 0 -1
$EndComp
$Comp
L Device:C C4
U 1 1 5CEACBFB
P 4400 1175
F 0 "C4" H 4515 1221 50 0000 L CNN
F 1 "0.1" H 4515 1130 50 0000 L CNN
F 2 "Capacitor_SMD:C_0805_2012Metric_Pad1.15x1.40mm_HandSolder" H 4438 1025 50 0001 C CNN
F 3 "~" H 4400 1175 50 0001 C CNN
1 4400 1175
1 0 0 -1
$EndComp
Text Label 4050 1025 0 50 ~ 0
V33
$Comp
L stm32-rescue:+5V #PWR08
U 1 1 5CEADA9E
P 4400 1025
F 0 "#PWR08" H 4400 875 50 0001 C CNN
F 1 "+5V" H 4400 1165 50 0000 C CNN
F 2 "" H 4400 1025 50 0000 C CNN
F 3 "" H 4400 1025 50 0000 C CNN
1 4400 1025
1 0 0 -1
$EndComp
$Comp
L stm32-rescue:GND #PWR07
U 1 1 5CEAE0DC
P 4225 1325
F 0 "#PWR07" H 4225 1075 50 0001 C CNN
F 1 "GND" H 4225 1175 50 0000 C CNN
F 2 "" H 4225 1325 50 0000 C CNN
F 3 "" H 4225 1325 50 0000 C CNN
1 4225 1325
1 0 0 -1
$EndComp
Wire Wire Line
4050 1325 4225 1325
Wire Wire Line
4400 1325 4225 1325
Connection ~ 4225 1325
$Comp
L stm32-rescue:SW_Push SW?
U 1 1 5CEAFBD2
P 4975 1150
AR Path="/5CE68CA1/5CEAFBD2" Ref="SW?" Part="1"
AR Path="/5CEAFBD2" Ref="SW3" Part="1"
F 0 "SW3" V 5125 975 50 0000 L CNN
F 1 "Button" H 4975 1090 50 0000 C CNN
F 2 "Button_Switch_THT:SW_PUSH_6mm" H 4975 1350 50 0001 C CNN
F 3 "" H 4975 1350 50 0000 C CNN
1 4975 1150
0 1 1 0
$EndComp
Text Label 4975 950 0 50 ~ 0
BTN
$Comp
L stm32-rescue:GND #PWR010
U 1 1 5CEB0693
P 4975 1350
F 0 "#PWR010" H 4975 1100 50 0001 C CNN
F 1 "GND" H 4975 1200 50 0000 C CNN
F 2 "" H 4975 1350 50 0000 C CNN
F 3 "" H 4975 1350 50 0000 C CNN
1 4975 1350
1 0 0 -1
$EndComp
$Comp
L stm32-rescue:LED-RESCUE-stm32 D?
U 1 1 5CEB286A
P 5525 1050
AR Path="/5CE68CA1/5CEB286A" Ref="D?" Part="1"
AR Path="/5CEB286A" Ref="D1" Part="1"
F 0 "D1" H 5525 1150 50 0000 C CNN
F 1 "LED" H 5525 950 50 0000 C CNN
F 2 "LED_THT:LED_D5.0mm" H 5525 1050 50 0001 C CNN
F 3 "" H 5525 1050 50 0000 C CNN
1 5525 1050
0 -1 -1 0
$EndComp
$Comp
L stm32-rescue:R R?
U 1 1 5CEB287B
P 5525 1350
AR Path="/5CE68CA1/5CEB287B" Ref="R?" Part="1"
AR Path="/5CEB287B" Ref="R5" Part="1"
F 0 "R5" V 5605 1350 50 0000 C CNN
F 1 "330" V 5525 1350 50 0000 C CNN
F 2 "Resistor_SMD:R_0805_2012Metric_Pad1.15x1.40mm_HandSolder" V 5455 1350 50 0001 C CNN
F 3 "" H 5525 1350 50 0000 C CNN
1 5525 1350
1 0 0 -1
$EndComp
Text Label 5525 1575 0 50 ~ 0
LED_PWM
Wire Wire Line
5525 1575 5525 1500
$Comp
L stm32-rescue:+5V #PWR011
U 1 1 5CEB7D66
P 5525 900
F 0 "#PWR011" H 5525 750 50 0001 C CNN
F 1 "+5V" H 5525 1040 50 0000 C CNN
F 2 "" H 5525 900 50 0000 C CNN
F 3 "" H 5525 900 50 0000 C CNN
1 5525 900
1 0 0 -1
$EndComp
$Comp
L Connector_Generic:Conn_01x07 J2
U 1 1 5CEB9FBC
P 6450 1200
F 0 "J2" H 6450 675 50 0000 C CNN
F 1 "Ext" H 6450 775 50 0000 C CNN
F 2 "Connector_PinHeader_2.54mm:PinHeader_1x07_P2.54mm_Vertical" H 6450 1200 50 0001 C CNN
F 3 "~" H 6450 1200 50 0001 C CNN
1 6450 1200
1 0 0 1
$EndComp
$Comp
L Connector_Generic:Conn_01x03 J1
U 1 1 5CEBAA68
P 3450 1150
F 0 "J1" H 3368 825 50 0000 C CNN
F 1 "USART0" H 3368 916 50 0000 C CNN
F 2 "Connector_PinHeader_2.54mm:PinHeader_1x03_P2.54mm_Vertical" H 3450 1150 50 0001 C CNN
F 3 "~" H 3450 1150 50 0001 C CNN
1 3450 1150
1 0 0 1
$EndComp
$Comp
L stm32-rescue:+5V #PWR014
U 1 1 5CEBD90F
P 6250 900
F 0 "#PWR014" H 6250 750 50 0001 C CNN
F 1 "+5V" H 6250 1040 50 0000 C CNN
F 2 "" H 6250 900 50 0000 C CNN
F 3 "" H 6250 900 50 0000 C CNN
1 6250 900
1 0 0 -1
$EndComp
$Comp
L stm32-rescue:GND #PWR015
U 1 1 5CEBE077
P 6250 1500
F 0 "#PWR015" H 6250 1250 50 0001 C CNN
F 1 "GND" H 6250 1350 50 0000 C CNN
F 2 "" H 6250 1500 50 0000 C CNN
F 3 "" H 6250 1500 50 0000 C CNN
1 6250 1500
1 0 0 -1
$EndComp
Text Label 6250 1100 2 50 ~ 0
CAP1
Text Label 6250 1200 2 50 ~ 0
CAP2
Text Label 6250 1000 2 50 ~ 0
AIN
Text Label 6250 1300 2 50 ~ 0
Touch0
Text Label 6250 1400 2 50 ~ 0
Touch1
Text Label 4825 2850 2 50 ~ 0
UDP_PU
Wire Wire Line
4950 2150 5275 2150
Wire Wire Line
5175 2350 5175 2250
Connection ~ 5175 2350
Text Label 5175 2250 2 50 ~ 0
UDPbt
Text Label 2825 950 0 50 ~ 0
UDPbt
$EndSCHEMATC

32
ch552g_devbrd/ch55x.lib Normal file
View File

@ -0,0 +1,32 @@
EESchema-LIBRARY Version 2.4
#encoding utf-8
#
# CH552G
#
DEF CH552G U 0 40 Y Y 1 F N
F0 "U" 0 -500 50 H V C CNN
F1 "CH552G" 50 500 50 H V C CNN
F2 "" -1300 -200 50 H I C CNN
F3 "" -1300 -200 50 H I C CNN
DRAW
S -1100 450 1100 -450 0 1 0 N
X P3.2/TXD1_/INT0/VBUS1/AIN3 1 -1300 350 200 R 50 50 1 1 T
X P3.3/INT1 10 1300 -250 200 L 50 50 1 1 T
X P3.4/PWM2/RXD1_/T0 11 1300 -150 200 L 50 50 1 1 T
X P3.6/UDP 12 1300 -50 200 L 50 50 1 1 T
X P3.7/UDM 13 1300 50 200 L 50 50 1 1 T
X GND/VSS 14 1300 150 200 L 50 50 1 1 W
X VCC/VDD 15 1300 250 200 L 50 50 1 1 W
X V33 16 1300 350 200 L 50 50 1 1 w
X P1.4/T2_/CAP1_/SCS/TIN2/UCC1/AIN1 2 -1300 250 200 R 50 50 1 1 T
X P1.5/MOSI/PWM1/TIN3/UCC2/AIN2 3 -1300 150 200 R 50 50 1 1 T
X P1.6/MISO/RXD1/TIN4 4 -1300 50 200 R 50 50 1 1 T
X P1.7/SCK/TXD1/TIN5 5 -1300 -50 200 R 50 50 1 1 T
X RST/T2EX_/CAP2_ 6 -1300 -150 200 R 50 50 1 1 T
X P3.1/PWM2_/TXD 7 -1300 -250 200 R 50 50 1 1 T
X P3.0/PWM1_/RXD 8 -1300 -350 200 R 50 50 1 1 T
X P1.1/T2EX/CAP2/TIN1/VBUS2/AIN0 9 1300 -350 200 L 50 50 1 1 T
ENDDRAW
ENDDEF
#
#End Library

File diff suppressed because it is too large Load Diff

575
ch552g_devbrd/fp-info-cache Normal file
View File

@ -0,0 +1,575 @@
125139941383548
LED_THT
LED_BL-FL7680RGB
'Piranha' RGB LED, through hole, common anode, 7.62x7.62mm, BGRA pin order, https://cdn-shop.adafruit.com/datasheets/BL-FL7680RGB.pdf
RGB LED Piranha Super-Flux BetLux
0
4
4
LED_THT
LED_D1.8mm_W1.8mm_H2.4mm_Horizontal_O1.27mm_Z1.6mm
LED, , diameter 1.8mm size 1.8x2.4mm^2 z-position of LED center 1.6mm, 2 pins
LED diameter 1.8mm size 1.8x2.4mm^2 z-position of LED center 1.6mm 2 pins
0
2
2
LED_THT
LED_D1.8mm_W1.8mm_H2.4mm_Horizontal_O1.27mm_Z4.9mm
LED, , diameter 1.8mm size 1.8x2.4mm^2 z-position of LED center 1.6mm, 2 pins, diameter 1.8mm size 1.8x2.4mm^2 z-position of LED center 1.6mm, 2 pins, diameter 1.8mm size 1.8x2.4mm^2 z-position of LED center 1.6mm, 2 pins, diameter 1.8mm size 1.8x2.4mm^2 z-position of LED center 4.9mm, 2 pins
LED diameter 1.8mm size 1.8x2.4mm^2 z-position of LED center 1.6mm 2 pins diameter 1.8mm size 1.8x2.4mm^2 z-position of LED center 1.6mm 2 pins diameter 1.8mm size 1.8x2.4mm^2 z-position of LED center 1.6mm 2 pins diameter 1.8mm size 1.8x2.4mm^2 z-position of LED center 4.9mm 2 pins
0
2
2
LED_THT
LED_D1.8mm_W1.8mm_H2.4mm_Horizontal_O1.27mm_Z8.2mm
LED, , diameter 1.8mm size 1.8x2.4mm^2 z-position of LED center 1.6mm, 2 pins, diameter 1.8mm size 1.8x2.4mm^2 z-position of LED center 1.6mm, 2 pins, diameter 1.8mm size 1.8x2.4mm^2 z-position of LED center 1.6mm, 2 pins, diameter 1.8mm size 1.8x2.4mm^2 z-position of LED center 4.9mm, 2 pins, diameter 1.8mm size 1.8x2.4mm^2 z-position of LED center 4.9mm, 2 pins, diameter 1.8mm size 1.8x2.4mm^2 z-position of LED center 4.9mm, 2 pins, diameter 1.8mm size 1.8x2.4mm^2 z-position of LED center 8.2mm, 2 pins
LED diameter 1.8mm size 1.8x2.4mm^2 z-position of LED center 1.6mm 2 pins diameter 1.8mm size 1.8x2.4mm^2 z-position of LED center 1.6mm 2 pins diameter 1.8mm size 1.8x2.4mm^2 z-position of LED center 1.6mm 2 pins diameter 1.8mm size 1.8x2.4mm^2 z-position of LED center 4.9mm 2 pins diameter 1.8mm size 1.8x2.4mm^2 z-position of LED center 4.9mm 2 pins diameter 1.8mm size 1.8x2.4mm^2 z-position of LED center 4.9mm 2 pins diameter 1.8mm size 1.8x2.4mm^2 z-position of LED center 8.2mm 2 pins
0
2
2
LED_THT
LED_D1.8mm_W1.8mm_H2.4mm_Horizontal_O3.81mm_Z1.6mm
LED, , diameter 1.8mm size 1.8x2.4mm^2 z-position of LED center 1.6mm, 2 pins, diameter 1.8mm size 1.8x2.4mm^2 z-position of LED center 1.6mm, 2 pins
LED diameter 1.8mm size 1.8x2.4mm^2 z-position of LED center 1.6mm 2 pins diameter 1.8mm size 1.8x2.4mm^2 z-position of LED center 1.6mm 2 pins
0
2
2
LED_THT
LED_D1.8mm_W1.8mm_H2.4mm_Horizontal_O3.81mm_Z4.9mm
LED, , diameter 1.8mm size 1.8x2.4mm^2 z-position of LED center 1.6mm, 2 pins, diameter 1.8mm size 1.8x2.4mm^2 z-position of LED center 1.6mm, 2 pins, diameter 1.8mm size 1.8x2.4mm^2 z-position of LED center 1.6mm, 2 pins, diameter 1.8mm size 1.8x2.4mm^2 z-position of LED center 4.9mm, 2 pins, diameter 1.8mm size 1.8x2.4mm^2 z-position of LED center 4.9mm, 2 pins
LED diameter 1.8mm size 1.8x2.4mm^2 z-position of LED center 1.6mm 2 pins diameter 1.8mm size 1.8x2.4mm^2 z-position of LED center 1.6mm 2 pins diameter 1.8mm size 1.8x2.4mm^2 z-position of LED center 1.6mm 2 pins diameter 1.8mm size 1.8x2.4mm^2 z-position of LED center 4.9mm 2 pins diameter 1.8mm size 1.8x2.4mm^2 z-position of LED center 4.9mm 2 pins
0
2
2
LED_THT
LED_D1.8mm_W1.8mm_H2.4mm_Horizontal_O3.81mm_Z8.2mm
LED, , diameter 1.8mm size 1.8x2.4mm^2 z-position of LED center 1.6mm, 2 pins, diameter 1.8mm size 1.8x2.4mm^2 z-position of LED center 1.6mm, 2 pins, diameter 1.8mm size 1.8x2.4mm^2 z-position of LED center 1.6mm, 2 pins, diameter 1.8mm size 1.8x2.4mm^2 z-position of LED center 4.9mm, 2 pins, diameter 1.8mm size 1.8x2.4mm^2 z-position of LED center 4.9mm, 2 pins, diameter 1.8mm size 1.8x2.4mm^2 z-position of LED center 4.9mm, 2 pins, diameter 1.8mm size 1.8x2.4mm^2 z-position of LED center 8.2mm, 2 pins, diameter 1.8mm size 1.8x2.4mm^2 z-position of LED center 8.2mm, 2 pins
LED diameter 1.8mm size 1.8x2.4mm^2 z-position of LED center 1.6mm 2 pins diameter 1.8mm size 1.8x2.4mm^2 z-position of LED center 1.6mm 2 pins diameter 1.8mm size 1.8x2.4mm^2 z-position of LED center 1.6mm 2 pins diameter 1.8mm size 1.8x2.4mm^2 z-position of LED center 4.9mm 2 pins diameter 1.8mm size 1.8x2.4mm^2 z-position of LED center 4.9mm 2 pins diameter 1.8mm size 1.8x2.4mm^2 z-position of LED center 4.9mm 2 pins diameter 1.8mm size 1.8x2.4mm^2 z-position of LED center 8.2mm 2 pins diameter 1.8mm size 1.8x2.4mm^2 z-position of LED center 8.2mm 2 pins
0
2
2
LED_THT
LED_D1.8mm_W1.8mm_H2.4mm_Horizontal_O6.35mm_Z1.6mm
LED, , diameter 1.8mm size 1.8x2.4mm^2 z-position of LED center 1.6mm, 2 pins, diameter 1.8mm size 1.8x2.4mm^2 z-position of LED center 1.6mm, 2 pins, diameter 1.8mm size 1.8x2.4mm^2 z-position of LED center 1.6mm, 2 pins
LED diameter 1.8mm size 1.8x2.4mm^2 z-position of LED center 1.6mm 2 pins diameter 1.8mm size 1.8x2.4mm^2 z-position of LED center 1.6mm 2 pins diameter 1.8mm size 1.8x2.4mm^2 z-position of LED center 1.6mm 2 pins
0
2
2
LED_THT
LED_D1.8mm_W1.8mm_H2.4mm_Horizontal_O6.35mm_Z4.9mm
LED, , diameter 1.8mm size 1.8x2.4mm^2 z-position of LED center 1.6mm, 2 pins, diameter 1.8mm size 1.8x2.4mm^2 z-position of LED center 1.6mm, 2 pins, diameter 1.8mm size 1.8x2.4mm^2 z-position of LED center 1.6mm, 2 pins, diameter 1.8mm size 1.8x2.4mm^2 z-position of LED center 4.9mm, 2 pins, diameter 1.8mm size 1.8x2.4mm^2 z-position of LED center 4.9mm, 2 pins, diameter 1.8mm size 1.8x2.4mm^2 z-position of LED center 4.9mm, 2 pins
LED diameter 1.8mm size 1.8x2.4mm^2 z-position of LED center 1.6mm 2 pins diameter 1.8mm size 1.8x2.4mm^2 z-position of LED center 1.6mm 2 pins diameter 1.8mm size 1.8x2.4mm^2 z-position of LED center 1.6mm 2 pins diameter 1.8mm size 1.8x2.4mm^2 z-position of LED center 4.9mm 2 pins diameter 1.8mm size 1.8x2.4mm^2 z-position of LED center 4.9mm 2 pins diameter 1.8mm size 1.8x2.4mm^2 z-position of LED center 4.9mm 2 pins
0
2
2
LED_THT
LED_D1.8mm_W1.8mm_H2.4mm_Horizontal_O6.35mm_Z8.2mm
LED, , diameter 1.8mm size 1.8x2.4mm^2 z-position of LED center 1.6mm, 2 pins, diameter 1.8mm size 1.8x2.4mm^2 z-position of LED center 1.6mm, 2 pins, diameter 1.8mm size 1.8x2.4mm^2 z-position of LED center 1.6mm, 2 pins, diameter 1.8mm size 1.8x2.4mm^2 z-position of LED center 4.9mm, 2 pins, diameter 1.8mm size 1.8x2.4mm^2 z-position of LED center 4.9mm, 2 pins, diameter 1.8mm size 1.8x2.4mm^2 z-position of LED center 4.9mm, 2 pins, diameter 1.8mm size 1.8x2.4mm^2 z-position of LED center 8.2mm, 2 pins, diameter 1.8mm size 1.8x2.4mm^2 z-position of LED center 8.2mm, 2 pins, diameter 1.8mm size 1.8x2.4mm^2 z-position of LED center 8.2mm, 2 pins
LED diameter 1.8mm size 1.8x2.4mm^2 z-position of LED center 1.6mm 2 pins diameter 1.8mm size 1.8x2.4mm^2 z-position of LED center 1.6mm 2 pins diameter 1.8mm size 1.8x2.4mm^2 z-position of LED center 1.6mm 2 pins diameter 1.8mm size 1.8x2.4mm^2 z-position of LED center 4.9mm 2 pins diameter 1.8mm size 1.8x2.4mm^2 z-position of LED center 4.9mm 2 pins diameter 1.8mm size 1.8x2.4mm^2 z-position of LED center 4.9mm 2 pins diameter 1.8mm size 1.8x2.4mm^2 z-position of LED center 8.2mm 2 pins diameter 1.8mm size 1.8x2.4mm^2 z-position of LED center 8.2mm 2 pins diameter 1.8mm size 1.8x2.4mm^2 z-position of LED center 8.2mm 2 pins
0
2
2
LED_THT
LED_D1.8mm_W3.3mm_H2.4mm
LED, Round, Rectangular size 3.3x2.4mm^2 diameter 1.8mm, 2 pins
LED Round Rectangular size 3.3x2.4mm^2 diameter 1.8mm 2 pins
0
2
2
LED_THT
LED_D2.0mm_W4.0mm_H2.8mm_FlatTop
LED, Round, FlatTop, Rectangular size 4.0x2.8mm^2 diameter 2.0mm, 2 pins, http://www.kingbright.com/attachments/file/psearch/000/00/00/L-1034IDT(Ver.9A).pdf
LED Round FlatTop Rectangular size 4.0x2.8mm^2 diameter 2.0mm 2 pins
0
2
2
LED_THT
LED_D2.0mm_W4.8mm_H2.5mm_FlatTop
LED, Round, FlatTop, Rectangular size 4.8x2.5mm^2 diameter 2.0mm, 2 pins, http://www.kingbright.com/attachments/file/psearch/000/00/00/L-13GD(Ver.11B).pdf
LED Round FlatTop Rectangular size 4.8x2.5mm^2 diameter 2.0mm 2 pins
0
2
2
LED_THT
LED_D3.0mm
LED, diameter 3.0mm, 2 pins
LED diameter 3.0mm 2 pins
0
2
2
LED_THT
LED_D3.0mm-3
LED, diameter 3.0mm, 2 pins, diameter 3.0mm, 3 pins, http://www.kingbright.com/attachments/file/psearch/000/00/00/L-3VSURKCGKC(Ver.8A).pdf
LED diameter 3.0mm 2 pins diameter 3.0mm 3 pins
0
3
3
LED_THT
LED_D3.0mm_Clear
IR-LED, diameter 3.0mm, 2 pins, color: clear
IR infrared LED diameter 3.0mm 2 pins clear
0
2
2
LED_THT
LED_D3.0mm_FlatTop
LED, Round, FlatTop, diameter 3.0mm, 2 pins, http://www.kingbright.com/attachments/file/psearch/000/00/00/L-47XEC(Ver.9A).pdf
LED Round FlatTop diameter 3.0mm 2 pins
0
2
2
LED_THT
LED_D3.0mm_Horizontal_O1.27mm_Z2.0mm
LED, diameter 3.0mm z-position of LED center 2.0mm, 2 pins
LED diameter 3.0mm z-position of LED center 2.0mm 2 pins
0
2
2
LED_THT
LED_D3.0mm_Horizontal_O1.27mm_Z2.0mm_Clear
LED, diameter 3.0mm z-position of LED center 2.0mm, 2 pins
LED diameter 3.0mm z-position of LED center 2.0mm 2 pins
0
2
2
LED_THT
LED_D3.0mm_Horizontal_O1.27mm_Z2.0mm_IRBlack
LED, diameter 3.0mm z-position of LED center 2.0mm, 2 pins
LED diameter 3.0mm z-position of LED center 2.0mm 2 pins
0
2
2
LED_THT
LED_D3.0mm_Horizontal_O1.27mm_Z2.0mm_IRGrey
LED, diameter 3.0mm z-position of LED center 2.0mm, 2 pins
LED diameter 3.0mm z-position of LED center 2.0mm 2 pins
0
2
2
LED_THT
LED_D3.0mm_Horizontal_O1.27mm_Z6.0mm
LED, diameter 3.0mm z-position of LED center 2.0mm, 2 pins, diameter 3.0mm z-position of LED center 2.0mm, 2 pins, diameter 3.0mm z-position of LED center 2.0mm, 2 pins, diameter 3.0mm z-position of LED center 6.0mm, 2 pins
LED diameter 3.0mm z-position of LED center 2.0mm 2 pins diameter 3.0mm z-position of LED center 2.0mm 2 pins diameter 3.0mm z-position of LED center 2.0mm 2 pins diameter 3.0mm z-position of LED center 6.0mm 2 pins
0
2
2
LED_THT
LED_D3.0mm_Horizontal_O1.27mm_Z10.0mm
LED, diameter 3.0mm z-position of LED center 2.0mm, 2 pins, diameter 3.0mm z-position of LED center 2.0mm, 2 pins, diameter 3.0mm z-position of LED center 2.0mm, 2 pins, diameter 3.0mm z-position of LED center 6.0mm, 2 pins, diameter 3.0mm z-position of LED center 6.0mm, 2 pins, diameter 3.0mm z-position of LED center 6.0mm, 2 pins, diameter 3.0mm z-position of LED center 10.0mm, 2 pins
LED diameter 3.0mm z-position of LED center 2.0mm 2 pins diameter 3.0mm z-position of LED center 2.0mm 2 pins diameter 3.0mm z-position of LED center 2.0mm 2 pins diameter 3.0mm z-position of LED center 6.0mm 2 pins diameter 3.0mm z-position of LED center 6.0mm 2 pins diameter 3.0mm z-position of LED center 6.0mm 2 pins diameter 3.0mm z-position of LED center 10.0mm 2 pins
0
2
2
LED_THT
LED_D3.0mm_Horizontal_O3.81mm_Z2.0mm
LED, diameter 3.0mm z-position of LED center 2.0mm, 2 pins, diameter 3.0mm z-position of LED center 2.0mm, 2 pins
LED diameter 3.0mm z-position of LED center 2.0mm 2 pins diameter 3.0mm z-position of LED center 2.0mm 2 pins
0
2
2
LED_THT
LED_D3.0mm_Horizontal_O3.81mm_Z6.0mm
LED, diameter 3.0mm z-position of LED center 2.0mm, 2 pins, diameter 3.0mm z-position of LED center 2.0mm, 2 pins, diameter 3.0mm z-position of LED center 2.0mm, 2 pins, diameter 3.0mm z-position of LED center 6.0mm, 2 pins, diameter 3.0mm z-position of LED center 6.0mm, 2 pins
LED diameter 3.0mm z-position of LED center 2.0mm 2 pins diameter 3.0mm z-position of LED center 2.0mm 2 pins diameter 3.0mm z-position of LED center 2.0mm 2 pins diameter 3.0mm z-position of LED center 6.0mm 2 pins diameter 3.0mm z-position of LED center 6.0mm 2 pins
0
2
2
LED_THT
LED_D3.0mm_Horizontal_O3.81mm_Z10.0mm
LED, diameter 3.0mm z-position of LED center 2.0mm, 2 pins, diameter 3.0mm z-position of LED center 2.0mm, 2 pins, diameter 3.0mm z-position of LED center 2.0mm, 2 pins, diameter 3.0mm z-position of LED center 6.0mm, 2 pins, diameter 3.0mm z-position of LED center 6.0mm, 2 pins, diameter 3.0mm z-position of LED center 6.0mm, 2 pins, diameter 3.0mm z-position of LED center 10.0mm, 2 pins, diameter 3.0mm z-position of LED center 10.0mm, 2 pins
LED diameter 3.0mm z-position of LED center 2.0mm 2 pins diameter 3.0mm z-position of LED center 2.0mm 2 pins diameter 3.0mm z-position of LED center 2.0mm 2 pins diameter 3.0mm z-position of LED center 6.0mm 2 pins diameter 3.0mm z-position of LED center 6.0mm 2 pins diameter 3.0mm z-position of LED center 6.0mm 2 pins diameter 3.0mm z-position of LED center 10.0mm 2 pins diameter 3.0mm z-position of LED center 10.0mm 2 pins
0
2
2
LED_THT
LED_D3.0mm_Horizontal_O6.35mm_Z2.0mm
LED, diameter 3.0mm z-position of LED center 2.0mm, 2 pins, diameter 3.0mm z-position of LED center 2.0mm, 2 pins, diameter 3.0mm z-position of LED center 2.0mm, 2 pins
LED diameter 3.0mm z-position of LED center 2.0mm 2 pins diameter 3.0mm z-position of LED center 2.0mm 2 pins diameter 3.0mm z-position of LED center 2.0mm 2 pins
0
2
2
LED_THT
LED_D3.0mm_Horizontal_O6.35mm_Z6.0mm
LED, diameter 3.0mm z-position of LED center 2.0mm, 2 pins, diameter 3.0mm z-position of LED center 2.0mm, 2 pins, diameter 3.0mm z-position of LED center 2.0mm, 2 pins, diameter 3.0mm z-position of LED center 6.0mm, 2 pins, diameter 3.0mm z-position of LED center 6.0mm, 2 pins, diameter 3.0mm z-position of LED center 6.0mm, 2 pins
LED diameter 3.0mm z-position of LED center 2.0mm 2 pins diameter 3.0mm z-position of LED center 2.0mm 2 pins diameter 3.0mm z-position of LED center 2.0mm 2 pins diameter 3.0mm z-position of LED center 6.0mm 2 pins diameter 3.0mm z-position of LED center 6.0mm 2 pins diameter 3.0mm z-position of LED center 6.0mm 2 pins
0
2
2
LED_THT
LED_D3.0mm_Horizontal_O6.35mm_Z10.0mm
LED, diameter 3.0mm z-position of LED center 2.0mm, 2 pins, diameter 3.0mm z-position of LED center 2.0mm, 2 pins, diameter 3.0mm z-position of LED center 2.0mm, 2 pins, diameter 3.0mm z-position of LED center 6.0mm, 2 pins, diameter 3.0mm z-position of LED center 6.0mm, 2 pins, diameter 3.0mm z-position of LED center 6.0mm, 2 pins, diameter 3.0mm z-position of LED center 10.0mm, 2 pins, diameter 3.0mm z-position of LED center 10.0mm, 2 pins, diameter 3.0mm z-position of LED center 10.0mm, 2 pins
LED diameter 3.0mm z-position of LED center 2.0mm 2 pins diameter 3.0mm z-position of LED center 2.0mm 2 pins diameter 3.0mm z-position of LED center 2.0mm 2 pins diameter 3.0mm z-position of LED center 6.0mm 2 pins diameter 3.0mm z-position of LED center 6.0mm 2 pins diameter 3.0mm z-position of LED center 6.0mm 2 pins diameter 3.0mm z-position of LED center 10.0mm 2 pins diameter 3.0mm z-position of LED center 10.0mm 2 pins diameter 3.0mm z-position of LED center 10.0mm 2 pins
0
2
2
LED_THT
LED_D3.0mm_IRBlack
IR-ED, diameter 3.0mm, 2 pins, color: black
IR infrared LED diameter 3.0mm 2 pins black
0
2
2
LED_THT
LED_D3.0mm_IRGrey
IR-LED, diameter 3.0mm, 2 pins, color: grey
IR infrared LED diameter 3.0mm 2 pins grey
0
2
2
LED_THT
LED_D4.0mm
LED, diameter 4.0mm, 2 pins, http://www.kingbright.com/attachments/file/psearch/000/00/00/L-43GD(Ver.12B).pdf
LED diameter 4.0mm 2 pins
0
2
2
LED_THT
LED_D5.0mm
LED, diameter 5.0mm, 2 pins, http://cdn-reichelt.de/documents/datenblatt/A500/LL-504BC2E-009.pdf
LED diameter 5.0mm 2 pins
0
2
2
LED_THT
LED_D5.0mm-3
LED, diameter 5.0mm, 2 pins, diameter 5.0mm, 3 pins, http://www.kingbright.com/attachments/file/psearch/000/00/00/L-59EGC(Ver.17A).pdf
LED diameter 5.0mm 2 pins diameter 5.0mm 3 pins
0
3
3
LED_THT
LED_D5.0mm-3_Horizontal_O3.81mm_Z3.0mm
LED, diameter 5.0mm z-position of LED center 3.0mm, 3 pins, diameter 5.0mm z-position of LED center 3.0mm, 2 pins
LED diameter 5.0mm z-position of LED center 3.0mm 3 pins diameter 5.0mm z-position of LED center 3.0mm 2 pins
0
3
3
LED_THT
LED_D5.0mm-4_RGB
LED, diameter 5.0mm, 2 pins, diameter 5.0mm, 3 pins, diameter 5.0mm, 4 pins, http://www.kingbright.com/attachments/file/psearch/000/00/00/L-154A4SUREQBFZGEW(Ver.9A).pdf
LED diameter 5.0mm 2 pins diameter 5.0mm 3 pins diameter 5.0mm 4 pins RGB RGBLED
0
4
4
LED_THT
LED_D5.0mm-4_RGB_Staggered_Pins
LED, diameter 5.0mm, 2 pins, diameter 5.0mm, 3 pins, diameter 5.0mm, 4 pins, http://www.kingbright.com/attachments/file/psearch/000/00/00/L-154A4SUREQBFZGEW(Ver.9A).pdf
LED diameter 5.0mm 2 pins diameter 5.0mm 3 pins diameter 5.0mm 4 pins RGB RGBLED
0
4
4
LED_THT
LED_D5.0mm-4_RGB_Wide_Pins
LED, diameter 5.0mm, 2 pins, diameter 5.0mm, 3 pins, diameter 5.0mm, 4 pins, http://www.kingbright.com/attachments/file/psearch/000/00/00/L-154A4SUREQBFZGEW(Ver.9A).pdf
LED diameter 5.0mm 2 pins diameter 5.0mm 3 pins diameter 5.0mm 4 pins RGB RGBLED
0
4
4
LED_THT
LED_D5.0mm_Clear
LED, diameter 5.0mm, 2 pins, http://cdn-reichelt.de/documents/datenblatt/A500/LL-504BC2E-009.pdf
LED diameter 5.0mm 2 pins
0
2
2
LED_THT
LED_D5.0mm_FlatTop
LED, Round, FlatTop, diameter 5.0mm, 2 pins, http://www.kingbright.com/attachments/file/psearch/000/00/00/L-483GDT(Ver.15B).pdf
LED Round FlatTop diameter 5.0mm 2 pins
0
2
2
LED_THT
LED_D5.0mm_Horizontal_O1.27mm_Z3.0mm
LED, diameter 5.0mm z-position of LED center 3.0mm, 2 pins
LED diameter 5.0mm z-position of LED center 3.0mm 2 pins
0
2
2
LED_THT
LED_D5.0mm_Horizontal_O1.27mm_Z3.0mm_Clear
LED, diameter 5.0mm z-position of LED center 3.0mm, 2 pins
LED diameter 5.0mm z-position of LED center 3.0mm 2 pins
0
2
2
LED_THT
LED_D5.0mm_Horizontal_O1.27mm_Z3.0mm_IRBlack
LED, diameter 5.0mm z-position of LED center 3.0mm, 2 pins
LED diameter 5.0mm z-position of LED center 3.0mm 2 pins
0
2
2
LED_THT
LED_D5.0mm_Horizontal_O1.27mm_Z3.0mm_IRGrey
LED, diameter 5.0mm z-position of LED center 3.0mm, 2 pins
LED diameter 5.0mm z-position of LED center 3.0mm 2 pins
0
2
2
LED_THT
LED_D5.0mm_Horizontal_O1.27mm_Z9.0mm
LED, diameter 5.0mm z-position of LED center 3.0mm, 2 pins, diameter 5.0mm z-position of LED center 3.0mm, 2 pins, diameter 5.0mm z-position of LED center 3.0mm, 2 pins, diameter 5.0mm z-position of LED center 9.0mm, 2 pins
LED diameter 5.0mm z-position of LED center 3.0mm 2 pins diameter 5.0mm z-position of LED center 3.0mm 2 pins diameter 5.0mm z-position of LED center 3.0mm 2 pins diameter 5.0mm z-position of LED center 9.0mm 2 pins
0
2
2
LED_THT
LED_D5.0mm_Horizontal_O1.27mm_Z15.0mm
LED, diameter 5.0mm z-position of LED center 3.0mm, 2 pins, diameter 5.0mm z-position of LED center 3.0mm, 2 pins, diameter 5.0mm z-position of LED center 3.0mm, 2 pins, diameter 5.0mm z-position of LED center 9.0mm, 2 pins, diameter 5.0mm z-position of LED center 9.0mm, 2 pins, diameter 5.0mm z-position of LED center 9.0mm, 2 pins, diameter 5.0mm z-position of LED center 15.0mm, 2 pins
LED diameter 5.0mm z-position of LED center 3.0mm 2 pins diameter 5.0mm z-position of LED center 3.0mm 2 pins diameter 5.0mm z-position of LED center 3.0mm 2 pins diameter 5.0mm z-position of LED center 9.0mm 2 pins diameter 5.0mm z-position of LED center 9.0mm 2 pins diameter 5.0mm z-position of LED center 9.0mm 2 pins diameter 5.0mm z-position of LED center 15.0mm 2 pins
0
2
2
LED_THT
LED_D5.0mm_Horizontal_O3.81mm_Z3.0mm
LED, diameter 5.0mm z-position of LED center 3.0mm, 2 pins, diameter 5.0mm z-position of LED center 3.0mm, 2 pins
LED diameter 5.0mm z-position of LED center 3.0mm 2 pins diameter 5.0mm z-position of LED center 3.0mm 2 pins
0
2
2
LED_THT
LED_D5.0mm_Horizontal_O3.81mm_Z9.0mm
LED, diameter 5.0mm z-position of LED center 3.0mm, 2 pins, diameter 5.0mm z-position of LED center 3.0mm, 2 pins, diameter 5.0mm z-position of LED center 3.0mm, 2 pins, diameter 5.0mm z-position of LED center 9.0mm, 2 pins, diameter 5.0mm z-position of LED center 9.0mm, 2 pins
LED diameter 5.0mm z-position of LED center 3.0mm 2 pins diameter 5.0mm z-position of LED center 3.0mm 2 pins diameter 5.0mm z-position of LED center 3.0mm 2 pins diameter 5.0mm z-position of LED center 9.0mm 2 pins diameter 5.0mm z-position of LED center 9.0mm 2 pins
0
2
2
LED_THT
LED_D5.0mm_Horizontal_O3.81mm_Z15.0mm
LED, diameter 5.0mm z-position of LED center 3.0mm, 2 pins, diameter 5.0mm z-position of LED center 3.0mm, 2 pins, diameter 5.0mm z-position of LED center 3.0mm, 2 pins, diameter 5.0mm z-position of LED center 9.0mm, 2 pins, diameter 5.0mm z-position of LED center 9.0mm, 2 pins, diameter 5.0mm z-position of LED center 9.0mm, 2 pins, diameter 5.0mm z-position of LED center 15.0mm, 2 pins, diameter 5.0mm z-position of LED center 15.0mm, 2 pins
LED diameter 5.0mm z-position of LED center 3.0mm 2 pins diameter 5.0mm z-position of LED center 3.0mm 2 pins diameter 5.0mm z-position of LED center 3.0mm 2 pins diameter 5.0mm z-position of LED center 9.0mm 2 pins diameter 5.0mm z-position of LED center 9.0mm 2 pins diameter 5.0mm z-position of LED center 9.0mm 2 pins diameter 5.0mm z-position of LED center 15.0mm 2 pins diameter 5.0mm z-position of LED center 15.0mm 2 pins
0
2
2
LED_THT
LED_D5.0mm_Horizontal_O6.35mm_Z3.0mm
LED, diameter 5.0mm z-position of LED center 3.0mm, 2 pins, diameter 5.0mm z-position of LED center 3.0mm, 2 pins, diameter 5.0mm z-position of LED center 3.0mm, 2 pins
LED diameter 5.0mm z-position of LED center 3.0mm 2 pins diameter 5.0mm z-position of LED center 3.0mm 2 pins diameter 5.0mm z-position of LED center 3.0mm 2 pins
0
2
2
LED_THT
LED_D5.0mm_Horizontal_O6.35mm_Z9.0mm
LED, diameter 5.0mm z-position of LED center 3.0mm, 2 pins, diameter 5.0mm z-position of LED center 3.0mm, 2 pins, diameter 5.0mm z-position of LED center 3.0mm, 2 pins, diameter 5.0mm z-position of LED center 9.0mm, 2 pins, diameter 5.0mm z-position of LED center 9.0mm, 2 pins, diameter 5.0mm z-position of LED center 9.0mm, 2 pins
LED diameter 5.0mm z-position of LED center 3.0mm 2 pins diameter 5.0mm z-position of LED center 3.0mm 2 pins diameter 5.0mm z-position of LED center 3.0mm 2 pins diameter 5.0mm z-position of LED center 9.0mm 2 pins diameter 5.0mm z-position of LED center 9.0mm 2 pins diameter 5.0mm z-position of LED center 9.0mm 2 pins
0
2
2
LED_THT
LED_D5.0mm_Horizontal_O6.35mm_Z15.0mm
LED, diameter 5.0mm z-position of LED center 3.0mm, 2 pins, diameter 5.0mm z-position of LED center 3.0mm, 2 pins, diameter 5.0mm z-position of LED center 3.0mm, 2 pins, diameter 5.0mm z-position of LED center 9.0mm, 2 pins, diameter 5.0mm z-position of LED center 9.0mm, 2 pins, diameter 5.0mm z-position of LED center 9.0mm, 2 pins, diameter 5.0mm z-position of LED center 15.0mm, 2 pins, diameter 5.0mm z-position of LED center 15.0mm, 2 pins, diameter 5.0mm z-position of LED center 15.0mm, 2 pins
LED diameter 5.0mm z-position of LED center 3.0mm 2 pins diameter 5.0mm z-position of LED center 3.0mm 2 pins diameter 5.0mm z-position of LED center 3.0mm 2 pins diameter 5.0mm z-position of LED center 9.0mm 2 pins diameter 5.0mm z-position of LED center 9.0mm 2 pins diameter 5.0mm z-position of LED center 9.0mm 2 pins diameter 5.0mm z-position of LED center 15.0mm 2 pins diameter 5.0mm z-position of LED center 15.0mm 2 pins diameter 5.0mm z-position of LED center 15.0mm 2 pins
0
2
2
LED_THT
LED_D5.0mm_IRBlack
LED, diameter 5.0mm, 2 pins, http://cdn-reichelt.de/documents/datenblatt/A500/LL-504BC2E-009.pdf
LED diameter 5.0mm 2 pins
0
2
2
LED_THT
LED_D5.0mm_IRGrey
LED, diameter 5.0mm, 2 pins, http://cdn-reichelt.de/documents/datenblatt/A500/LL-504BC2E-009.pdf
LED diameter 5.0mm 2 pins
0
2
2
LED_THT
LED_D8.0mm
LED, diameter 8.0mm, 2 pins, http://cdn-reichelt.de/documents/datenblatt/A500/LED8MMGE_LED8MMGN_LED8MMRT%23KIN.pdf
LED diameter 8.0mm 2 pins
0
2
2
LED_THT
LED_D8.0mm-3
LED, diameter 8.0mm, 2 pins, diameter 8.0mm, 3 pins
LED diameter 8.0mm 2 pins diameter 8.0mm 3 pins
0
3
3
LED_THT
LED_D10.0mm
LED, diameter 10.0mm, 2 pins, http://cdn-reichelt.de/documents/datenblatt/A500/LED10-4500RT%23KIN.pdf
LED diameter 10.0mm 2 pins
0
2
2
LED_THT
LED_D10.0mm-3
LED, diameter 10.0mm, 2 pins, diameter 10.0mm, 3 pins, http://www.kingbright.com/attachments/file/psearch/000/00/00/L-819EGW(Ver.14A).pdf
LED diameter 10.0mm 2 pins diameter 10.0mm 3 pins
0
3
3
LED_THT
LED_D20.0mm
LED, diameter 20.0mm, 2 pins, http://cdn-reichelt.de/documents/datenblatt/A500/DLC2-6GD%28V6%29.pdf
LED diameter 20.0mm 2 pins
0
2
2
LED_THT
LED_Oval_W5.2mm_H3.8mm
LED_Oval, Oval, Oval size 5.2x3.8mm^2, 2 pins, http://www.kingbright.com/attachments/file/psearch/000/00/00/L-5603QBC-D(Ver.12B).pdf
LED_Oval Oval Oval size 5.2x3.8mm^2 2 pins
0
2
2
LED_THT
LED_Rectangular_W3.0mm_H2.0mm
LED_Rectangular, Rectangular, Rectangular size 3.0x2.0mm^2, 2 pins, http://www.kingbright.com/attachments/file/psearch/000/00/00/L-169XCGDK(Ver.9B).pdf
LED_Rectangular Rectangular Rectangular size 3.0x2.0mm^2 2 pins
0
2
2
LED_THT
LED_Rectangular_W3.9mm_H1.8mm
LED_Rectangular, Rectangular, Rectangular size 3.9x1.8mm^2, 2 pins, http://www.kingbright.com/attachments/file/psearch/000/00/00/L-2774GD(Ver.7B).pdf
LED_Rectangular Rectangular Rectangular size 3.9x1.8mm^2 2 pins
0
2
2
LED_THT
LED_Rectangular_W3.9mm_H1.8mm_FlatTop
LED_Rectangular, Rectangular, Rectangular size 3.9x1.8mm^2, 2 pins, http://www.kingbright.com/attachments/file/psearch/000/00/00/L-2774GD(Ver.7B).pdf
LED_Rectangular Rectangular Rectangular size 3.9x1.8mm^2 2 pins
0
2
2
LED_THT
LED_Rectangular_W3.9mm_H1.9mm
LED_Rectangular, Rectangular, Rectangular size 3.9x1.9mm^2, 2 pins, http://www.kingbright.com/attachments/file/psearch/000/00/00/L-144GDT(Ver.14B).pdf
LED_Rectangular Rectangular Rectangular size 3.9x1.9mm^2 2 pins
0
2
2
LED_THT
LED_Rectangular_W5.0mm_H2.0mm
LED_Rectangular, Rectangular, Rectangular size 5.0x2.0mm^2, 2 pins, http://www.kingbright.com/attachments/file/psearch/000/00/00/L-169XCGDK(Ver.9B).pdf
LED_Rectangular Rectangular Rectangular size 5.0x2.0mm^2 2 pins
0
2
2
LED_THT
LED_Rectangular_W5.0mm_H2.0mm-3Pins
LED_Rectangular, Rectangular, Rectangular size 5.0x2.0mm^2, 3 pins, http://www.kingbright.com/attachments/file/psearch/000/00/00/L-169XCGDK(Ver.9B).pdf
LED_Rectangular Rectangular Rectangular size 5.0x2.0mm^2 3 pins
0
3
3
LED_THT
LED_Rectangular_W5.0mm_H2.0mm_Horizontal_O1.27mm_Z1.0mm
LED_Rectangular, Rectangular, Rectangular size 5.0x2.0mm^2 z-position of LED center 1.0mm, 2 pins
LED_Rectangular Rectangular Rectangular size 5.0x2.0mm^2 z-position of LED center 1.0mm 2 pins
0
2
2
LED_THT
LED_Rectangular_W5.0mm_H2.0mm_Horizontal_O1.27mm_Z3.0mm
LED_Rectangular, Rectangular, Rectangular size 5.0x2.0mm^2 z-position of LED center 1.0mm, 2 pins, Rectangular size 5.0x2.0mm^2 z-position of LED center 1.0mm, 2 pins, Rectangular size 5.0x2.0mm^2 z-position of LED center 1.0mm, 2 pins, Rectangular size 5.0x2.0mm^2 z-position of LED center 3.0mm, 2 pins
LED_Rectangular Rectangular Rectangular size 5.0x2.0mm^2 z-position of LED center 1.0mm 2 pins Rectangular size 5.0x2.0mm^2 z-position of LED center 1.0mm 2 pins Rectangular size 5.0x2.0mm^2 z-position of LED center 1.0mm 2 pins Rectangular size 5.0x2.0mm^2 z-position of LED center 3.0mm 2 pins
0
2
2
LED_THT
LED_Rectangular_W5.0mm_H2.0mm_Horizontal_O1.27mm_Z5.0mm
LED_Rectangular, Rectangular, Rectangular size 5.0x2.0mm^2 z-position of LED center 1.0mm, 2 pins, Rectangular size 5.0x2.0mm^2 z-position of LED center 1.0mm, 2 pins, Rectangular size 5.0x2.0mm^2 z-position of LED center 1.0mm, 2 pins, Rectangular size 5.0x2.0mm^2 z-position of LED center 3.0mm, 2 pins, Rectangular size 5.0x2.0mm^2 z-position of LED center 3.0mm, 2 pins, Rectangular size 5.0x2.0mm^2 z-position of LED center 3.0mm, 2 pins, Rectangular size 5.0x2.0mm^2 z-position of LED center 5.0mm, 2 pins
LED_Rectangular Rectangular Rectangular size 5.0x2.0mm^2 z-position of LED center 1.0mm 2 pins Rectangular size 5.0x2.0mm^2 z-position of LED center 1.0mm 2 pins Rectangular size 5.0x2.0mm^2 z-position of LED center 1.0mm 2 pins Rectangular size 5.0x2.0mm^2 z-position of LED center 3.0mm 2 pins Rectangular size 5.0x2.0mm^2 z-position of LED center 3.0mm 2 pins Rectangular size 5.0x2.0mm^2 z-position of LED center 3.0mm 2 pins Rectangular size 5.0x2.0mm^2 z-position of LED center 5.0mm 2 pins
0
2
2
LED_THT
LED_Rectangular_W5.0mm_H2.0mm_Horizontal_O3.81mm_Z1.0mm
LED_Rectangular, Rectangular, Rectangular size 5.0x2.0mm^2 z-position of LED center 1.0mm, 2 pins, Rectangular size 5.0x2.0mm^2 z-position of LED center 1.0mm, 2 pins
LED_Rectangular Rectangular Rectangular size 5.0x2.0mm^2 z-position of LED center 1.0mm 2 pins Rectangular size 5.0x2.0mm^2 z-position of LED center 1.0mm 2 pins
0
2
2
LED_THT
LED_Rectangular_W5.0mm_H2.0mm_Horizontal_O3.81mm_Z3.0mm
LED_Rectangular, Rectangular, Rectangular size 5.0x2.0mm^2 z-position of LED center 1.0mm, 2 pins, Rectangular size 5.0x2.0mm^2 z-position of LED center 1.0mm, 2 pins, Rectangular size 5.0x2.0mm^2 z-position of LED center 1.0mm, 2 pins, Rectangular size 5.0x2.0mm^2 z-position of LED center 3.0mm, 2 pins, Rectangular size 5.0x2.0mm^2 z-position of LED center 3.0mm, 2 pins
LED_Rectangular Rectangular Rectangular size 5.0x2.0mm^2 z-position of LED center 1.0mm 2 pins Rectangular size 5.0x2.0mm^2 z-position of LED center 1.0mm 2 pins Rectangular size 5.0x2.0mm^2 z-position of LED center 1.0mm 2 pins Rectangular size 5.0x2.0mm^2 z-position of LED center 3.0mm 2 pins Rectangular size 5.0x2.0mm^2 z-position of LED center 3.0mm 2 pins
0
2
2
LED_THT
LED_Rectangular_W5.0mm_H2.0mm_Horizontal_O3.81mm_Z5.0mm
LED_Rectangular, Rectangular, Rectangular size 5.0x2.0mm^2 z-position of LED center 1.0mm, 2 pins, Rectangular size 5.0x2.0mm^2 z-position of LED center 1.0mm, 2 pins, Rectangular size 5.0x2.0mm^2 z-position of LED center 1.0mm, 2 pins, Rectangular size 5.0x2.0mm^2 z-position of LED center 3.0mm, 2 pins, Rectangular size 5.0x2.0mm^2 z-position of LED center 3.0mm, 2 pins, Rectangular size 5.0x2.0mm^2 z-position of LED center 3.0mm, 2 pins, Rectangular size 5.0x2.0mm^2 z-position of LED center 5.0mm, 2 pins, Rectangular size 5.0x2.0mm^2 z-position of LED center 5.0mm, 2 pins
LED_Rectangular Rectangular Rectangular size 5.0x2.0mm^2 z-position of LED center 1.0mm 2 pins Rectangular size 5.0x2.0mm^2 z-position of LED center 1.0mm 2 pins Rectangular size 5.0x2.0mm^2 z-position of LED center 1.0mm 2 pins Rectangular size 5.0x2.0mm^2 z-position of LED center 3.0mm 2 pins Rectangular size 5.0x2.0mm^2 z-position of LED center 3.0mm 2 pins Rectangular size 5.0x2.0mm^2 z-position of LED center 3.0mm 2 pins Rectangular size 5.0x2.0mm^2 z-position of LED center 5.0mm 2 pins Rectangular size 5.0x2.0mm^2 z-position of LED center 5.0mm 2 pins
0
2
2
LED_THT
LED_Rectangular_W5.0mm_H2.0mm_Horizontal_O6.35mm_Z1.0mm
LED_Rectangular, Rectangular, Rectangular size 5.0x2.0mm^2 z-position of LED center 1.0mm, 2 pins, Rectangular size 5.0x2.0mm^2 z-position of LED center 1.0mm, 2 pins, Rectangular size 5.0x2.0mm^2 z-position of LED center 1.0mm, 2 pins
LED_Rectangular Rectangular Rectangular size 5.0x2.0mm^2 z-position of LED center 1.0mm 2 pins Rectangular size 5.0x2.0mm^2 z-position of LED center 1.0mm 2 pins Rectangular size 5.0x2.0mm^2 z-position of LED center 1.0mm 2 pins
0
2
2
LED_THT
LED_Rectangular_W5.0mm_H2.0mm_Horizontal_O6.35mm_Z3.0mm
LED_Rectangular, Rectangular, Rectangular size 5.0x2.0mm^2 z-position of LED center 1.0mm, 2 pins, Rectangular size 5.0x2.0mm^2 z-position of LED center 1.0mm, 2 pins, Rectangular size 5.0x2.0mm^2 z-position of LED center 1.0mm, 2 pins, Rectangular size 5.0x2.0mm^2 z-position of LED center 3.0mm, 2 pins, Rectangular size 5.0x2.0mm^2 z-position of LED center 3.0mm, 2 pins, Rectangular size 5.0x2.0mm^2 z-position of LED center 3.0mm, 2 pins
LED_Rectangular Rectangular Rectangular size 5.0x2.0mm^2 z-position of LED center 1.0mm 2 pins Rectangular size 5.0x2.0mm^2 z-position of LED center 1.0mm 2 pins Rectangular size 5.0x2.0mm^2 z-position of LED center 1.0mm 2 pins Rectangular size 5.0x2.0mm^2 z-position of LED center 3.0mm 2 pins Rectangular size 5.0x2.0mm^2 z-position of LED center 3.0mm 2 pins Rectangular size 5.0x2.0mm^2 z-position of LED center 3.0mm 2 pins
0
2
2
LED_THT
LED_Rectangular_W5.0mm_H2.0mm_Horizontal_O6.35mm_Z5.0mm
LED_Rectangular, Rectangular, Rectangular size 5.0x2.0mm^2 z-position of LED center 1.0mm, 2 pins, Rectangular size 5.0x2.0mm^2 z-position of LED center 1.0mm, 2 pins, Rectangular size 5.0x2.0mm^2 z-position of LED center 1.0mm, 2 pins, Rectangular size 5.0x2.0mm^2 z-position of LED center 3.0mm, 2 pins, Rectangular size 5.0x2.0mm^2 z-position of LED center 3.0mm, 2 pins, Rectangular size 5.0x2.0mm^2 z-position of LED center 3.0mm, 2 pins, Rectangular size 5.0x2.0mm^2 z-position of LED center 5.0mm, 2 pins, Rectangular size 5.0x2.0mm^2 z-position of LED center 5.0mm, 2 pins, Rectangular size 5.0x2.0mm^2 z-position of LED center 5.0mm, 2 pins
LED_Rectangular Rectangular Rectangular size 5.0x2.0mm^2 z-position of LED center 1.0mm 2 pins Rectangular size 5.0x2.0mm^2 z-position of LED center 1.0mm 2 pins Rectangular size 5.0x2.0mm^2 z-position of LED center 1.0mm 2 pins Rectangular size 5.0x2.0mm^2 z-position of LED center 3.0mm 2 pins Rectangular size 5.0x2.0mm^2 z-position of LED center 3.0mm 2 pins Rectangular size 5.0x2.0mm^2 z-position of LED center 3.0mm 2 pins Rectangular size 5.0x2.0mm^2 z-position of LED center 5.0mm 2 pins Rectangular size 5.0x2.0mm^2 z-position of LED center 5.0mm 2 pins Rectangular size 5.0x2.0mm^2 z-position of LED center 5.0mm 2 pins
0
2
2
LED_THT
LED_Rectangular_W5.0mm_H5.0mm
LED_Rectangular, Rectangular, Rectangular size 5.0x5.0mm^2, 2 pins, http://www.kingbright.com/attachments/file/psearch/000/00/00/L-169XCGDK(Ver.9B).pdf
LED_Rectangular Rectangular Rectangular size 5.0x5.0mm^2 2 pins
0
2
2
LED_THT
LED_Rectangular_W7.62mm_H4.55mm_P5.08mm_R3
Datasheet can be found at https://www.gme.cz/data/attachments/dsh.511-795.1.pdf
LED automotive super flux 7.62mm
0
4
2
LED_THT
LED_SideEmitter_Rectangular_W4.5mm_H1.6mm
LED_SideEmitter_Rectangular, Rectangular, SideEmitter, Rectangular size 4.5x1.6mm^2, 2 pins, http://cdn-reichelt.de/documents/datenblatt/A500/LED15MMGE_LED15MMGN%23KIN.pdf
LED_SideEmitter_Rectangular Rectangular SideEmitter Rectangular size 4.5x1.6mm^2 2 pins
0
2
2
LED_THT
LED_VCCLite_5381H1_6.35x6.35mm
Red 5381 Series LED VCCLite https://vcclite.com/wp-content/uploads/wpallimport/files/files/5381Series.pdf http://static.vcclite.com/pdf/Mounting%20Hole%20Pattern%202.pdf
Red 5381 Series LED
0
2
2
LED_THT
LED_VCCLite_5381H3_6.35x6.35mm
Amber 5381 Series LED VCCLite https://vcclite.com/wp-content/uploads/wpallimport/files/files/5381Series.pdf http://static.vcclite.com/pdf/Mounting%20Hole%20Pattern%202.pdf
Amber 5381 Series LED
0
2
2
LED_THT
LED_VCCLite_5381H5_6.35x6.35mm
Green 5381 Series LED VCCLite https://vcclite.com/wp-content/uploads/wpallimport/files/files/5381Series.pdf http://static.vcclite.com/pdf/Mounting%20Hole%20Pattern%202.pdf
Green 5381 Series LED
0
2
2
LED_THT
LED_VCCLite_5381H7_6.35x6.35mm
Yellow 5381 Series LED VCCLite https://vcclite.com/wp-content/uploads/wpallimport/files/files/5381Series.pdf http://static.vcclite.com/pdf/Mounting%20Hole%20Pattern%202.pdf
Yellow 5381 Series LED
0
2
2

View File

@ -0,0 +1,3 @@
(fp_lib_table
(lib (name LED_THT)(type KiCad)(uri /usr/share/kicad/kicad-footprints/LED_THT.pretty)(options "")(descr ""))
)

View File

@ -0,0 +1,3 @@
(sym_lib_table
(lib (name ch55x)(type Legacy)(uri ${KIPRJMOD}/ch55x.lib)(options "")(descr ""))
)