Hi all When using the following statement (internal default osc)
#chip 16F1508,16
I get OSCCON=01111000 which is ok But with the following statement:
#chip 16F1508,8
I get OSCCON=01101000 which corresponds to 4Mhz. Should be 01110000. The lower freqs appear to lead to a wrong result as well.
My one cent: the compiler seems to use the fisrt three bits of IRCF whereas this chip codes IRCF on four bits (<6-3>)
Log in to post a comment.
Hi all
When using the following statement (internal default osc)
I get OSCCON=01111000 which is ok
But with the following statement:
I get OSCCON=01101000 which corresponds to 4Mhz. Should be 01110000. The lower freqs appear to lead to a wrong result as well.
My one cent: the compiler seems to use the fisrt three bits of IRCF whereas this chip codes IRCF on four bits (<6-3>)