Continue to Site

Welcome to our site!

Electro Tech is an online community (with over 170,000 members) who enjoy talking about and building electronic circuits, projects and gadgets. To participate you need to register. Registration is free. Click here to register now.

  • Welcome to our site! Electro Tech is an online community (with over 170,000 members) who enjoy talking about and building electronic circuits, projects and gadgets. To participate you need to register. Registration is free. Click here to register now.

DTMF dialing MT8880 interface with PIC16F877A programming problem...

Status
Not open for further replies.

lazyhut

New Member
Hi, I'm currently doing a project using PIC16f877a interfacing with MT8880CE to produce a DTMF signal and make a dial out through telephone line. I've tried so many times but it still doesnt generate any DTMF tone. Is it because of my coding? I did follow the datasheet of MT8880 but it still doesnt work. Please HELP!!!

Circuit connection from PIC to MT8880:
RB0 = D0
RB1 = D1
RB2 = D2
RB3 = D3
RB4 = Read/Write
RB5 = RS0
RB6 = CS

Here's my coding in C language:

Code:
void main() {
TRISB = 0;

while(1){
portb = 0x2d;         //Write to Control Register A
    delay_ms(250);

portb = 0x20;         //Write to Control Register B(burst mode)
    delay_ms(250);

portb = 0x0a ;         //Write to Transmit Data Register(digit 0)
    delay_ms(250);

portb = 0x30 ;         //Read the Status Register
    delay_ms(250);

portb = 0x01 ;         //Write to Transmit Data Register(digit 1)
    delay_ms(250);

portb = 0x30 ;         //Read the Status Register
    delay_ms(250);

portb = 0x06 ;         //Write to Transmit Data Register(digit 6)
    delay_ms(250);

         }

}
 
Status
Not open for further replies.

New Articles From Microcontroller Tips

Back
Top