background preloader

Microcontrollers and Microprocessors Boards

Facebook Twitter

Energy Micro - Energy Friendly Microcontrollers and Radios. Portable Fixed-Width Integers in C. By Michael Barr For embedded software developers, the most significant improvements to the C programming language made in the ISO C99 standard update are in the new <stdint.h> header file. Learn the typedef names for the new fixed width integer data types, to make hardware interfacing in C easier. Computer programmers don't always care how wide an integer is when held by the processor. For example, when we write: for (int i=0; i < N; i++) { ... } we generally expect our compiler to generate the most efficient code possible, whether that makes the loop counter an 8-, 16-, 32-, or even 64-bit quantity. So long as it's wide enough to hold the maximum value, in the above case N, we'd like the most efficient use of the processor to be made.

But in many other programming situations, integer size matters. In the process of using memory-mapped I/O, it's common to write code like that in Listing 1. Listing 1. pCounter->max = 5000; will be executed just as efficiently as the more cryptic: Listing 2. Books About Embedded Systems Design. Motor Control Stepper Motor Brushless Motor. Silicon Labs' MCUs and power products offer outstanding mixed-signal capabilities, making them ideal for motor control applications Reference designs, application notes, and software examples are available for all of the popular motor types. These examples demonstrate the advantages of high-performance analog peripherals in motor control applications.

Silicon Labs' motor control reference designs provide complete system solutions for all of the popular small motor types, speeding time to market and reducing development costs. Stepper Motor Applications AN155 provides a complete reference design for unipolar stepper motors using the C8051F300 MCU. The reference design board includes a C8051F300 MCU, four power MOSFETs to drive the stepper motor, a diode clamping circuit, a voltage regulator and a RS232 interface. Unipolar Stepper Motor Drive The software provided in AN155 can also be used to drive bipolar stepper motors with minor modifications. Bipolar Stepper Motor Drive AC Induction Motor. Mixed Signal 8 Bit and 32-bit Microcontrollers. USBXpress. The USBXpress® development kit provides a complete host and device software solution for interfacing CP210x USB to UART bridge and C8051F32x/34x/38x and C8051T62x/T32x USB microcontroller devices to the Universal Serial Bus (USB).

These tools are supported with detailed examples described in application note 169: USBXpress® Programmer's Guide: Silicon Labs Makes USB Easy! No USB protocol or host device driver expertise requiredDevelopment kit includes everything you need to get started: Windows device driversINF driver installation filesHost API — host function library provided in Windows Dynamic Link Library (DLL) formatDevice API — device firmware interface function libraryKeil 8051 tool chain available for download (required to use device firmware library)Library support for Keil, Raisonance, and SDCC build tools Download USBXpress Software Download for Windows XP/Vista/Win7/Win8 (v4.0) Note: USBXpress 4.0 has been updated to make use of WinUSB.

Download for Windows 98SE (v2.42) ARM based.