Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
It takes two things to transmit and receive
1 And Ir receiver
2 And Ir transmitter
To Nigel:
Doesnt works without the 330 ohms resistor.
No but I sure no how old you are. You can build it any way you want when it brake's..you really think i am that newb?
(and i dont get what you mean, i know what is a tsop31256 and a tsal6200)
PIC16F84A is unjustifiably expensive, but it will work for you, it is the flash version (upgraded) of the 16c84...
You can use so many different ways of actually loading the hex into the PIC. I recommend buying a USB one from melabs they are cheap and can program almost all of the PICs in existance. Alternatively, microchip has some on their website, and there are also industrial tpyes that can program in 1 second to 16 chips at a time...costing about 800 dollars. Well worth it in the long run if you mass produce your designs.
bsf STATUS,RP0
bcf TRISB,0
bcf STATUS,RP0
there:
bcf PORTB,0
here:
btfss PORTB,1
goto there
bsf PORTB,0
goto here
doesnt here...bsf STATUS,RP0
bcf TRISB,0
bcf STATUS,RP0
there:
bcf PORTB,0
here:
btfss PORTA,1
goto there
bsf PORTB,0
goto here
Start:
[COLOR="Red"] movlw 0x07
movwf CMCON ;turn comparators off[/COLOR]
movlw B'00000000 ;loads w
banksel TRISA ;moves to tris reg.
movwf TRISA ;wirtes to tris setting all to out put
banksel PORTA ; moves to Porta reg
clrf PORTA ; sets all pins to output
That is really strange, only the port b works as input on all my 16f628a. Do i have to set to port in some way?
This problem driven me crazy because i was wondering why my 3 line program was not working.Works on port b...
You have to turn off the comparators on port A.