Hi Skimask,
On Page 4-101, the typical control sequence for burst mode applications:
I have wired RSO as portb.7, WR as portb.6 and RD as portb.5.
When I send one of those sequences such as 'Write to transmit data register'
I send %00100111 where I have called RSO -b7(or bit7), WR - b6(or bit6) and RD- b5(or bit5) - portb.5 (b5) is not wired and b3-b0 (bit3 - bit0) is the data.
I hope this makes sense to you.
Thanks, Don
The above sould have said:I have wired RSO as portb.7, WR as portb.6 and RD as portb.5.
- portb.5 (b5) is not wired and b3-b0 (bit3 - bit0) is the data.
I have wired RSO as portb.7, WR as portb.6 and RD as portb.5.
- portb.4 (b4) is not wired and b3-b0 (bit3 - bit0) is the data.
I hope this makes sense to you.
Thanks, Don
Last edited by dbachman; - 15th December 2008 at 15:02.
This is what I have been trying:
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.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
Thanks for taking the time to help,
Don
Last edited by dbachman; - 16th December 2008 at 01:37. Reason: Added more info
Bookmarks