Proton is like basic
I just use it's serial communication programme.
here is my transfer code:
SEROUT MOVWF RCV
MOVLW 0X08
MOVWF COUNTER
BCF PORTB,6
CALL DELAY104US
Sendbit RRF RCV,1
BTFSC STATUS,C
BSF PORTB,6
BTFSS STATUS,C
BCF PORTB,6
CALL DELAY104US
DECFSZ COUNTER,1
GOTO Sendbit
BSF PORTB,6
CALL DELAY104US
RETURN
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;DELAY ;;
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
DELAY52US ;;
movlw .33 ;;
movwf Reg_1 ;;
decfsz Reg_1,F ;;
goto $-1 ;;
nop ;;
NOP ;;
RETURN ;;
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
DELAY104US ;;
movlw .68 ;;
movwf Reg_1 ;;
decfsz Reg_1,F ;;
goto $-1 ;;
NOP ;;
RETURN ;;
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
thanks
---------- Post added at 14:41 ---------- Previous post was at 13:46 ----------
Hi
every thing is ok.I can transmiting data from pic to pic and pic to pc! the problem was in wire connection on board
thanks every body specialy wp100;-)