ARM HOW-TO GUIDE Interfacing Buzzer with LPC2148 ARM

Similar documents
ARM HOW-TO GUIDE Interfacing Switch with LPC2148 ARM

ARM HOW-TO GUIDE Interfacing Relay with LPC2148 ARM

ARM HOW-TO GUIDE Interfacing GLCD with LPC2148 ARM

ARM HOW-TO GUIDE Interfacing Keypad with LPC2148 ARM

ARM HOW-TO GUIDE Interfacing Stepper Motor with LPC2148

ARM HOW-TO GUIDE Interfacing 7SEG with LPC2148 ARM

ARM HOW-TO GUIDE Interfacing GLCD with LPC2148 ARM

ARM HOW-TO GUIDE Interfacing I2C-7SEG with LPC2148 ARM

ARM HOW-TO GUIDE Interfacing GPS with LPC2148 ARM

Texas Instruments Microcontroller HOW-TO GUIDE Interfacing Keypad with MSP430F5529

P89V51RD2 Development Board May 2010

8085 HOW-TO GUIDE Interfacing 8251 with 8085

DEV-1 HamStack Development Board

μrfid User Manual v1.00

LPC2148 DEV BOARD. User Manual.

ENGN3213. Digital Systems & Microprocessors. HLAB 6: ARM Embedded Systems I

ecee NXP LPC 2138 ARM Development Board

Introduction to ARM LPC2148 Microcontroller

Advanced Embedded Systems

Lab 1 Introduction to Microcontroller

LPC1788 Mio Board. The functional details of the board are as follows-

Evaluation board for NXP LPC2103. User Guide. Preliminary Version updated 27 th Aug TechToys Company All Rights Reserved

AN Entering ISP mode from user code. Document information. ARM ISP, bootloader

Goal: We want to build an autonomous vehicle (robot)

LPC1768 Industrial Reference Design Platform System Development Kit Version 1.3. May 2009

NFC NUTSHELL KIT. MCU Modules USER MANUAL REVISION GMMC GmbH Keywords Abstract. Document information

EPM900 - Overview. Features. Technical Data

CoiNel Technology Solutions LLP. LPC2148 ARTIST Instruction Manual LPC2148 ARTIST. Instruction manual. Revision 1

AN10210 Using the Philips 87LPC76x microcontroller as a remote control transmitter

MULTISENSOR SYSTEM USING LPC2148 MICROCONTROLLER

Diploma in Embedded Systems

Nuvoton 4T 8051-based Microcontroller NuTiny-SDK-N78E715 User Manual

LPC2468 Industrial Reference Design Platform System Development Kit Version 1.2. August 2008

The industrial technology is rapidly moving towards ARM based solutions. Keeping this in mind, we are providing a Embedded ARM Training Suite.

Contents. The USB Logic Tool... 2 Programming... 2 Using the USB Logic Tool... 6 USB Logic Tool Features... 7 Device Hardware...

8051 Microcontroller Interrupts

Chapter 4. Enhancing ARM7 architecture by embedding RTOS

acret Ameya Centre for Robotics & Embedded Technology Syllabus for Diploma in Embedded Systems (Total Eight Modules-4 Months -320 Hrs.

LPC1788 Mio Board. User Manual. Revision 1.0 1

CEIBO FE-5111 Development System

Breeze Board. Type A. User Manual.

8051 Basic Development Board. Product Manual. Contents. 1) Overview 2) Features 3) Using the board 4) Troubleshooting and getting help

apr33a1 / apr33a2 / apr33a3 Datasheet

Interrupts, timers and counters

USB Debug Adapter. Power USB DEBUG ADAPTER. Silicon Laboratories. Stop. Run. Figure 1. Hardware Setup using a USB Debug Adapter

Breeze Board. Type B. User Manual.

FiO Lite Datasheet FEATURES SAMPLE APPLICATIONS. FiO Lite

Future Designs, Inc. Your Development Partner LCD DEMO KITS

Cypress PSoC 4 Microcontrollers

MicroBolt. Microcomputer/Controller Featuring the Philips LPC2106 FEATURES

AN Interfacing Philips Bridge IC with Philips microcontroller. Document information

Embedded Technosolutions

Lab Experiment 9: LCD Display

Exclusive 2.5 GHz Frequency Counter

EVALUATION BOARD MANUAL EBSLSN Series. EVALUATION KIT MANUAL EKSLSN Series

QUASAR KIT No DIGITAL DOWN TIMER 99 MIN WITH PIC

Document status: Preliminary

Simple Sounders and Sensors

