bliscar
Newbie level 3
Hi,
I am working on a problem in which I have to set the last three bits(2-0) of the register CONFIG1L (which are PLLDIV2, PLLDIV1 and PLLDIV0) through the code section of my program(e.g. as I access TRIS registers) which is usually accessed and set by "#pragma config PLLDIV"statement.
But this register is at the address 300000h which is beyond the user program memory space. It belongs to the configuration memory space (300000h-3FFFFFh), which can only be accessed using table reads and table writes and not through normal procedures(programming the Configuration registers is done in a manner similar to programming the Flash memory) as we access TRIS or PORT registers.
I am using MPLAB-X as the environment and C18 compiler.
I have started reading the table read and write method from the PIC18F4550 datasheet, but still not getting any clue that how to solve the above problem and is it feasible to solve it???
Do anyone have any idea as how to solve it??????
I am working on a problem in which I have to set the last three bits(2-0) of the register CONFIG1L (which are PLLDIV2, PLLDIV1 and PLLDIV0) through the code section of my program(e.g. as I access TRIS registers) which is usually accessed and set by "#pragma config PLLDIV"statement.
But this register is at the address 300000h which is beyond the user program memory space. It belongs to the configuration memory space (300000h-3FFFFFh), which can only be accessed using table reads and table writes and not through normal procedures(programming the Configuration registers is done in a manner similar to programming the Flash memory) as we access TRIS or PORT registers.
I am using MPLAB-X as the environment and C18 compiler.
I have started reading the table read and write method from the PIC18F4550 datasheet, but still not getting any clue that how to solve the above problem and is it feasible to solve it???
Do anyone have any idea as how to solve it??????