
Part of Content :
A microcontroller has on-chip peripherals that dramatically decrease the amount of external components needed in a design. It may have general purpose IO, serial IO,ADC and sometimes even special purpose IO pins that support protocol such as the I2C bus, all built into the chip itself. Typically these peripherals present themselves as IO registers to the CPU – for example, to generate a high signal on an output pin, one usually only requires the CPU to write a “1” to the corresponding IO register bits. One often needs to access individual bits of an IO register. For example, PORT A may be an 8-bit output register, and each bit of the IO register corresponds to a hardware output pin of the PORT. There are several methods of accessing bits in C, with advantages and disadvantages to each approach: Bitwise Operations Plain C is powerful enough to perform any needed bit operations on IO registers (or any other integer objects). (After all, one of the first major tasks for the original C compiler was to rewrite the nascent Unix operating system in C!) Note the following bitwise operation example: Const Qualifier and Strings in Harvard Architecture If you have read-only tables or “variables”, then you should declare them with the “const” modifier. In most cases, the compiler will allocate them in the program memory and not take away precious SRAM space. Some microcontrollers have what is known as the “Harvard Architecture” – the program and data spaces are separate and different instructions are needed to access items in the separate spaces.

Tags : harvard architecture, unix operating system, data spaces, output pin, program memory, plain c, external components, microcontrollers, c language, c compiler, special purpose, adc, general purpose, registers, peripherals
If you see unrelated pdf files with the description or copyrighted material published, please report to us, we'll correct/delete it it as soon as possible.NONE OF THOSE MATERIALS ARE HOSTED IN THIS SERVER NOR UPLOADED BY ME IN SOMEONE'S SERVERS.  Read our DISCLAIMER for more detail.
We are neither affiliated with authors and brands nor responsible for its content and change of content.
Information contained herein is provided "as is" without warranty of any kind, either expressed or implied, including any warranty of merchantability or fitness for a particular purpose. In no event shall ANYONE be held liable for any loss of profit, special, incidental, consequential, or other similar claims.
May 8th, 2009 at 9:29 pm
I need small and mini projects based on microcontroler.
means semester projects
which we can use in daily life