Hi friends.. Guide me how to program in "C" to interface a microcontroller with a printer.?? Also explain me the procedure of how actually printing is related to a micro controller.??
Read the data sheet for the microcontroller. It will tell you everything you need to know about the microcontroller. As far as writing the actual device driver, it depends on what OS you're on. If you're on Linux, you can look up subject-matter related to writing Linux Device-Drivers. Without providing any more context, and without telling us what you've tried so far, there is not much we can do to help you.
Please dont close this question, it is perfectly valid, just needs more clarification. As mentioned the programmers reference or data sheet for the microcontroller is useful. the most important is the piece you left out, how is this printer connected? On an 8 bit parallel port? On a network interface for which the microcontroller is also on a network? Or many other possibilities. And the answer lies in the data sheets or protocol definitions for the interfaces a combination of microcontroller documents and printer documents as well as some hopefully open standards in the case of network protocols.
- Read datasheet on microcontroller. Get interface schematics.
- Write your microcontroller port manipulation layer (Write/Read port etc.)
- Read docs on Microcontroller-Printer interface.
- Write lowlevel interface layer.
- Read docs on printer control language
- Write printer manipulation layer
- Read docs on image/text storage format you want to printer.
- Write format decoder.