dtmf 8870 to bs2 tone decoder
electromanj
Posts: 270
Hello everyone!
I am trying to interface a cm8870 DTMF decoder to a BS2. I am still waiting for the·cm8870 chip so this is mainly a software question...
I would like to receive DTMF tones with a cm8870 decoder and then·output·the 4 digit code·to the bs2 then make an output·decision from the stamp depending on the·dtmf code that was·received by the cm8870.
Example: The cm8870 receives a touchtone sequence of 1111, the cm8870 outputs binary 0001,0001,0001,0001 to the stamp. The stamp takes that information and then makes the decision that 0001,0001,0001,0001 results in an output of pin 15 switching from low to high energizing a transistor driven relay to turn on a lightbulb.
I have no experiance with this kind of circuit or programing. I will attach schematics and code of the basic idea that I have in mind. I know that the code I am posting is ridicules and dumber than dumb, but that's where I am right now. I am really interested in learning about how you take a four bit (string)? and use that as an input to the bs2 and produce an output.
I am trying to interface a cm8870 DTMF decoder to a BS2. I am still waiting for the·cm8870 chip so this is mainly a software question...
I would like to receive DTMF tones with a cm8870 decoder and then·output·the 4 digit code·to the bs2 then make an output·decision from the stamp depending on the·dtmf code that was·received by the cm8870.
Example: The cm8870 receives a touchtone sequence of 1111, the cm8870 outputs binary 0001,0001,0001,0001 to the stamp. The stamp takes that information and then makes the decision that 0001,0001,0001,0001 results in an output of pin 15 switching from low to high energizing a transistor driven relay to turn on a lightbulb.
I have no experiance with this kind of circuit or programing. I will attach schematics and code of the basic idea that I have in mind. I know that the code I am posting is ridicules and dumber than dumb, but that's where I am right now. I am really interested in learning about how you take a four bit (string)? and use that as an input to the bs2 and produce an output.
Comments
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
- Stephen
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
- Stephen
Post Edited (Mikerocontroller) : 3/20/2010 6:34:21 AM GMT
I made a mistake in my learning process and just jumped around from project to project finding pieces of syntax as I went.
me var byte
IF·me = Attention deficit disorder·THEN·GOSUB learn_high_low
learn_high_low:·GOSUB learn_LCD_control
learn_LCD_control:·GOSUB learn RCTIME
Now I'm kinda lost and am lacking some of the most basic instructions that I'm sure will make the most complicated projects more simple.
Thanks for all the help!
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
- Stephen