OutputCapture vs OutputCaptureEx
Posted: 09 January 2009, 9:51 AM
In one of the other threads here we discussed using OutputCapture(). I was looking at the descriptions of the two related functions. One of the differences between OutputCapture() and OutputCaptureEx() is being able to specify the output pin.
But then in the description of OutputCaptureEx() it gives a table showing valid pins for the different ZX versions. Later in the description it discusses the use of a general I/O pin as the output pin.
I presume that the specified pins in the table applies to the default pin used by OutputCapture(), and any valid pin can be used for OutputCaptureEx() . If so, it might be clearer to move that table to the OutputCapture() description.
Is it possible to use Zero as the pin for OutputCaptureEx(), and that way no pin is actually affected, but the timing is preserved?
-Tony
But then in the description of OutputCaptureEx() it gives a table showing valid pins for the different ZX versions. Later in the description it discusses the use of a general I/O pin as the output pin.
I presume that the specified pins in the table applies to the default pin used by OutputCapture(), and any valid pin can be used for OutputCaptureEx() . If so, it might be clearer to move that table to the OutputCapture() description.
Is it possible to use Zero as the pin for OutputCaptureEx(), and that way no pin is actually affected, but the timing is preserved?
-Tony