Last Answer : You have to understand that a microcontroller is chip enabled in it with a microprocessor.This microprocessor is the one that is programmed by writing a set of instruction( code) in it.The microcontroller is then able to function as required by the user.