It depends in the type of Microcontroller, for example:
– With PIC16F84 serial communications
– With PIC 18F4550 serial communications, I2C, SPI, USB
Also you can create your own protocol of communications with digital inputs and outputs. All you need it´s to implement your own protocol in both devices (PIC and PC) or (PIC and PIC)