- This topic has 3 replies, 3 voices, and was last updated 12 years, 2 months ago by .
Viewing 4 posts - 1 through 4 (of 4 total)
Viewing 4 posts - 1 through 4 (of 4 total)
- You must be logged in to reply to this topic.
|
Microcontroller › 8051 › NXP 8051 – DC Motor Interfacing
Hello friends..
I’m using NXP p89v51rd2 micro-controller. I want to run two 12v DC motors for which I’m using L293D driver.
I’m actuating the motors using data sent via serial port.. i.e Both the motors to run simultaneously when I send a character ‘S’ through serial port and stop when I send a character ‘R’.
This is my code :
Hi,
please share your schematic also, it could happen due to hardware issues sometimes.
when u send ‘s’ then only your loop is activated for a moment after that both if loop not getting any code so it does not working,,,, u can check it by pressing ‘s’ countineusly..
sory for poor english