No need to change the include file, use the modified blink sample below, which should work
-- include 16f505 -- target PICmicro -- -- This program assumes that a 4 MHz int osc. pragma target clock 4_000_000 -- oscillator frequency -- pragma target OSC INTOSC_NOCLKOUT -- Int osc, no clockout pragma target WDT DISABLED -- watchdog pragma target MCLR INTERNAL -- internal reset -- -- The configuration bit settings above are only a selection, sufficient -- for this program. Other programs may need more or different settings. -- -- enable_digital_io() -- make all pins digital I/O -- -- A low current (2 mA) led with 2.2K series resistor is recommended -- since the chosen pin may not be able to drive an ordinary 20mA led. -- alias led is pin_B0 -- alias for pin with LED -- pin_B0_direction = OUTPUT -- forever loop led = ON _usec_delay(100_000) led = OFF _usec_delay(400_000) end loop -- Sunish On Mon, May 11, 2020 at 4:04 AM Zet Weeh <[email protected]> wrote: > Hi > I never worked with small PIC's. > I want to use the internal oscillator of the 16F505. > Is it correct I need to change in the library 16F505 in the oscillator > part: > > pragma fuse_def OSC 0x7 > > in > > pragma fuse_def OSC 0x4 > > Best regards, > Peter > > -- > You received this message because you are subscribed to the Google Groups > "jallib" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > To view this discussion on the web visit > https://groups.google.com/d/msgid/jallib/6dcbce49-7c22-4788-a843-1a953abbd5f4%40googlegroups.com > <https://groups.google.com/d/msgid/jallib/6dcbce49-7c22-4788-a843-1a953abbd5f4%40googlegroups.com?utm_medium=email&utm_source=footer> > . > -- You received this message because you are subscribed to the Google Groups "jallib" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/jallib/CAFGw2pEs9D57EoXZL3%2BuJ3Tp2N6D-eWZHXgn4KXpxah%3D3rzqBw%40mail.gmail.com.
