Eur van Andel wrote:

>> -- Set all ports into digital mode (if any analog module present).
>> --
>> procedure enable_digital_io() is
>> Â Â pragma inline
>> Â Â adc_off()
>> end procedure
>> --
> 
> Rob, can you add:
> 
> OPTION_REG_T0CS = off
> 
> in here? Then all pins are truly digital I/O. See pictures. FOSC4 is default 
> 0, 
> so we don't need to mess with that.


- Is this needed for all PICS, or only for a specific group? T0CS seems 
not to have exactly the same function in all PICs.
- T0CS is in the OPTION_REG for the midrange and baseline (as pseudo 
register), but in the T0CON register for the 18Fs.
So it is not really straight forward.


> Also, I'd like to add:
> 
>> -- This program assumes the internal oscillator
>> -- is used with a frequency of 4 MHz.
>> pragma target clock 4_000_000 Â  Â  Â -- oscillator frequency
>> pragma target WDT Â disabled
> 
> pragma MCLR external

Similarly as above: for which PICs? Not all even have a 'pragma fuse_def 
MCLR' option. And this is not about device files but the blink-an-led 
samples.

Regards, Rob.

-- 
Rob Hamerling, Vianen, NL (http://www.robh.nl/)

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"jallib" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/jallib?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to