I want to detect the presence of serial data, but I don't need to read the data. Once detected, several other things happen, which is why I want to use a PICAXE to control this, but first I need to be able to get the PICAXE to detect serial communications.
I was thinking of using an 08 picaxe for this, and putting an RC filter on one of the input pins. As I say - I don't care what the data is, I just need to detect that it is there.
Data is normal COM1 RS232 signals @ 9600 baud, which I think is about 15v on a good day, so I imagine I would also need a potential divider on the serial input too...
See attached image of what I was thinking.
In the filter idea, the 1k resistor and 10uF cap act as a filter so hopefully the PICAXE would see enough of a constant voltage to allow the IF/THEN routines to treat is as though it was a high on that input. As serial data is positive-going pulses anyway, there should be no negative-going pulses, so perhaps I can omit the diode all together?
Thoughts?
I was thinking of using an 08 picaxe for this, and putting an RC filter on one of the input pins. As I say - I don't care what the data is, I just need to detect that it is there.
Data is normal COM1 RS232 signals @ 9600 baud, which I think is about 15v on a good day, so I imagine I would also need a potential divider on the serial input too...
See attached image of what I was thinking.
In the filter idea, the 1k resistor and 10uF cap act as a filter so hopefully the PICAXE would see enough of a constant voltage to allow the IF/THEN routines to treat is as though it was a high on that input. As serial data is positive-going pulses anyway, there should be no negative-going pulses, so perhaps I can omit the diode all together?
Thoughts?
Attachments
-
1.7 KB Views: 54
Last edited: