The Microchip PIC microcontroller range looks really daunting at first, with lots of 8, 16 and 32 bit devices to choose from. This article will look at 8-bit PICs as they are adequate for most purposes and far more suited to beginners.
There are different series of 8-bit PIC microcontrollers- PIC10F, PIC12F, PIC16F and PIC18F, all with different features and price bands. The PIC10F and PIC12F are the cheapest and generally have less memory, smaller pin counts and less peripherals.
Continue reading “Which PIC Microcontroller to Choose?” »
AVRStudio is the development software for AVR microcontrollers supplied by Atmel to allow users to easily develop code for their devices. It includes project management, code editors, assembler and C compilers, simulator and programmer and emulator support. It has been developed over the years and has reached AtmelStudio v7.2 but older versions are available, so which version is the best for you?
Continue reading “AVRStudio Explored” »
Atmel have added the Xmega series to their AVR range and we are seeing more interest in these microcontrollers as time goes by, but who should be looking at using them?
Well for a start, it is not a chip for complete beginners and people wanting to learn microcontrollers from scratch would be better off starting with standard AVR ATmega microcontroller kits or PIC Microcontroller Kits.
Continue reading “Using the AVR Xmega Microcontroller Family” »
First, what is the difference between these terms, UART and USART? UART stands for Universal Asynchronous Receiver and Transmitter, and USART means Universal Synchronous and Asynchronous Receiver and Transmitter. Most microcontrollers today, like PIC and AVR, have USART, but the Synchronous function is not often used as they have other synchronous devices like I2C and SPI. So this post will concentrate on asynchronous transmission, which is the same on both devices.
Continue reading “Using USART or UART on a Microcontroller” »
To carry out In System Programming (ISP) of devices, such as AVR, ST7 and PIC microcontrollers or serial EEPROMs, you need an ISP connector on your PCB that matches the format on the programmer you intend to use, but this isn’t always that simple.
Continue reading “Custom ISP Connectors” »
All microcontroller based applications include the microcontroller code called firmware but it is surprising how many people forget that they may need to update it when their products are scattered at customer locations. This may be because (heaven forbid) that they discover a bug in the system that needs to be corrected or, more commonly, that the product needs new features in response to customer feedback or competitor’s actions. So how do we simplify firmware updates?
Continue reading “Firmware Updates in the Field” »
A common question we get is should I program my microcontroller in C or assembler? This usually means do I bother with assembler or just use C. Sometimes it just means that I do not know the difference. So what is the difference?
Continue reading “Program in C or Assembler?” »
An AVR microcontroller is a type of device manufactured by Atmel, which has particular benefits over other common chips, but first what is a microcontroller?
The easiest way of thinking about it is to compare a microcontroller with your PC, which has a motherboard in it. On that motherboard is a microprocessor (Intel, AMD chips) that provides the intelligence, RAM and EEPROM memories and interfaces to rest of system, like serial ports (mostly USB ports now), disk drives and display interfaces.
A microcontroller has all or most of these features built-in to a single chip, so it doesn’t need a motherboard and many components, LEDs for example, can be connected directly to the AVR. If you tried this with a microprocessor, bang!
Continue reading “What is AVR microcontroller?” »
What is CAN bus? Officially, CAN is a Controller Area Network, which is a network of independent controllers communicating securely. It was first developed by Bosch and Intel in 1990 and has been amended since. The International Standards Organisation (ISO) has further defined CAN using their OSI model.
Continue reading “All About CAN Bus” »
We have been asked about how you can program an application code file and a separate bootloader into an AVR microcontroller using a Kanda programmer. It isn’t possible to program two separate files but it is simple enough to combine them into one file.
Continue reading “Programming AVR Bootloader Code” »