Miscellaneous › Others › DTMF project in lpc2148 Microcontroller
- This topic has 4 replies, 2 voices, and was last updated 7 years, 11 months ago by Koteswararao u.
-
AuthorPosts
-
December 30, 2016 at 1:03 pm #4593Koteswararao uParticipant
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 #14304Ashutosh BhattParticipantgive more details of your project. circuit diagram, description etc
December 30, 2016 at 4:14 pm #14308Koteswararao uParticipantsir
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 #14318Ashutosh BhattParticipantwhat kind of error u r getting?
you are including lcd.h file. where is that file?
January 4, 2017 at 12:45 pm #14322Koteswararao uParticipantAshutosh 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.
-
AuthorPosts
- You must be logged in to reply to this topic.