Chapter 6: Examples with PIC Integrated Peripherals
* Introduction
* 6.1 Interrupt Mechanism
* 6.2 Internal AD Converter
* 6.3 TMR0 Timer
* 6.4 TMR1 Timer
* 6.5 PWM Module
* 6.6 Hardware UART module (RS-232 Communication)
Introduction
It is commonly said that microcontroller is an “entire computer on a single chip”, which implies that it has more to offer than a single CPU (microprocessor). This additional functionality is actually located in microcontroller’s subsystems, also called the “integrated peripherals”. These (sub)devices basically have two major roles: they expand the possibilities of the MCU making it more versatile, and they take off the burden for some repetitive and “dumber” tasks (mainly communication) from the CPU.
Every microcontroller is supplied with at least a couple of integrated peripherals – commonly, these include timers, interrupt mechanisms and AD converters. More powerful microcontrollers can command a larger number of more diverse peripherals. In this chapter, we will cover some common systems and the ways to utilize them from BASIC programming language. Read the rest of this entry »
Tags: ADC, ADCON, ADRESH, analog, conversion, dummyCh, Execute, INTCON, microcontroller, PORTA, PORTD, TMR, TRISD