Tuesday, 13 March 2012

Other microcontroller features

Microcontrollers usually accommodate from several to dozens of accepted purpose input/output pins (GPIO). GPIO pins arecomputer application configurable to either an ascribe or an achievement state. When GPIO pins are configured to an ascribe state, they are generally acclimated to apprehend sensors or alien signals. Configured to the achievement state, GPIO pins can drive alien accessories such as LEDs or motors.

Many anchored systems charge to apprehend sensors that aftermath analog signals. This is the purpose of the analog-to-digital advocate (ADC). Since processors are congenital to adapt and action agenda data, i.e. 1s and 0s, they are not able to do annihilation with the analog signals that may be beatific to it by a device. So the analog to agenda advocate is acclimated to catechumen the admission abstracts into a anatomy that the processor can recognize. A beneath accepted affection on some microcontrollers is a digital-to-analog advocate (DAC) that allows the processor to achievement analog signals or voltage levels.

In accession to the converters, abounding anchored microprocessors accommodate a array of timers as well. One of the best accepted types of timers is the Programmable Interval Timer (PIT). A PIT may either calculation bottomward from some amount to zero, or up to the accommodation of the calculation register, overflowing to zero. Once it alcove zero, it sends an arrest to the processor advertence that it has accomplished counting. This is advantageous for accessories such as thermostats, which periodically analysis the temperature about them to see if they charge to about-face the air conditioner on, the boiler on, etc.

A committed Pulse Width Modulation (PWM) block makes it accessible for the CPU to ascendancy ability converters, arresting loads, motors, etc., after application lots of CPU assets in bound timer loops.

Universal Asynchronous Receiver/Transmitter (UART) block makes it accessible to accept and address abstracts over a consecutive band with actual little amount on the CPU. Committed on-chip accouterments additionally generally includes capabilities to acquaint with added accessories (chips) in agenda formats such as I²C and Consecutive Peripheral Interface (SPI).

No comments:

Post a Comment