I do this as a well tested habit even with far more complex processors as well as other attribute matrices outside software such as linguistic sets.Ĥ. When writing assembler cognisant of these issues one can improve efficiency and reduce risk/debug issues too by drawing up a matrix of variables such as to ensure variable types and their locations treated most optimally.ģ.
That variable is bound to (main) memory (ie not the internal register set or efficiently accessed 128 bytes) eg 64k space so the compiler defaults to treating it and all like it with full 16 bit addressing.Ģ. Posted in Microcontrollers Tagged CH552, CH554, programming, usb Post navigationġ. Check out the videos below, because this is the best tutorial yet on programming and using some very interesting chips that just appeared on the market. If you don’t feel like soldering up one of these yourself, there are some suppliers of CH554 dev boards, and the files for ’s projects are available here. To demo this, programmed a CH552 board (DE, here’s the Google translatrix) loaded up with touch pads and LEDs to become a USB keyboard. That means no expensive or weird programmers, yes, but it also means the CH552 can emulate a USB HID device. One of the big features of the CH552 is USB. Uploading is done with the WCHISPTool software, with options available for your favorite flavor of *nix.īut it gets better. This is a fairly standard 8051 core, so writing the code is relatively easy. This was just a bit of perf board, a resistor, a few caps, and a USB A plug. To program these chips, first had to wire up the microcontroller into a circuit. Clearly, we’re looking at something really cool if someone writes an Arduino wrapper for it.
Unlike so many other chips out there, you can find SDKs and toolchains. The CH552, and its friends the small CH551 all the way up to the CH559, contain an 8051 core, somewhere around 16 kB of flash, the high-end chips have a USB controller, there’s SPI, PWM, I2C, and it costs pennies. It blinks LEDs, it writes to an I2C display, and it does everything you would want from a microcontroller that costs a few dimes. Like a generous god, has got your back with a working example of programming this cheap chip, and doing something useful with it. If there’s no original projects using this chip, no one is going to use this chip.
Surprisingly, there aren’t many people picking up this cheap chip for their next project. These aren’t rumors: you can buy the CH552 microcontroller right now.
It will establish a libusb-win32 driver that works just fine in Windows 10.īefore installing drivers, be sure to upload firmware first, then connect the USB cable to the adapter and PC.There are rumors of a cheap chip that does USB natively, has an Open Source toolchain, and costs a quarter. All you need is to download a USB installation tool – Zadig. Luckily there is a great workaround to make it work.
Setting up a USBasp adapter in Windows 10 system may be a bit trickier because the included Windows drivers will not work – they even will not install. Keep in mind that USBasp will only work with chips up to date. If you want to program the chips that were manufactured later, you will probably fail. To make this adapter work, you need to program Atmega8 with the latest firmware, which can be downloaded from page ( (519 kB)).