1 pulse per second
Hi,
Windows needs a driver to directly play with ports and I would assume Linux do to (I've never done Linux before), otherwise your question is trivial.
In this case the idea is to use the stock driver and as such do a "proper" serial communication.
For example, you could set the port at 110 baud, 8 data, no parity and 2 stop bits (equating to a total of 11 bits per sent byte) and send continuous (it's important to not let the line idle) stream of zeroes .
In this case you should get "exactly" 10 pulses / second, which you might divide externally if needed.
Another example would be to let the line idle and send a break (comprised of at least 12 bits of zero, but the hardware takes care of that) with your desired frequency (once a second).
Note that in the first example the port's clock is used (might not be derived from the CPU clock), while in the second you can either use the RTC or the CPU's clock.
(This is relevant in case this is related to your previous post of synchronizing PCs.)
Arthur