Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

Controlling a PIC through SERIAL PORT

Status
Not open for further replies.

shaiqbashir

Newbie level 2
Joined
Apr 6, 2007
Messages
2
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
1,308
pic serial received interrupt

Hi guys!

hope u would be fine out there!

well! im trying to control a motor through PIC and the PIC will be commanded by my PC through serial port.

Now what actually i want here to do is to dedicate two pins of serial i.e. TXD and RXD with my PIC16F876 pins RXD and TXD respectively. I want another pin from the serial port, which can be used as an INTERRUPT pin on my PIC External Interrupt Pin.

Here is what im trying to do!

supposing my PIC is running the motor in the forward direction, i send a 4 bit code from my PC through serial port, but before sending it, it first INTERRUPT the PIC externally so that PIC can know that a new 4-bit code is coming and then the 4-bit code should be sent through TXD of Serial port.

Is this possible?

what port of SERIAL CABLE can i use to generate this INTERRUPT command??
 

Which will be the difference if you'll send an ASCII command directly to the PIC serial port, telling your motor to stop and reverse ?
Of course every step or group of steps movement must be programmed either.

If you need intterupts from COM port, the output signals available are DTR or RTS.
 

Is there a reason that you couldn't use a USART receive interrupt or timed interrupt to poll the buffer on the PIC?
 

I agree with both melc and ldanielrosa.

But if you still want your solution... service Interrupt 0.
 

Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top