Saturday, May 22, 2010

I need a c code to pulse dial on a pic18f458?

north american standards

I need a c code to pulse dial on a pic18f458?
Well, just off the top of my head: assuming you'll probably be using a transistor (or small relay with snubber) tied to a port configured for output with an appropriate pull-up/-down resistor. This would be used to interrupt the phone line - as I recall this is what the 'pulse' is doing... Then a very simple function that takes the digit to dial as an argument would loop that number of times, hold for n ms (using delay_ms()) with the line held open then delay for the required ms with the line held closed. I don't know what the specification is for line open and period between pulses is, but even if you can't find that info online it wouldn't take very much experimentation at all to get some values that work. If you have too much trouble you should try the piclist group here on Yahoo.


No comments:

Post a Comment