Thanks but my question is I/O to Processor and Processor to I/O. nope DMA
I'm not sure I fully/properly understand your question.
But if you were designing a computer system from scratch.
Then consider the keyboard.
Which only generates a few characters/bytes per second.
So how that would work, is that the cpu would just carry on, processing software and stuff. Ignoring the keyboard.
When someone presses a key. The keyboard accepts the pressed character. "Interrupts" the cpu (via an interrupt request signal).
The cpu now in a fraction of a microsecond (potentially), reads what the user entered character was. Then puts it into the keyboard buffer and/or processes the keystroke straight away.
Alternatively there can be a regular timing signal (timer interrupt), at say 38 times per second. The cpu during this timer interrupt. Can check to see if the keyboard has sent another character and/or the mouse has moved/changed. Process that information (perhaps into buffers), then end the interrupt and carry on with whatever it was doing, before the interrupt.
As mentioned by another poster in this thread. DMA can be used, to transfer multi bytes of information, between I/O and the cpus memory areas. With little/no cpu processing overhead.
E.g. Hard disk drive transfers.