- This topic has 2 replies, 3 voices, and was last updated 11 years, 1 month ago by .
Viewing 3 posts - 1 through 3 (of 3 total)
Viewing 3 posts - 1 through 3 (of 3 total)
- You must be logged in to reply to this topic.
|
Microcontroller › 8051 › Can we turn LED on and off from serial port to 8051
Hi guys, is it possible to turn LED on and off via serial port of PC controlling using VB? LEDs are connected to 8051. I’ve searched online but normally only text is used to be sent serially.
yes we can.just put 0XAAH in accumulator. connect led to txd pin of 8051. start sending the data from accumulator via serial port
you can turnOn led by sending ON LED and turn off the led by sending OFF LED.
But you have to write a program in such a way that, if you get ON LED on from serial port then give led_pin=1; similarly for OFF also.
I didnt clearly understand you but i think this might helpu