hi,
As Diver points out you should have an appropriate Header to your program.
There is no need to change the Radix, if you use .5 thats 5 decimal,
0xFF 0FFh and .255 are the same value.
This is an example.
As Diver points out you should have an appropriate Header to your program.
There is no need to change the Radix, if you use .5 thats 5 decimal,
0xFF 0FFh and .255 are the same value.
This is an example.
Code:
list p=16F84A ; list directive to define processor
#include <p16F84A.inc> ; processor specific variable definitions
errorlevel -302, -207
__CONFIG _CP_OFF & _WDT_OFF & _PWRTE_ON & _XT_OSC
ORG 0x000 ; processor reset vector
goto main ; go to beginning of program
ORG 0x004 ; interrupt vector location
nop
retfie ; return from interrupt
main:
;your code goes here.
movlw .5
clrw
nop
end
Last edited: