Thank you for the replies!
So here is my code. Note the PIC is a 16F628A becuase I dont have a pic16F84 and am testing it with the newer one. The next thing to notice is that I have some trouble with the TMR0 register so I generated a simple loop to simulate the dalay. If some one has the time I would appreciate the help.
Note allso that I need to make the delay with 16 prescaler and if someone coud explain me what this is.
Code:
list p=16f628a
#INCLUDE <P16F628a.INC>
__CONFIG _CP_OFF & _WDT_OFF & _PWRTE_ON & _INTRC_OSC_NOCLKOUT & _LVP_OFF
count1 res 1
count2 res 1
count3 res 1
MOVLW 0X07
MOVWF CMCON
BSF STATUS , RP0
MOVLW b'00000'
MOVWF TRISA
MOVLW b'00000000'
MOVWF TRISB
BCF STATUS , RP0
;——————————-
ZACETEK
MOVLW b'00111111' ; 0
MOVWF PORTB
call Delay500mS
MOVLW b'00000110' ; 1
MOVWF PORTB
call Delay500mS
MOVLW b'01011011' ; 2
MOVWF PORTB
call Delay500mS
MOVLW b'01001111' ; 3
MOVWF PORTB
call Delay500mS
MOVLW b'01100110' ; 4
MOVWF PORTB
call Delay500mS
MOVLW b'01101101' ; 5
MOVWF PORTB
call Delay500mS
MOVLW b'01111101' ; 6
MOVWF PORTB
call Delay500mS
MOVLW b'00000111' ; 7
MOVWF PORTB
call Delay500mS
MOVLW b'01111111' ; 8
MOVWF PORTB
call Delay500mS
MOVLW b'01101111' ; 9
MOVWF PORTB
call Delay500mS
MOVLW b'01110111' ; A
MOVWF PORTB
call Delay500mS
MOVLW b'01111100' ; b
MOVWF PORTB
call Delay500mS
MOVLW b'00111001' ; C
MOVWF PORTB
call Delay500mS
MOVLW b'01011110' ; d
MOVWF PORTB
call Delay500mS
MOVLW b'01111001' ; E
MOVWF PORTB
call Delay500mS
MOVLW b'01110001' ; F
MOVWF PORTB
call Delay500mS
GOTO ZACETEK
Delay500mS
movlw .3
movwf count1
movlw .140
movwf count2
movlw .82
movwf count3
dloop1 decfsz count3,f
goto dloop1
decfsz count2,f
goto dloop1
decfsz count1,f
goto dloop1
return
END