This document contains examples for the implementation of a range of experiments on the PIC 16F877 Microcontroller and the LPC 2148 ARM 7 Processor.
Table of Contents
PIC 16F877 MICROCONTROLLER TRAINER KIT
FAMILIARIZATION OF KIT
Features
Hardware Specification
I2C Based Devices:
MPLAB IDE
Windows Serial Downloader
Windows Win X Talk Serial Output Window
BUZZER CONTROL
RELAY CONTROL
WRITING TO LED ARRAY
READING DIP SWITCH
READING MATRIX KEYPAD
WRITING TO LCD DISPLAY
SERIAL TRANSMIT& RECEIVE
RTC (REAL TIME CLOCK)
8 BIT DAC
TEMPERATURE SENSOR
SERIAL EEPROM
LPC 2148 ARM 7 PROCESSOR TRAINER KIT
FAMILIARIZATION OF TRAINER KIT
Features
Applications
On Board Peripherals
IAR EMBEDDED WORKBENCH
Running IAR Embedded Workbench:
Running Launch LPC 210x –IS down loader:
Running Windows Win X Talk Serial Output Window:
BUZZER CONTROL
RELAY CONTROL
WRITING TO LED ARRAY
READING DIP SWITCH
READING MATRIX KEYPAD
8 BIT A/D CONVERTOR
TEMPERATURE SENSOR
8 BIT D/A CONVERTOR
Target and Research Themes
This technical manual provides a comprehensive guide for experimenting with embedded systems using PIC 16F877 and LPC 2148 ARM 7 microcontrollers, aiming to familiarize users with development environments and hardware interfacing.
- Microcontroller development environments (MPLAB IDE, IAR Embedded Workbench)
- Hardware interfacing for digital peripherals (LEDs, relays, buzzers, switches, keypads)
- Communication and sensor integration (I2C protocols, ADC, DAC, RTC)
- Practical firmware implementation using Embedded C
- System bootloading and serial communication debugging
Excerpt from the Book
FAMILIARIZATION OF KIT
The VPUT-01 is a trainer kit for 8,16 and 32 bit microcontroller development system furnished with under mentioned capabilities and can be used either as a stand alone system or as a system with serial interface to personal computer to further enhance its performance and exploit it for maximum benefit.
Above all CPUs are provided as separate plug-in boards called piggy back boards. For working with any controller, just plug-in the respective piggy back onto the board. The Trainer contains the CPU, I2C based RTC, EEPROM, Stepper motor driver circuit, LCD display, 4x4 matrix keyboard, 8 digital input and 8 digital output. All digital inputs, outputs and key board connections are terminated in individual 16 pin FRC connector. We can communicate VPUT-01 trainer with PC via serial port. VPUT-01 Embedded Trainer is very powerful and economical development system for advanced experimentation and research applications. Depending of the need and applications, we can use VPUT-01 in any one of the microcontrollers. Normally, the main board contains the CPU PIC 16F877.
Summary of Chapters
PIC 16F877 MICROCONTROLLER TRAINER KIT: Provides an overview of the trainer kit's hardware architecture, supported CPUs, and built-in peripheral capabilities.
FAMILIARIZATION OF KIT: Details the primary hardware features, switch configurations, and the setup of the serial port and USB interface.
BUZZER CONTROL: Describes the procedure for interfacing a buzzer to the controller and generating sound outputs using C code.
RELAY CONTROL: Explains how to interface and toggle electromagnetic relays using the microcontroller's GPIO lines.
WRITING TO LED ARRAY: Demonstrates the use of latching logic to control and sequence multiple LEDs on the trainer board.
READING DIP SWITCH: Covers the method for reading input states from DIP switches and reflecting them on LEDs and serial monitors.
READING MATRIX KEYPAD: Outlines the matrix scanning process required to detect key presses on a 4x4 interface.
WRITING TO LCD DISPLAY: Details the initialization and string output sequence for driving character-based LCD displays.
SERIAL TRANSMIT& RECEIVE: Explains the basics of serial communication between the PC and the microcontroller using getc/putc functions.
RTC (REAL TIME CLOCK): Describes how to interface with an I2C-based Real Time Clock module to track and display time.
8 BIT DAC: Focuses on using I2C communication to generate various signal waveforms such as square, triangular, and sine waves.
TEMPERATURE SENSOR: Illustrates how to process analog sensor data (LM35) using an I2C-based ADC and convert it into degrees Celsius.
SERIAL EEPROM: Covers the read/write operations for storing data non-volatilely on an external I2C serial EEPROM.
LPC 2148 ARM 7 PROCESSOR TRAINER KIT: Introduces the high-performance ARM-based development board and its unique features.
Keywords
Microcontroller, Embedded Systems, PIC16F877, LPC2148, I2C, UART, ADC, DAC, Firmware, Embedded C, MPLAB IDE, IAR Embedded Workbench, Peripheral Interfacing, Hardware Debugging, Real Time Clock
Frequently Asked Questions
What is the primary purpose of this book?
The book serves as a practical guide for engineers and students to learn how to interface and program microcontrollers, specifically the PIC 16F877 and LPC 2148 ARM 7, using an embedded development kit.
Which microcontrollers are covered in this manual?
The manual focuses on the PIC 16F877 family of 8-bit microcontrollers and the NXP LPC2148 ARM 7 processor.
What is the main goal of the experiments described?
The main goal is to familiarize the user with basic hardware interfacing and embedded programming, moving from simple GPIO tasks like LED blinking to more complex tasks like I2C communication and ADC signal processing.
Which development software is used for the experiments?
For the PIC-based experiments, MPLAB IDE is used, while for the ARM 7-based experiments, the IAR Embedded Workbench is the primary environment.
Does the manual include source code?
Yes, every experiment provides a complete program example written in Embedded C to demonstrate the implementation of the specified task.
How is the communication established with the PC?
The trainer kits communicate with a PC primarily via a serial port or a USB-to-UART bridge converter, allowing for data monitoring via terminal software like Win X Talk.
How are I2C-based devices handled?
I2C devices (such as RTC, ADC, DAC, and EEPROM) are accessed using specific device addresses for read and write operations, as outlined in the hardware specification tables.
What is the function of the "piggy back" boards?
These boards allow the user to easily swap different microcontroller chips into the main trainer board system, providing a flexible development environment for multiple processor architectures.
How is the temperature measurement performed?
Temperature measurement is achieved by interfacing the LM35 sensor with an A/D converter, reading the analog output, and converting it to temperature data based on the sensor's sensitivity.
- Citation du texte
- Anoop B. K. (Auteur), 2015, PIC LAB Manual. Examples for experiments using Microcontrollers, Munich, GRIN Verlag, https://www.grin.com/document/313312