I have made animal detector. But when detection happen at that time i want to send bit to serially connected 8051
1 view (last 30 days)
Show older comments
Hetu Patel
on 29 Apr 2014
Commented: Walter Roberson
on 29 Apr 2014
I have made animal detector. But when detection happens at that time i want to send bit to serially connected 8051. Because i want to control RELAY switch and LED's which are connects with 8051.
So what are the codes for it ?? help me out please.
thank you.
0 Comments
Accepted Answer
Walter Roberson
on 29 Apr 2014
If you are attempting to use a serial port to do this, then it is not possible. The 8051 serial port is not able to accept a single bit at a time. Serial ports transmit multiple bits in a group, with the group proceeded with a "start bit" and the group is followed by a "stop bit". Typically you cannot send less than 7 data bits at a time.
Did you solve your problem with COM2 not being available?
2 Comments
Walter Roberson
on 29 Apr 2014
The easiest way would be to send a character instead of a bit. The code you posted in the newsgroup looked pretty close, but you need to solve the problem about COM2 not being available.
More Answers (0)
See Also
Categories
Find more on Use COM Objects in MATLAB in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!