Search code examples
cembeddedmicrocontrollerfirmware8051

"printf" in microcontroller, what is it for?


I see "printf" instruction in sample codes of c language for microcontroller particularly in 8051. Since microcontrollers has no fixed output display what is the use of the "printf" instruction?


Solution

  • More likely than not, so you can attach a debugging console, either through an RS232 port, or as virtual output from an in-circuit emulator.