I often work with Arduino Uno but currently I am working on a new project with PIC16F688. I am still learning the operation of this microcontroller and I program it in Assembler language. I would like to know if it is possible to control an LED via the computer using a serial communication (UART) as on the arduino. Knowing that I want to turn on and off the LED by sending the numbers 1 and O. I use MPLAB IDE to program.
Auto-wake-up on Start bit
So, it has IO pins you can connect LED (directly) to and Enhanced USART so you can talk serial to it. Given that, you can communicate with it via serial from a computer.
It should definitely be possible, not particularly hard even. But you'd get a more helpful answer from a PIC forum - you're not going to find many PIC experts here, since there's no Arduino support for the PICs.
IMO the PIC forum sucks... and the free 8 bit compiler is a kneecaped disaster. But hey, you didn’t ask for my opinion. Sorry, I just find the PIC line to be non-starter for hobbyists.
Since the PIC16F688 is commonly used starter device, you should ask Google for “PIC16F688 serial examples”. You’ll find a fair amount of usable code already on the web.