On 1 Sep 2008, at 09:43 , Rob Hamerling wrote: > 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.
Only for 10F's, but it should go into the device files, and into the enable_dig_io() procedure. >> 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. All that have, should declare MCLR external. Programming an internal MCLR PIC depends on a very specific power-up sequence which can baffle newbies. This should be in the BLINK files only, for now. > > Regards, Rob. > > -- > Rob Hamerling, Vianen, NL (http://www.robh.nl/) > > > > > --- ir EE van Andel [EMAIL PROTECTED] http://www.fiwihex.nl Fiwihex B.V. Wierdensestraat 74, NL7604BK Almelo, Netherlands tel+31-546-491106 fax+31-546-491107 --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
