EngineersGarage

  • Engineers Garage Main Site
  • Visit our active EE Forums
    • EDABoard.com
    • Electro-Tech-Online
  • Projects & Tutorials
    • Circuits
    • Electronic Projects
    • Tutorials
    • Components
  • Digi-Key Store
    • Cables, Wires
    • Connectors, Interconnect
    • Discrete
    • Electromechanical
    • Embedded Computers
    • Enclosures, Hardware, Office
    • Integrated Circuits (ICs)
    • Isolators
    • LED/Optoelectronics
    • Passive
    • Power, Circuit Protection
    • Programmers
    • RF, Wireless
    • Semiconductors
    • Sensors, Transducers
    • Test Products
    • Tools
  • Advertise
You are here: Home / Topics / DTMF project in lpc2148 Microcontroller

DTMF project in lpc2148 Microcontroller

|

Miscellaneous › Others › DTMF project in lpc2148 Microcontroller

  • This topic has 4 replies, 2 voices, and was last updated 9 years, 1 month ago by Koteswararao u.
Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • December 30, 2016 at 1:03 pm #4593
    Koteswararao u
    Participant

    i am developing project on DTMF based in  ARM7(lpc2148) Microcontroller.

    i am getting problem in code.

    plz can any one help me.

    my code is:

    ////////////////////////////////////////////////////////////////

    #include <lpc214x.h>
    #include "lcd.h"
     
    main()
    {
    IODIR1=0x003F0000;
    lcdini();
    cmd(0x01);
    lcdstr("DTMF PROJECT:");
    cmd(0x01);
    while(1)
    {  cmd(0x01);
    if(((IOPIN0&(1<<4))==0) && ((IOPIN0&(1<<5))==0) && ((IOPIN0&(1<<6))==0) && ((IOPIN0&(1<<7))==0))
    {
    lcdstr("NO:0");
    delay(300);
    }
    if(((IOPIN0&(1<<4))==0) && ((IOPIN0&(1<<5))==0) && ((IOPIN0&(1<<6))==0) && ((IOPIN0&(1<<7))==1))
    {
    lcdstr("NO:1");
    delay(300);
    }
    if(((IOPIN0&(1<<4))==0) && ((IOPIN0&(1<<5))==0) && ((IOPIN0&(1<<6))==1) && ((IOPIN0&(1<<7))==0))
    {
    lcdstr("NO:2");
    delay(300);
    }
    if(((IOPIN0&(1<<4))==0) && ((IOPIN0&(1<<5))==0) && ((IOPIN0&(1<<6))==1) && ((IOPIN0&(1<<7))==1))
    {
    lcdstr("NO:3");
    delay(300);
    }
    if(((IOPIN0&(1<<4))==0) && ((IOPIN0&(1<<5))==1) && ((IOPIN0&(1<<6))==0) && ((IOPIN0&(1<<7))==0))
    {
    lcdstr("NO:4");
    delay(300);
    }
    if(((IOPIN0&(1<<4))==0) && ((IOPIN0&(1<<5))==1) && ((IOPIN0&(1<<6))==0) && ((IOPIN0&(1<<7))==1))
    {
    lcdstr("NO:5");
    delay(300);
    }
    if(((IOPIN0&(1<<4))==0) && ((IOPIN0&(1<<5))==1) && ((IOPIN0&(1<<6))==1) && ((IOPIN0&(1<<7))==0))
    {
    lcdstr("NO:6");
    delay(300);
    }
    if(((IOPIN0&(1<<4))==0) && ((IOPIN0&(1<<5))==1) && ((IOPIN0&(1<<6))==1) && ((IOPIN0&(1<<7))==1))
    {
    lcdstr("NO:7");
    delay(300);
    }
    if(((IOPIN0&(1<<4))==1) && ((IOPIN0&(1<<5))==0) && ((IOPIN0&(1<<6))==0) && ((IOPIN0&(1<<7))==0))
    {
    lcdstr("NO:8");
    delay(300);
    }
    if(((IOPIN0&(1<<4))==1) && ((IOPIN0&(1<<5))==1) && ((IOPIN0&(1<<6))==0) && ((IOPIN0&(1<<7))==1))
    {
    lcdstr("NO:9");
    delay(300);
    }
     
      }
    }
     
     
    //////////////////////////////////////////////////////////////////////////////////////////
    December 30, 2016 at 1:57 pm #14304
    Ashutosh Bhatt
    Participant

    give more details of your project. circuit diagram, description etc

    December 30, 2016 at 4:14 pm #14308
    Koteswararao u
    Participant

    sir

    just i need to display on lcd the what i am  pressed on DTMF tone generator .

    for  example i pressed 1 on on DTMF tone generator in want on lcd 1.

    and i am using for channel DTMF module .

    it gives output as

    1 for 0001

    2 for 0010

    ……………………………

    please help me.

    January 3, 2017 at 12:16 pm #14318
    Ashutosh Bhatt
    Participant

    what kind of error u r getting?

    you are including lcd.h file. where is that file?

    January 4, 2017 at 12:45 pm #14322
    Koteswararao u
    Participant

    Ashutosh Bhatt Sir  ,

    i alredy add the lcd.h header file .

    there is problem with lcd .

    lcd working properally but problem wuth logic .

    on lcd nothing show .

    can send example code DTMF module code plz sir.

  • Author
    Posts
Viewing 5 posts - 1 through 5 (of 5 total)
  • You must be logged in to reply to this topic.
Log In

RSS Recent Posts

  • Supply vs performance query February 7, 2026
  • wall transformer polarity February 7, 2026
  • Do i need a buffer? February 7, 2026
  • BPF February 7, 2026
  • Figgie International intercom 1998 era February 7, 2026

Stay Up To Date

Newsletter Signup
EngineersGarage

Copyright © 2026 WTWH Media LLC. All Rights Reserved. The material on this site may not be reproduced, distributed, transmitted, cached or otherwise used, except with the prior written permission of WTWH Media
Privacy Policy | Advertising | About Us

Search Engineers Garage

  • Engineers Garage Main Site
  • Visit our active EE Forums
    • EDABoard.com
    • Electro-Tech-Online
  • Projects & Tutorials
    • Circuits
    • Electronic Projects
    • Tutorials
    • Components
  • Digi-Key Store
    • Cables, Wires
    • Connectors, Interconnect
    • Discrete
    • Electromechanical
    • Embedded Computers
    • Enclosures, Hardware, Office
    • Integrated Circuits (ICs)
    • Isolators
    • LED/Optoelectronics
    • Passive
    • Power, Circuit Protection
    • Programmers
    • RF, Wireless
    • Semiconductors
    • Sensors, Transducers
    • Test Products
    • Tools
  • Advertise