Hi David,

Not sure which bits you mean on page 40. In general if bits that are defined as 
XX are not relevant and should not be used.

The INTOSC_NOCLKOUT  is called a bit differently in the datasheet since there 
can be inconistencies between the datasheet and what Microchip releases as chip 
information. It is best to look at the JAL device file for your chip, all 
configuration are shown at the end of the device file.

One pin can indeed drive 25 mA and in general the maximum for a standard LED is 
20 mA. It is not the intention of the sample program to show that a LED can 
blink bright but just to show that the LED blinks. You can change the resistor 
value to e.g. 330 Ohm but you have to keep in mind that the chip itself cannot 
handle 25 mA on all ports at the same time. From the top of my head I thought 
that the chip in total can handle only a maximum 75 mA.

Kind regards,

Rob

________________________________
Van: [email protected] <[email protected]> namens Zet Weeh 
<[email protected]>
Verzonden: maandag 11 mei 2020 22:45
Aan: jallib <[email protected]>
Onderwerp: [jallib] Re: 16F505


Hi Sunish

Thanks for your fast reply. I have three questions ( written in red).

xx -- In the datsheet on page 40 I see some configuration-bits but the register 
has no name. Is it still possible to use those bits?

pragma target clock 4_000_000      -- oscillator frequency
--
pragma target OSC      INTOSC_NOCLKOUT           -- Int osc, no clockout 
………..>>>>> in the datasheet and in the library16F505:  I can't find 'noclkout'
pragma target WDT      DISABLED                  -- watchdog
pragma target MCLR     INTERNAL                  -- internal reset
--
-- 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.  
……….>>>>>> in the datasheet the pin can deliver 25 mA/that is enough for a 
standard led
--
--Best regards,

Peter

Op maandag 11 mei 2020 00:34:10 UTC+2 schreef Zet Weeh:
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]<mailto:[email protected]>.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jallib/533949a2-b755-4b22-8c56-09ed4a2e6793%40googlegroups.com<https://groups.google.com/d/msgid/jallib/533949a2-b755-4b22-8c56-09ed4a2e6793%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/AM0PR07MB62412CA1D261F0ABE697BAF0E6BE0%40AM0PR07MB6241.eurprd07.prod.outlook.com.

Reply via email to