-
Datei
CH552.H
/*-------------------------------------------------------------------------- CH552.H Header file for CH552 microcontrollers. **************************************** ** Copyright (C) W.ch 1999-2016 ** ** Web: http://wch.cn ** **************************************** -------------
in „uC für 0,20€ CH552 / CH554 von WCH Billig Micro mit USB Funktion, Chip vorstellung“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
ch552.pas
//************************************************************************ // ch552.pas //************************************************************************ Unit ch552; Interface {$IDATA } type sfr = Byte; // keil sfr types sfr16 = Record case byte of 0: (w:Word); 1: (l,h: Byte
in „Turbo51 und CH55x“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
ch552_new.h
/*************************************** CH552_new.h ****************************************/ #ifndef _CH552_NEW #define _CH552_NEW #ifdef __C51__ #include "ch552_keil.h" #define __bit bit // map the SDCC specific #define __data data #define __idata idata #define __pdata pdata #define __xdata xdata #define __code code #else #include "ch552_SDCC.h" #define bit __bit // map the keil specific #define data __data #define idata __idata #define pdata __pdata #define xdata __xdata #define code __code #endif #endif
in „uC für 0,20€ CH552 / CH554 von WCH Billig Micro mit USB Funktion, Chip vorstellung“ · Mikrocontroller und Digitale Elektronik ·
-
Bild
Schaltplan mit CH552G Mikrocontroller
5V 3V boot /T speed JP2 JP4 JP3 JP5 U3 CH552G P3.2/TXD1/INT0/VBUS1/AIN3 1 P3.4/PWM2/TO/RXD1/JP3.4 10 P3.6/UDP/P3.6 12 P3.7/SK/TXD1/AIN5 4 P3.0/PWM0_TXD 9 P3.1/PWM2_INT/CAP2/TXD 8 P1.7/SK/TXD1/AIN5 5 P1.6/MIS0/PWM1/TIN3/UCC2/AIN2 6 P1.4/T2/CAP1
in „uC für 0,20€ CH552 / CH554 von WCH Billig Micro mit USB Funktion, Chip vorstellung“ · Mikrocontroller und Digitale Elektronik · · Schaltpläne
-
Datei
ch552_SDCC.h
-------------------------------------*/ #ifndef __CH552_H__ #define __CH552_H__ /*----- SFR --------------------------------------------------------------*/ /* sbit are bit addressable, others are byte addressable */ /* System Registers */ __sfr __at (0xD0
in „uC für 0,20€ CH552 / CH554 von WCH Billig Micro mit USB Funktion, Chip vorstellung“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
ch552_keil.h
still the same --------------------------------------------------------------------------*/ #ifndef __CH552_H__ #define __CH552_H__ /*----- SFR --------------------------------------------------------------*/ /* sbit are bit addressable, others are byte addressable */ /* System Registers */ sfr PSW = 0xD0
in „uC für 0,20€ CH552 / CH554 von WCH Billig Micro mit USB Funktion, Chip vorstellung“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
ch552_keil.h
still the same --------------------------------------------------------------------------*/ #ifndef __CH552_H__ #define __CH552_H__ /*----- SFR --------------------------------------------------------------*/ /* sbit are bit addressable, others are byte addressable */ /* System Registers */ sfr PSW = 0xD0
in „uC für 0,20€ CH552 / CH554 von WCH Billig Micro mit USB Funktion, Chip vorstellung“ · Mikrocontroller und Digitale Elektronik ·
-
Bild
Ausschnitt eines Internetforums mit technischen Fragen
How write to CH552 data flash Bert V. 4 16.06.2024 01:31 I would like so me help writing to CH552 data flash. I am able to write and read to/from standard flash memory but when I try to write to 0xC000 to 0xC0FF the CH552 reboots continuously. I tried just reading from 0xC000-0xC0FF without writing a... rs232 Übertragug 29 15.06.2024 12:29
in „Markierung von embdev Threads“ · www.mikrocontroller.net · · Screenshots
-
Bild
Buchseite über CH552 Bootloader Schwachstellen
Microcontroller Exploits (Early Access), © 2024 by Travis Goodspeed A More Bootloader Vulns A.4 CH552 Verify Command The CH552 is a cheap 8051 microcontroller... command 0xA6... A5 F6 7F 23 1D C1 D3 43.
in „uC für 0,20€ CH552 / CH554 von WCH Billig Micro mit USB Funktion, Chip vorstellung“ · Mikrocontroller und Digitale Elektronik · · Screenshots
-
Datei
flash.c
the bootloader can not be overwritten by IAP which leaves a address range of 0x0000 to 0x37FF on a CH552 device for code - Reading of flash data is done by normal MOVC operation see the CBYTE macro. */ // ********************************************************************** #include <ch552.h> // the
in „uC für 0,20€ CH552 / CH554 von WCH Billig Micro mit USB Funktion, Chip vorstellung“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
flash.c
be setup. */ // ********************************************************************** #include <ch552.h> //the original file from WCH #include <stdint.h> // attention the following 3 macros are specific to Keil // you may need to modify them for other compilers #define CBYTE ((unsigned char volatile
in „uC für 0,20€ CH552 / CH554 von WCH Billig Micro mit USB Funktion, Chip vorstellung“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
isd_ch55x.h
that flashing will always start at even addresses this would simplify the flashroutine */ #include "ch552_keil.h" // <<< Use Configuration Wizard in Context Menu >>> // <h> ISD51 cfg params for WCH CH55x controllers // <o> RAMSIZE <0-0x100> // <i> all ch55x devices have 256 bytes IDATA #define RAMSIZE
in „uC für 0,20€ CH552 / CH554 von WCH Billig Micro mit USB Funktion, Chip vorstellung“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
compound.txt
bcdDevice : 0x0108 iManufacturer : 0x01 (String Descriptor 1) Language 0x0409 : "www.github.com/usbman1/CH552_usbASP" iProduct : 0x02 (String Descriptor 2) Language 0x0409 : "USBasp" iSerialNumber : 0x03 (String Descriptor 3) Language 0x0409 : "91AD7B4843" bNumConfigurations : 0x01 (1 Configuration) Data (
in „uC für 0,20€ CH552 / CH554 von WCH Billig Micro mit USB Funktion, Chip vorstellung“ · Mikrocontroller und Digitale Elektronik ·
-
Bild
Schaltplan eines Mikrocontroller-Boards
U1 CH552E P1.4/T2/CAP1/SCS/TIN2/UCC1/AIN1 P1.5/MOSI/PWM1/TIN3/UCC2/AIN2 P1.6/MISO/RXD1/TIN4 P1.7/SCK/TXD1/TIN5 RST/T2EX/CAP2 10 V33 9 VCC/VDD 8 GND/VSS 7 P3.7/UDM 6 P3.6/UDP +3V3 +5V +5V +5V +3V3 +3V3 C1 10u
in „[S] Low-Pin Count MC mit USB-HID“ · Mikrocontroller und Digitale Elektronik · · Schaltpläne
-
PDF
wchasp_v3_sch.pdf
- speed - 2 D 3 D 4 D ESP1010 J 1 2 H J 1 2 H J 1 2 H SW1 C P P P 0 7 5V 1 2 3V 1 k R6 S1 R 4 U2 CH552G X1 F1 3V3 16 V3.3 P3.2/TXD1_/INT0/VBUS1/AIN31 RST_O 220 CST35605S USB-AGF VCC 15 VCC P1.4/T2_/CAP1_/SCS/TIN2/UCC1/AIN1 1 500mA 14 3 MOSI_O R4 GND V+ 2 13 GND P1.5/MOSI/PWM1/TIN3/UCC2/AIN24 MISO_I
in „usbasp-clone“ · Projekte & Code ·
-
Datei
memdump.asm
; ; Memory Dump ; CPU 8052 INCLUDE ch552 Stack EQU 060h ;hier beginnt der Stack (32 Bytes (bis 7Fh)) ORG INT_NO_RST ;Reset-Einsprung LJMP Coldstart ORG 0080h ;Programmbeginn ab hier... Coldstart: MOV SP,#Stack ;Stack initialisieren CLR A
in „uC für 0,20€ CH552 / CH554 von WCH Billig Micro mit USB Funktion, Chip vorstellung“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
tpi.c
/* * tpi.c - part of USBasp * * Autor..........: usbman (for ch552) * Description....: Provides functions for timing/waiting * Licence........: GNU GPL v2 * Creation Date..: 2005-02-23 * Last change....: 2024-12-13 */ #include "..\inc\global.h" #if (USE_TPI) #include
in „uC für 0,20€ CH552 / CH554 von WCH Billig Micro mit USB Funktion, Chip vorstellung“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
v1_tools.c
main(void) { int address,id; //unsigned char chipid,snsum; if (SearchDevice()==0) fprintf(stderr,"CH552 V1 Toolbox\n"); id =CH375OpenDevice(-1); if(id==-1) { fprintf(stderr,"no device found!\n"); return -1; } if (UsbCheckLoaderVer_V1(id)==0x11) { fprintf(stderr,"... Bootloader V1.1 found.\n"); if (PrepareIapEntry
in „uC für 0,20€ CH552 / CH554 von WCH Billig Micro mit USB Funktion, Chip vorstellung“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
global.h
/* * globsl.h - part of USBasp * * Autor..........: usbman (for ch552) * Description....: some wrapper macros * Licence........: GNU GPL v2 (see Readme.txt) * Creation Date..: 2005-02-23 * Last change....: 2024-12-13 */ #ifndef __global_h__ #include "ch554.h" //#ifdef
in „Raisonance vergibt nun RIDE + RKIT-51 Lizenzen kostenlos“ · Mikrocontroller und Digitale Elektronik ·
-
PDF
wkhtmltopdf.pdf
dein PDF-Viewer auf solche Papier-Größen reagiert. Im Anhang ein Export von Beitrag "uC für 0,20€ CH552 / CH554 von WCH Billig Micro mit USB Funktion, Chip vorstellung" als PDF (kein besonderer Grund warum dieser Thread, war einfach der Erste auf der Startseite mit dreistelliger Post-Anzahl) Erstellt
-
PDF
wkhtmltopdf2.pdf
dein PDF-Viewer auf solche Papier-Größen reagiert. Im Anhang ein Export von Beitrag "uC für 0,20€ CH552 / CH554 von WCH Billig Micro mit USB Funktion, Chip vorstellung" als PDF (kein besonderer Grund warum dieser Thread, war einfach der Erste auf der Startseite mit dreistelliger Post-Anzahl) Erstellt
-
Datei
bootloader.c
/** bootloader code in c for the ch552 device this is basically the same code as bootloader.a51 at if you link it to 0x3800 and set BOOTLOADER 1. The order of the functions however is changed and there is a change in the XDATA memory layout
in „uC für 0,20€ CH552 / CH554 von WCH Billig Micro mit USB Funktion, Chip vorstellung“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
bootloader.c
/** bootloader code in c for the ch552 device this is basically the same code as bootloader.a51 at if you link it to 0x3800 and set BOOTLOADER 1. The order of the functions however is changed and there is a change in the XDATA memory layout
in „uC für 0,20€ CH552 / CH554 von WCH Billig Micro mit USB Funktion, Chip vorstellung“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
compare.c
startet by SW1 or HW */ #include <absacc.h> // CBYTE[] #include <intrins.h> // _nop() #include "..\inc\ch552_keil.h" // sfr typedef unsigned short uint16_t; // Keil does not have these typedef unsigned char uint8_t; // from Aarons board #define LED1 TXD #define LED3 RXD #define SW1 INT0 #define CALL(addr)
in „uC für 0,20€ CH552 / CH554 von WCH Billig Micro mit USB Funktion, Chip vorstellung“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
bootloaderV1.a51
*********************************** ; This is the disasembled source for V1.1 bootloader found in CH552 devices. ; When setting StartAddress to 3800h and leaving all other options at 0 it ; produce exactly the same binary as stored in CH552 devices. ; However there are several options to make the code
in „uC für 0,20€ CH552 / CH554 von WCH Billig Micro mit USB Funktion, Chip vorstellung“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
compare.c
CH551 .. CH554 */ #include <absacc.h> // CBYTE[] #include <intrins.h> // _nop() #include "..\inc\ch552_keil.h" // sfr typedef unsigned short uint16_t; // Keil does not have these typedef unsigned char uint8_t; // from Aarons board #define LED1 TXD #define LED3 RXD #define SW1 INT0 #define CALL(addr)
in „uC für 0,20€ CH552 / CH554 von WCH Billig Micro mit USB Funktion, Chip vorstellung“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
main.c
// main.c from CH552oneClickCompiler // RR20210807 002 change flash rate and pins // 003 CHANGE NUMBERING TO 10-17 & 30-35 typedef unsigned char *PUINT8; typedef unsigned char __xdata *PUINT8X; typedef const unsigned char
in „uC für 0,20€ CH552 / CH554 von WCH Billig Micro mit USB Funktion, Chip vorstellung“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
bootloaderV25.a51
and leaving all other options at 0 it ; produce exactly the same binary as stored in CH554 or newer CH552 devices. ;**************************************************************************** $include (..\inc\ch552_keil.h) ; <<< Use Configuration Wizard in Context Menu >>> ; <h> Configuration for WCH
in „uC für 0,20€ CH552 / CH554 von WCH Billig Micro mit USB Funktion, Chip vorstellung“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
bootloaderV2.a51
and leaving all other options at 0 it ; produce exactly the same binary as stored in CH554 or newer CH552 devices. ; However there are several options to make the code more compact so one ; can add extra functionality to the loader. Each option can be used without ; interfearing other options. ; At max
in „uC für 0,20€ CH552 / CH554 von WCH Billig Micro mit USB Funktion, Chip vorstellung“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
bootloaderV24.asm
and leaving all other options at 0 it ; produce exactly the same binary as stored in CH554 or newer CH552 devices. ; The source can be configured to produce the original v2.31 release by setting ; CreateV240 to zero ;**************************************************************************** $include (..\inc\ch552_keil.h) ; <<< Use Configuration Wizard in Context Menu >>> ; <h> Configuration for WCH V2.31 Bootloader ; <o> StartAddress <0-0x3800:0x800> ; <i> Startaddress for bootloader should be on a 0x800 boundary
in „uC für 0,20€ CH552 / CH554 von WCH Billig Micro mit USB Funktion, Chip vorstellung“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
bootloader.a51
; overlay area $nomod51 $include (ch552_keil.h) dseg at 0x08 ;these is overlay data RAM_08: ds 1 RAM_09: ds 1 RAM_0A: ds 1 RAM_0B: ds 1 RAM_0C: ds 1 ; ptr memcpy source RAM_0D: ds 1 RAM_0E: ds 1 RAM_0F: ds 1 ; memcpy size RAM_10: ds 1 RAM
in „uC für 0,20€ CH552 / CH554 von WCH Billig Micro mit USB Funktion, Chip vorstellung“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
bootloaderV1.a51
$nomod51 $include (ch552_keil.h) dseg at 0x18 RAM_18: ds 1 ds 1 RAM_1A: ds 1 ; cseg at BOOT_LOAD_ADDR ; bootloader start ljmp C_C51STARTUP nop ; =============== S U B R O U T I N E ======================================= Functiondispatcher
in „uC für 0,20€ CH552 / CH554 von WCH Billig Micro mit USB Funktion, Chip vorstellung“ · Mikrocontroller und Digitale Elektronik ·
-
Datei
dump.txt
for (i = 0; i < ((ROM_CFG_ADDR - BOOT_LOAD_ADDR + 2) / 16); i++) { PrintLine(addr); addr += 16; } } CH552 with BT_2.3.1 c:3800 02 3F C7 00 E5 75 64 5A 60 02 80 FE E4 90 00 51 c:3810 F0 75 2B 06 79 FE E5 2D 24 5F B4 0B 00 40 03 02 c:3820 3B 6E 90 38 30 75 F0 03 A4 C5 83 25 F0 C5 83 73 c:3830 02 38 51 02
in „uC für 0,20€ CH552 / CH554 von WCH Billig Micro mit USB Funktion, Chip vorstellung“ · Mikrocontroller und Digitale Elektronik ·