thanks for reply , but when i paste this code i get an error .
and am sure i setup it to correct frequency .
error :
overwriting previous address contents (0000) .
symbol not previously defined (_fcmem_on_1h) .
regrads .
thanks for reply , but when i paste this code i get an error .
and am sure i setup it to correct frequency .
error :
overwriting previous address contents (0000) .
symbol not previously defined (_fcmem_on_1h) .
regrads .
I've seen this before somewhere. Don't remember what the deal was.
Do a search on fcmem and fcmen.
Should fix you up...
EDIT: Found it...
Old versions of MPLAB use FCMEM, new one uses FCMEN
http://www.picbasic.co.uk/forum/show...m+fcmen&page=3
Post #82
Skimask has given you the answer for the error but the frequency will need to be defined as 48MHz when you correct to FCMEN instead of FCMEM. This is because the config settings I have given you set the PIC to run from 48MHz PLL clock source which is generated by the PIC internally but using your 20MHz crystal as the original clock source.
Hope this helps. Let us know how you get on.
Cheers
Rob
woow , yes you are right .
all i did is :
1 : for this "symbol not previously defined (_fcmem_on_1h) " error , i changed it
to "(_fcmen_on_1h" .
2 : i comment this lines in "18f4550.inc" in my "pbp" folder :
; __CONFIG _CONFIG1L, _PLLDIV_5_1L & _CPUDIV_OSC1_PLL2_1L & _USBDIV_2_1L
; __CONFIG _CONFIG1H, _FOSC_HSPLL_HS_1H
this 2 line is reponsable for this erro "overwriting previous address contents (0000)"
3 : i change "define osc 20" to "48" .
after that , all works fine , and i can now send and recive without any problems .
thanks again .
regards .
Bookmarks