8051 Intermidiate Development Board. Product Manual. Contents. 1) Overview 2) Features 3) Using the board 4) Troubleshooting and getting help

ANTI THEFT CONTROL SYSTEM OF CAR USING ARM7 Gunaganti Ganesh* 1

1. Pin diagram of 8051 and ports

AN10955 Full-duplex software UART for LPC111x and LPC13xx

Symphony SoundBite Reference Manual

Adafruit Metro Mini. Created by lady ada. Last updated on :12:28 PM UTC

Nuvoton 1T 8051-based Microcontroller NuTiny-SDK-N76E885 User Manual

1.0. Presents. techathon 3.0

Bachelor of Engineering in Computer and Electronic Engineering

VLSI Design Lab., Konkuk Univ. Yong Beom Cho LSI Design Lab

User Manual For CP-JR ARM7 USB-LPC2148 / EXP

THE LPC84X MCU FAMILY A MULTI-TESTER TOOL OFFERING FEATURES FOR YOUR NEXT IOT DESIGN

Basic Input/Output Operations

Modules For Six Months Industrial Training On WIRELESS EMBEDDED SYSTEM DESIGN

RDB1768 Development Board User Manual

联系人黄生 : QQ: General Description The KN02GxxA series are low-cost 32-bit microcontroller with embedded ARM Cortex -M0 core for i

XYLOPHONE KIT ESSENTIAL INFORMATION. Version 2.0 CREATE YOUR OWN ELECTRONIC MUSICAL INTRUMENT WITH THIS

NX-51 V2 plus experiment board Documentation 1. NX-51 V2 plus. P89V51RD2 microcontroller Eexperiment board. Documentation

Display Real Time Clock (RTC) On LCD. Version 1.2. Aug Cytron Technologies Sdn. Bhd.

AN LPC2138 extreme power down application note. Document information. LPC2138, extreme power down

Embedded Technosolutions

An Example of using Keil uvision3 for creating Keil ARM s Project File

Evaluation board for NXP LPC2103 USE GNU ARM UNDER KEIL IDE

apr33a1 / apr33a2 / apr33a3 CPU Serial Mode (C1.0) Datasheet

TLE9869 Eval.Kit V1.0 Users Manual

Development of Intelligent Vehicle Network for safety Applications

Engr 355 Embedded Systems Design. mbed and LPC11U24 Overview. Dr. Curtis Nelson* *Original lecture written by Tim Kyle ARM

This manual provides information for the final user application developer on how to use SPC57S-Discovery microcontroller evaluation board.

IoT Based Occupancy Monitoring Technologies for Energy Efficient Smart Building

AXE033 SERIAL/I2C LCD & CLOCK

Figure 1. Proper Method of Holding the ToolStick. Figure 2. Improper Method of Holding the ToolStick

8 CHANNEL USB RELAY CARD

UM User Manual for LPC54018 IoT Module. Rev November Document information

Note: The Silicon Labs USB Debug Adapter is not included in this kit and is required to reprogram the board.

TWR-KE18F User's Guide

REDACTION BASED ATM MONITORING SYSTEM USING MSP 430

BV511 Hardware Guide ByVac ByVac Revision 1.0

Integrated Circuits Inc. apr H2.2. Datasheet. 40 ~ 80 sec recording voice IC APLUS INTEGRATED CIRCUITS INC.

Basic SigmaDSP Microcontroller Integration

Cypress PSoC 4 Microcontrollers

Intel Galileo gen 2 Board

UM LPC54018 IoT module. Document information. LPC54018, OM40007, Amazon FreeRTOS, AWS, GT1216 LPC54018 IoT module user manual

Transcription:

ARM HOW-TO GUIDE Interfacing Buzzer with LPC2148 ARM

Contents at a Glance ARM7 LPC2148 Primer Board... 3 Buzzer... 3 Interfacing Buzzer... 4 Interfacing Buzzer with LPC2148... 5 Pin Assignment with LPC2148... 5 Circuit Diagram to Interface Buzzer with LPC2148... 6 Source Code... 6 C Program to generate sound in LPC2148 using Buzzer... 7 Testing the Buzzer with LPC2148... 8 General Information... 9

ARM7 LPC2148 Primer Board The ARM7 LPC2148 Primer board is specifically designed to help students to master the required skills in the area of embedded systems. The kit is designed in such way that all the possible features of the microcontroller will be easily used by the students. The kit supports in system programming (ISP) which is done through serial port. NXP s ARM7 (LPC2148), ARM Primer Kit is proposed to smooth the progress of developing and debugging of various designs encompassing of High speed 32-bit Microcontrollers. Buzzer Buzzer is an electrical device, which is similar to a bell that makes a buzzing noise and is used for signaling. Typical uses of buzzers and beepers include alarm devices, timers and confirmation of user input such as a mouse click or keystroke.

