I found a problem in header file PIC18f6520.h.
This description misses for "Configuration registers locations":
#define __CONFIG4L 0x300006
/* Low Voltage Program 4L options */
#define _LVP_ON_4L 0xFF     /* Enabled */
#define _LVP_OFF_4L 0xFB     /* Disabled */

And I must delete this text:
/* Low Voltage Program 3H options */
#define _LVP_ON_3H 0xFF /* Enabled */
#define _LVP_OFF_3H 0xFB /* Disabled */
Can I obtain a example with config bits in C language? I can set config bits in assemler only.
Thank you.
Kind Regards,
Marek Misa