How does a "pulse dialer" (e.g. IN9151) internally work?
The last page of the datasheet contains a block diagram. It runs on a clock it gets from the oscillator circicuitry, and it uses the clock to run the state machines of the internal blocks. The keyboard matrix block scan for button presses, and when a push is detected, it will generate the correct amount of pulses with timing based on the clock.