
The article is addressed to novice developers of electronic equipment and is dedicated to the USB Toolstick debugging tool line from Silicon Laboratories (Silabs) USB, allowing for a quick and painless start in the field of microcontroller learning and programming.
On Habré, a lot of articles appear regularly addressed to novice fans of radio electronics, describing the minimal sequence of actions necessary to familiarize the reader with the mysterious and attractive world of microcontroller programming.
As a few sample examples:
- a recent article referring to the acquisition of the PICKit2 programmer, a prototype board with holes and the design of a clip adapter;
- a post dedicated to programming PICs and implying (often in such cases) soldering of the “lace” programmer to the COM port;
- an article whose author proposes to get by with “little blood” and take the first steps without experimenting with a soldering iron and microchips, but in the virtual environment of the simulation CAD system Proteus VSM .
Skimming through the comments following the topics of this type, I drew attention to the existing genuine interest in similar topics among habrayuzerov, but a catastrophic reluctance, despite this, include a soldering iron. It should be noted that among the developers of "iron" - the purchase of programmers, chips, soldering stations, soldering adapters and the organization of the workplace for the installation and creative process - this is an important and integral component, if you will, electronic romance. However, it is precisely this component that is a kind of entrance barrier for a separate category of “interested” whose interest does not outweigh the amount of effort required for a “quick start”.
Attaching to the direction of the posts described above, I offer you a number of devices that allow you to start the process of learning and programming completely real chips without any serious consequences.
')
Silicon Laboratories offers a whole range of debugging tools for novice developers (for most crystal models).
It should be noted separately that the Silabs microcontrollers have a whole set of distinctive features that favorably distinguish them against the background of “popular” Atmel and PIC. Among them:
- Precision analog blocks (up to 32 ADC channels with a capacity of up to 24 bits and up to 2 DAC channels with a capacity of up to 12 bits)
- Highest performance metrics among 8-bit microcontrollers (up to 100 MIPS)
- Low power consumption (0.3-0.6 mA / MIPS)
- Small dimensions (up to 3x3 mm)
- Flexible and powerful digital I / O unit (up to 64 lines)
You can read more about the advantages of Silabs chips (in particular, with ADC), for example,
here .
So, the least experienced in the field of electronics to neophytes as a means for the fastest start, I hasten to recommend the Silabs Tools Evaluation Kit, which costs $ 14.80, for example, in St. Petersburg Electrosnab.

Externally, the device is very similar to a regular USB flash drive. All you need to work with the device: connect it to a computer and install the drivers and integrated development environment located on the supplied disk.

The device includes two microcontrollers: an auxiliary C8051F321 (chip with integrated usb interface), which performs programming and in-circuit debugging via the USB interface of the second microcontroller - C8051F300, one of the most inexpensive chips from Silabs, which has, nevertheless, sufficient functionality for many standard microcontroller solutions.
In addition, there are 4 LEDs on the board: a PWR LED, indicating the presence of power via USB; RUN / STOP LED, showing the in-circuit debugging process activity; two custom LEDs connected to the C8051F300 microcontroller general purpose digital input / output ports. Actually with them and invited to "play" the novice developer.
I note that Silabs offers a fairly detailed (for the functionality of this device)
manual .

After installing the software, the user can create projects in the environment and directly program the C8051F300 microcontroller on the assembler and C from the environment, as well as implement its in-circuit debugging (stop the program, set breakpoints, examine the state of memory, registers and individual variables and etc.)
In addition, ready-made C source code is available in Application note's on the Silabs website, which can be disassembled to speed up the learning process.
In general, with the help of such a device you can overnight solve a whole range of self-educational tasks and consolidate knowledge in practice:
- study the integrated development environment of Silicon Laboratories
- study typical command set of microprocessors C8051Fxxx with 8051 architecture
- write programs for C8051F300 in assembler and C
- learn how the Crossbar integrated resource switch works
- study the operation of the configuration wizard for automatic initialization of microcontroller peripherals
- understand the configuration of general-purpose digital ports and how to work with them
- learn the interrupt system
- learn how to work and experiment with built-in timers
- deal with pulse-width modulation and implement it on the basis of built-in timers
Custom LEDs (red and green) placed on the board are connected to the digital input / output ports of the C8051F300 microcontroller. From state changes from program code. Thus, by changing the state of the LEDs in the interrupt from the built-in timer, you can make them alternately blink with a specified time period. By implementing pulse-width modulation based on the built-in timer, you can control the intensity of their luminescence. Such experiments are more than enough for a good practical consolidation of knowledge from the above list.
In my organization, undergraduate students from technical universities, sent to us for internship, I often gave out such a device for a week. Usually the results were not long in coming.
However, the functionality of this device becomes insufficient for more advanced tasks. Having studied the length and breadth of the Silabs Tools Evaluation Kit, it's time to switch to the
Silabs Toolstick Base adapter and the Silabs Toolstick Daughter card with your chosen microcontroller. A complete list of debugging devices is
on the manufacturer's website .

The base adapter implements the functions of the USB programmer / in-circuit debugger, and also contains an indication of the power and debugging process.

On the
daughter board of the microcontroller C8051F311 , access to all the outputs of the microcontroller is provided (Full Pin Access zone on the board). This allows you to connect to the chip any additional electrical circuits. (You can, for example, control the electric motor or “snap” the load through the relay, only preferably through a galvanic isolation.) The board has a button connected to one of the microcontroller pins. In addition, there is a potentiometer on the board, which is connected to the input of the analog-digital converter.
With this solution, you can easily and naturally study the entire functionality of the chosen crystal.

Daughter boards for different microcontrollers may vary. For example, the
daughter board of the C8051F321 chip containing the USB interface contains a microUSB connector.

The described debug kit allows you to quickly turn any computer into a laboratory for the study of microcontrollers. Using a usb extension cable will make this process even more comfortable.

I note that Silicon Laboratories is not the only manufacturer of such debugging tools. The above is a picture of a Texas Instruments
EZ430-F2013 debugging device containing a microcontroller of the popular MSP430 family.
Finally, I wish everyone great success in the field of studying and programming new microcontrollers in particular, and designing high-quality electronic equipment in general!