Hi Paul,
I did include list and # include and CONFIG in my code .
list p=16c745 ; list directive to define processor
#include <p16c745.inc> ; processor specific variable definitions
__CONFIG _CP_OFF & _WDT_OFF & _PWRTE_ON & _E4_OSC
But yet with this, my code is not working.Can you help me. I did like what you said do the simple one first ( blink the LED only ) but it is not working either . Here is my code : for binkling one.
list p=16c745 ; list directive to define processor
#include <p16c745.inc> ; processor specific variable definitions
__CONFIG _CP_OFF & _WDT_OFF & _PWRTE_ON & _E4_OSC
MAIN org 00000030h
bsf STATUS,RP0 ; select bank1
movlw b'00000000' ; Set pins PORTB 1,2 as Input
movwf TRISB ;
bcf STATUS, RP0 ; go back to Bank 0
Start
movlw b'00000001' ; move it from register 1 to w.
movwf PORTB ; move it to PORTB to light up the LED
movlw b'00000000' ; move it from register 1 to w.
movwf PORTB ; OFF the LED
goto Start
Can you help me with the code cause this Fridat is my dateline.
Thank you so much




Bookmarks