I need to load OSCCAL with its stored value.
Tried
Code: Select all
asm movwf OSCCAL
And got compiler errors:
31: __config("__PROG_CONFIG", "pic", 0x1, 0x3FEB);
^ (1386) unable to determine the semantics of the configuration setting "OSC" for register "CONFIG" (warning)
PIC10F.c: main()
74: asm movlw osccal
^ (317) "(" expected
^ (318) string expected
^ (194) ")" expected
^ (312) ";" expected
(908) exit status = 1
(908) exit status = 1
Error returned from [xc8.exe]
C:\Program Files (x86)\Flowcode\Common\Compilers\pic\batch\pic_xc8_comp.bat reported error code 1
FINISHED
Any ideas please?
Dave