Example 7 Liquid Crystal Display

Slides:



Advertisements
Similar presentations
EUT 1040 Lecture 10: Programmable Logic Controllers.
Advertisements

C and Assembler Subroutines: Using the LCD. Outline Basic structure of CW-created C programs for the HC12 How to incorporate assembly code How to use.
9/23/02 Program Flow Chart User Hits Key Setup Key Product Key Product Program Direct Robot Programming Area Perimeters Hopper Position Assembly Area Position.
Example 11 Analog-to-Digital Converter Lecture L5.1.
6/21/20151 One-Wire Bus Digital Thermometer Example.
Coordinate Based Tracking System
(Voice Activated Home Control System). Project Summary Control any IR activated device –Via voice command Learnable –Learn IR Code –Learn Voice Command.
Programming I/O for Embedded System. Page 2 Overview Basis: A DE2 Computer Architecture Parallel I/O 7-Segment Display Basic Manipulating 7-Segment Display.
The Serial Peripheral Interface (SPI) Chapter 8 CML9S12-DP256.
NetBurner MOD 5282 Network Development Kit MCF 5282 Integrated ColdFire 32 bit Microcontoller 2 DB-9 connectors for serial I/O supports: RS-232, RS-485,
Objectives How Microcontroller works
Digilent System Board Capabilities Serial Port (RS-232) Parallel Port 1 Pushbutton Hint: Good for a reset button Connected to a clock input. See Digilent.
COE4OI5 Engineering Design Chapter 2: UP2/UP3 board.
1 4-Integrating Peripherals in Embedded Systems (cont.)
1 4-Integrating Peripherals in Embedded Systems. 2 Introduction Single-purpose processors  Performs specific computation task  Custom single-purpose.
Team Members: Ruichen Zhao Xhoua Lor Jen-Yuan Hsiao John Marion.
The miniDragon+ Board and CodeWarrior Lecture L2.1.
Digilab2 DIO1 Board. Digilab2 – DIO1 Boards 50 MHz clock mclk Prom socket Spartan IIE.
Instrumentation & Control Engg. Section Electrical Engineering Department Ahmedabad , Gujarat.
Franz Duran INTRODUCTION TO A RDUINO PROGRAMMING & INTERFACING Engr. Franz Duran, MEP-ECE RapidSignal Electronics.
Presenter: Chia Siong Goh.  A music synthesizer that uses the 8x8 grid of 64 buttons as its user interface to produce sound and emit light.  3 music.
Parallel Interfacing Chapter 7. Parallel Interfacing Parallel I/O Ports Using Parallel Ports Seven-Segment Displays Keypad Interfacing Liquid Crystal.
Example 11 Analog-to-Digital Converter Lecture L5.1.
Example 12 Pulse-Width Modulation (PWM): Motors and Servos Lecture L8.1.
Saxion University of Applied Sciences Advanced Microcontrollers A practical approach.
Real Time Interrupts Section Real-Time Interrupt (RTI) Most operating systems (OS) require an interrupt every T seconds by the RTI RTI interrupts.
ECE 447 Fall 2009 Lecture 12: TI MSP430 External LCD.
Examples Lecture L2.2. // Example 1a: Turn on every other segment on 7-seg display #include /* common defines and macros */ #include /* derivative.
Password Based Door Lock System using 8051 Microcontroller
Vishwakarma government engineering college Prepare by. Hardik Jolapara( ) LCD Interfacing with ATmega16.
Arduino Board SHUBHAM PANCHAL: What is an Arduino? A microcontroller board + programming IDE Microcontrollers & Robotics.
PORTABLE PROGRAMMABLE MEDICATION REMINDER
ENERGY METER TO INDICATE BILLING IN RUPEES FOR LOAD WISE OR DAY WISE
Project Title PASSWORD BASED CIRCUIT BREAKER CONTROL TO ENSURE ELECTRIC LINE MAN’S SAFETY Under the Guidance of Submitted by.
Vehicle theft location intimation by GSM to the owner
PORTABLE PROGRAMMABLE MEDICATION REMINDER
Medication Reminder using PIC Microcontroller
LCD Interfacing using Atmega 32
4-Integrating Peripherals in Embedded Systems (cont.)
Input/Output Ports and Interfacing
PC CONTROLLED SCROLLING MESSAGE DISPLAY FOR COLLEGE NOTICE BOARD
Example 14 Real-time Interrupts
4-Integrating Peripherals in Embedded Systems
EMBEDDED PASSWORD BASED ACCESS CONTROL SYSTEM USING I2C PROTOCOL
Liquid Crystal Display Arduino
Example 19 Measuring Pulse Widths Using Interrupts
4-Integrating Peripherals in Embedded Systems
ECEN 248 Lab 9: Design of a Traffic Light Controller
Outline : Introduction Project objectives RFID basics and applications
GSM - GPS BASED VEHICLE TRACKING SYSTEM
Example 10 ASCII String to Binary Conversion
Example 5 Pushbutton Switches: S1 and S2
Example 9 Binary to ASCII String Conversion
Example 6 Hex Keypad Lecture L3.2.
Example 15 Interrupt-Driven Controller
DIGITAL NOTICE BOARD Project guide:- Group Members:- Ravinder chahal
Interrupts in C Programs
Camera Component Selection Rationale:
Example 16 Circular Queue

Example 13 The Serial Peripheral Interface (SPI)
Analog-to-Digital Converters
Example 17 SCI Receive Interrupts
Ashley Callaway Pat Doherty Nikeshia Ebron Leo Romanovsky
EE4OI4 Engineering Design
Technical Communication Skills Practicum
8051 Micro Controller.
Example 18 Pulse Train Using Interrupts
The Guitar Chord Learning System
Presentation transcript:

Example 7 Liquid Crystal Display Lecture L4.1

miniDragon+ 2 pushbutton switches LCD Header Serial cable A/D Pot I/O headers Run/Load switch Reset button 7-segment display Power plug Keypad header

LCD on miniDragon+ Board

RS, R/W, and E Signals

Example 7 // Example 7: LCD Display #include <hidef.h> /* common defines and macros */ #include <mc9s12dp256.h> /* derivative information */ #include "main_asm.h" /* interface to the assembly module */ #pragma LINK_INFO DERIVATIVE "mc9s12dp256b" void main(void) { char* q1; char* q2; char* q3; char* q4; q1 = "Programming"; q2 = "Microcontrollers"; q3 = "is"; q4 = "FUN"; PLL_init(); // set system clock frequency to 24 MHz

Example 7 (cont.) lcd_init(); // enable lcd set_lcd_addr(0x04); type_lcd(q1); // write q1 - Programming set_lcd_addr(0x42); type_lcd(q2); // write q2 - Microcontrollers set_lcd_addr(0x1D); type_lcd(q3); // write q3 - is set_lcd_addr(0x5C); type_lcd(q4); // write q4 - FUN for(;;){ } // wait forever }