.: EMICROS :.  Embedded Micro Software
Home CAN232 CANUSB I2C232 I2CUSB CanWiser Learn C
Add your text here
Contact

Email : info@emicros.com

Ordering Information

.: Ordering using our PayPal powered shopping cart (PayPal account not required).

CAN232 : $79
CANUSB : $89
I2C232 : $79

I2CUSB : $89

Click here to View Cart and check out.

 

 

 

 

Microcontroller Programming

Microcontroller programming comes in 2 basic flavors. The first way is to use the native assembly language specific to the particular microcontroller you are using. Programming in assembly language is usually slow and complicated but can result in efficient and compact code. There is an art to assembly language programming and doesn't allow for using the same code on different microcontrollers.

The second and preferred way is to use a high-level language. C is the most common and is the focus of this guide.

 

Microcontroller C

Microcontrollers have evolved and expanded into rather complex and large devices. Complex with respect to integrating more and more features on chip, and large in the amount of memory available for program storage. Embedded system designers were (and are) faced with designing systems that are feature rich while minimizing time to market. Migrating away from assembly language to a high-level language was needed.

Assembly language programming is the lowest level approach to programming microcontrollers. Each microcontroller contains a set of instructions available to the software engineer to design and implement programs to meet certain requirements. Assembly language programming has both good and bad features.

Programs written in assembly language can be small and fast. Talented software engineers can take advantage of internal microcontroller resources to optimize memory utilization and fine tune processor throughput. Many embedded systems in the past, constrained by cost, have required microcontrollers with less than adequate memory space. This takes both time and relies on the software engineers level of expertise.

Tightly coupled programs can be tremendously difficult to debug when a defect is present in the software. Not to mention, maintenance of the software or changing the software can be a nightmare if the original author of the software decides to leave.

 

Which 'C' to Use?

There are numerous C Compilers available for the Microchip PIC family. This guide uses the Freeware version from Hi-Tech. Each project shows the software that goes with it. We've taken this route so you can learn C and get your projects up and running fast. Where to get this is explained in a later section.

 

 
 
Copyright 2010 Embedded Micro Software. All rights reserved