Hi, all
The correct operation in CW08 v5.1 to setup MOR or FLBPR for 908JL16 should be:
Code:const byte MOR_INIT @0x0000FFD0 = 0x7f; //set MOR to use RC oscconst byte FLBPR_INIT @0x0000FFCF =0xff; //unprotect all flash
It is important to remember 3 points:
1. add "const" to indicate MOR or FLBPR is in flash
2. use MOR_INIT instead of MOR and FLBPR_INIT instead of FLBPR,this is described in .h file related to the specific 908mcu.
3. when using other 908mcu, check the address of MOR and FLBPR in their datasheet and modify them to the right value.