Menu

Internal osc ckl out

Help
2009-02-19
2013-05-30
  • Edward LaBudde

    Edward LaBudde - 2009-02-19

    Hi all, newbie here.  Was checking the clk out config.  With this code a 12F675 works ok  Here is the code:

    'An external osc output
    'Tested 02-19-09 works

    'Chip model
    #chip 12F675, 4
    #config osc = INTRC_OSC_CLKOUT

    dir gpio.4 out 'Pin 3
    dir gpio.5 out 'pin 2

    start:
    set gpio.5 on
    wait 100 us
    set gpio.5 off
    wait 100 us
    goto start

    Tried the 16F88 it does not work!  with this code:
    'An external osc output
    'Tested 02-19-09 does not work!

    'Chip model
    #chip 16F88, 8
    #config osc = INTRC_CLKOUT

    dir portA.6 out 'Pin 15
    dir portA.0 out 'pin 17

    start:
    set portA.0 on
    wait 100 us
    set portA.0 off
    wait 100 us
    goto start

    I checked the chip data an all appears well

    here is what the .asm says:
    __CONFIG _CONFIG1, _INTRC_IO & _WDT_OFF & _LVP_OFF & _MCLR_OFF

    it should say?: INTRC_CLKOUT

    It does not look like it set the clock out!

    What am I doing wrong?, Regards, Ed.

     
    • Santiago

      Santiago - 2009-02-19

      Hi Ed.

      I think you are right: _INTRC_IO is internal clock NO clockout , it should say INTRC_CLKOUT

      But this way works ok for me: #config INTRC_CLKOUT

       
    • Edward LaBudde

      Edward LaBudde - 2009-02-19

      Kent thanks again.  You are correct as usual!  It does not like
      #config osc = INTRC_CLKOUT,

      it likes yours #config INTRC_CLKOUT

      There were no warnings of course.

      Regards, Ed.

       

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.