Email: Password: Remember Me | Create Account (Free)

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
05/30/03 05:09
Read: times


 
#46976 - RE: About Cprogramming the DTMF chip MT8888
Responding to: ???'s previous message
same problem some time ago. at my part the problem was that i was not sending the data to 8880 chip (i think its same as 8888). any way here is the correct sequence of sending data to the chip in C



fit 4 bits of P2 connected to Data lines of chip.


here is the initializing code which initializes the chip. see the data sheet




RS = 1;
RW = 1;
CS = 0;
CS = 1;

P2 = 0;
RS = 1;
RW = 0;
CS = 0;
CS = 1;

CS = 0;
CS = 1;

P2 = P2 + 8;
CS = 0;
CS = 1;

P2 = P2 - 8;
CS = 0;
CS = 1;

RS = 1;
RW = 1;
CS = 0;
CS = 1;




P2 = P2 & 0xF0;
P2 = P2 | 0xFD;
RW = 0;
RS = 1;
CS = 0;
CS = 1;


P2 = P2 & 0xF0;
CS = 0;
CS = 1;


and this function dials the number just pass the digit to dial between 0-9.

void dialDigit(char c)
{

if(c == 0)
c = 10;

P2 = P2 & 0xF0;
P2 = P2 | c;

RS = 0;
RW = 0;
CS = 0;
CS = 1;
}


shahzad

List of 10 messages in thread
TopicAuthorDate
About Cprogramming the DTMF chip MT8888            01/01/70 00:00      
   RE: About Cprogramming the DTMF chip MT8            01/01/70 00:00      
      RE: About Cprogramming the DTMF chip MT8            01/01/70 00:00      
   RE: About Cprogramming the DTMF chip MT8888            01/01/70 00:00      
      RE: About Cprogramming the DTMF chip MT8            01/01/70 00:00      
   RE: About Cprogramming the DTMF chip MT8888            01/01/70 00:00      
      RE: About Cprogramming the DTMF chip MT8888            01/01/70 00:00      
      RE: About Cprogramming the DTMF chip MT8            01/01/70 00:00      
         RE: About Cprogramming the DTMF chip MT8            01/01/70 00:00      
            RE: About Cprogramming the DTMF chip MT8            01/01/70 00:00      

Back to Subject List