PIC16F1508 osc problem

2014-05-03
2014-05-05
  • Jacques Nilo

    Jacques Nilo - 2014-05-03

    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.

     
  • Jacques Nilo

    Jacques Nilo - 2014-05-05

    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.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks