This is what I have been trying:
Code:
OSCCON = $60 ' Set up internal oscillator
x var byte
dtmf var byte
CS var portb.4 'Enable or disable MT8888
RD var portb.5 'Read Microprocessor input
WR var portb.6 'Write Microprocessor input
RS var portb.7 'Register Select
Send_DTMF:
TRISB = %00000000
pause 100
portb = %10101101 'Send Control Register A
pause 100
portb = %10100000 'Send Control Register B
pause 100
portb = %00100111 'Send digit = 7
pause 100
portb = %00100101 ' Send digit = 5
pause 100
Goto Send_DTMF
I should mention that this part of the code is just trying to get the thing to spit out a DTMF tone. Beyond that I would need to poll the status register.
Thanks for taking the time to help,
Don
Bookmarks