GatorGnet
New Member
I am looking for the simplest asm code for a 16F628A that sends a single character through an IR emitter to be received by an equally simple receiver.
The emitter would be connected to an output of the PIC and would transmit the data when a user presses a button. As I stated, I only want to transmit a single character.
I also need a simple code example for the receiver. I want it to wait for the IR signal and if that certain character is received, it will call a function in the PIC. When I get that working, I want to add other call functions when other characters are received.
I have a basic understanding of asm but I keep finding too many examples of over complicated code. Any help would be great.
Also, would it be best to connect the emitter directly to the PIC or use a transistor?
The emitter would be connected to an output of the PIC and would transmit the data when a user presses a button. As I stated, I only want to transmit a single character.
I also need a simple code example for the receiver. I want it to wait for the IR signal and if that certain character is received, it will call a function in the PIC. When I get that working, I want to add other call functions when other characters are received.
I have a basic understanding of asm but I keep finding too many examples of over complicated code. Any help would be great.
Also, would it be best to connect the emitter directly to the PIC or use a transistor?