Hi RadekS,
Thank you for the reply.
Really the code helped me a lot to understand the register settings.
Only one thing which I am not clear about, in the code shared is the below piece of code:
//==============================================================================
//PFLASH Send_Command
//==============================================================================
//this function is stored in nonbanked RAM memory. Must be called by JSR
//in C language:
// {
// FSTAT_CCIF = 1; //launch command
// while(FSTAT_CCIF == 0); //wait for done
// }
static unsigned char Send_Command[]=
{
0x1C, 0x01, 0x06, 0x80, 0x1F, 0x01, 0x06, 0x80, 0xFB, 0x3D
};
In few functions it has been written as:
asm JSR Send_Command;
stating to jump to the subroutine Send_Command and which has so many values in the above mentioned code, and also few lines which are commented which mentioned
//this function is stored in nonbanked RAM memory. Must be called by JSR
//in C language:
// {
// FSTAT_CCIF = 1; //launch command
// while(FSTAT_CCIF == 0); //wait for done
// }
Did the above piece of code is equivalent to the Send_Command[]?
I am not able to figure out the values in Send_Command. Will it be appropriate to use the commented to code instead of calling Send_Command.
could you please help me in understanding this.
Thank you.
With Regards,
Sravani T