I am working on a robot using a PIC16F84A. I need to send a pulse through an I/O port. is there a line command in Embedded C that i could do that or am i just better of doing this:
RA3=1
RA3=0
I also need to run a timer and wait for a response to a different I/O is there a straight forward command for that?
i sort of know how to do these in PBASIC, but i like the versatility of C and would rather code with that.
In terms of the C language, there is no such thing as embedded C.
It is just a term that means the program has been targetted for a stand alone module and not a PC.
You only get the standard libraries and the examples provided by the compiler vender. everything else you do yourself.
What you are doing is correct. Set the line High, and then low again.
The device you are using, PIC16F84A, is very old and long in the tooth. It was the first Pic with flash memory made by Microchip.
There are some more powerful and cheaper devices available.
You need a chip with a capture/compare module to capture and time your external signal.
I am working on a robot using a PIC16F84A. I need to send a pulse through an I/O port. is there a line command in Embedded C that i could do that or am i just better of doing this:
RA3=1
RA3=0
I also need to run a timer and wait for a response to a different I/O is there a straight forward command for that?
i sort of know how to do these in PBASIC, but i like the versatility of C and would rather code with that.