News:

;) This forum is the property of Proton software developers

Main Menu

All_Digital usage.

Started by dr-zin, Nov 11, 2026, 06:58 PM

Previous topic - Next topic

dr-zin

Hi, as a longtime user dating back to mid-2000's, I routinely use "All_Digital = True" in the declarations section of my programs (when A/D functions are not necessary, of course).  When reviewing the Positron8 online manual, I could not find a reference to it.  A document text search shows only that it is a reserved compiler keyword and can't be used in variables, which is obvious.

Has this directive been deprecated, or superceded in recent versions?  It still appears to work, but there seems to be not documentation on when to use it.  Any insight on this? Thanks.

charliecoutas

I think the compiler defaults to All_Digital=True now. What version are you using?

Charlie

John Lawton

Yes, I believe it is now deprecated because over time PICs have gained so much extra peripheral hardware with sometimes inconsistent setup requirements that the command could not be guaranteed to work with all devices. Sadly this often makes thorough reading of the datasheets a necessity in order to get ordinary I/O working as expected.

John
-----------------------------------------------------------------------------------------
Amicus 8 and 16A/16B dev boards
Especially created for Positron development
https://www.easy-driver.co.uk/Amicus

Stephen Moss

Charlie is correct, the compiler now automatically defaults to making all inputs digital (registers set to the appropriate values in the .PPI or .DEF files) so there is no need to use the command.
The command still exists but only for backwards (legacy) compatibility with older code to prevent any resulting compilation errors, in reality it now produces no code when compiled.

▲