8253

Hi,

sorry if this is off-topic, but reading the datasheet of the 8253, I don't understand the sentence concerning the mode 2 and 3 : "In modes 2 and 3, if a CLK source other than the system clock is used, GATE should be pulsed immediately following /WR of a new count value"

can somebody help me ?

pascal

Reply to
Pascal Garcia
Loading thread data ...

What the datasheet is trying hard to not say is that the counter has a flaw in the design.

When operating in auto reload (rate generator or square wave) modes with an external clock source the internal state of the GATE input may be ambiguous after an update of the terminal count value of the counter.

Why the internal state of the GATE input maybe be wrong under these conditions is a somewhat involved explanation.

The solution suggested by the datasheet will force the internal state of the GATE input to a known state with the side affect of causing the counter to restart and load the new terminal count value on the next external clock pulse.

Getting the 8253 to work correctly with an external clock can be quite a challenge when using modes 2 and 3.

Reply to
Keyser Soze

ElectronDepot website is not affiliated with any of the manufacturers or service providers discussed here. All logos and trade names are the property of their respective owners.