Interfacing Buzzer Fig. 1 shows how to interface the Buzzer to microcontroller. A piezoelectric element may be driven by an oscillating electronic circuit or other audio signal source, driven with a piezoelectric audio amplifier. Sounds commonly used to indicate that a button has been pressed are a click, a ring or a beep. When the input port pin from microcontroller is changed, the sound wave is changed in Buzzer. Fig. 1 Interfacing Buzzer to Microcontroller

Interfacing Buzzer with LPC2148 A small piezoelectric buzzer on the ARM2148 Primer Kit, by pulling pin P0.7 low, current will flow through the buzzer and a relatively sharp, single-tone frequency will be heard. The alternative PWM feature of pin P0.7 (the PWM2 signal) can be used to modulate the buzzer to oscillate around different frequencies. Then the volume of the sound will be changed by alternating the pulse width. The buzzer can be disconnected by removing jumper JP1, and this is also the default position for this jumper since the buzzer sound can be quite annoying if always left on. Pin Assignment with LPC2148 Buzzer Buzzer LPC2148 Buzzer Selection LS1 I/P P0.7 JP1 1 2 3 1 2 3 - Enable Buzzer - Disable Buzzer

61 62 XTAL2 XTAL1 VREF VDD1 VDD2 VDD3 VDDA 63 51 43 23 7 2 3 1 2 3 1 2 3 Circuit Diagram to Interface Buzzer with LPC2148 3.3V JP1 BZ 3V3 3V3 U16 R10 3K9 R9 3K9 1 Q1 BC847AL 6 18 25 42 50 59 VSS1 VSS2 VSS3 VSS4 VSS5 VSSA LPC2148 P0.7 31 R11 10E 1 LS1 2 buzzer 12MHz C46 22pf X18 C47 22pf Source Code The Interfacing Buzzer with LPC2148 program is very simple and straight forward. We now want to generate a sound in LPC2148 Primer Board by using a buzzer. The C programs are developed in Keil software.

C Program to generate sound in LPC2148 using Buzzer *************************************************************************************** Title : Program to generate sound using Buzzer *************************************************************************************** #include <LPC214x.h> #include <stdio.h> #define BUZZ 7 void Delay(void); void Wait(void); void main() { PINSEL0 = 0x00; //Configure Port0.7 as GPIO IODIR0 = 3 << BUZZ; //Configure Port0.7 as O/P pin while(1) { IOSET0 = 1 << BUZZ; Delay(); IOCLR0 = 1 << BUZZ; Delay(); } } void Delay() { unsigned int i,j; for(i=0;i<1000;i++) for(j=0;j<700;j++); }

To compile the above C code you need the KEIL software. They must be properly set up and a project with correct settings must be created in order to compile the code. To compile the above code, the C file must be added to the project. In Keil, you want to develop or debug the project without any hardware setup. You must compile the code for generating HEX file. In debugging Mode, you want to check the port output without LPC2148 Primer Board. The Flash Magic software is used to download the hex file into your microcontroller IC LPC2148 through UART0. Testing the Buzzer with LPC2148 Give +3.3V power supply to LPC2148 Primer Board; the Buzzer is connected with LPC2148 Primer Board. When the program is downloading into LPC2148 in Primer Board, the Buzzer output is working that the Buzzer is creating some sound.

If you not getting any sound from Buzzer, then you just check the jumper connections & check the Buzzer is working or not. Otherwise you just check it with debugging mode in Keil. If you want to see more details about debugging just see the videos in below link. How to Create & Debug a Project in Keil. General Information For proper working use the components of exact values as shown in Circuit file. Wherever possible use new components. Solder everything in a clean way. A major problem arises due to improper soldering, solder jumps and loose joints. Use the exact value crystal shown in schematic. More instructions are available in following articles, User Manual of LPC2148 Primer Board. Tutorial of how to create & Debug a project in Keil.

Did you enjoy the read? Pantech solutions creates information packed technical documents like this one every month. And our website is a rich and trusted resource used by a vibrant online community of more than 1,00,000 members from organization of all shapes and sizes.

What do we sell? Our products range from Various Microcontroller development boards, DSP Boards, FPGA/CPLD boards, Communication Kits, Power electronics, Basic electronics, Robotics, Sensors, Electronic components and much more. Our goal is to make finding the parts and information you need easier and affordable so you can create awesome projects and training from Basic to Cutting edge technology.