Turning off AD in MikrBasic

Status
Not open for further replies.

bigal_scorpio

Active Member
Turning off AD in MikroBasic

Hi to all,

Can anyone tell me the exact word to turn off all AD inputs on a PIC16F874 with Mikrobasic(7.0.0.2) as my build keeps balking at it and keeps thinking the ADSEL or ADCON words are identifiers and were not declared!

I must be doing something stupid, come on guys embarrass me!

PS no sleep yesterday so I may be hallucinating!

Al
 
Last edited:
How about just this


ADCON1 =6 'PORTA and PORTE digital

You need to start reading the data sheet the part that said I/O ports

Look at the shot I wrap it in red
 

Attachments

  • read.png
    183.3 KB · Views: 183
Last edited:
How about just this


ADCON1 =6 'PORTA and PORTE digital

You need to start reading the data sheet the part that said I/O ports

Look at the shot I wrap it in red

Cheers Burt,

I honestly couldn't find that. Does this also negate the need to set the CCP modules as off too?

Al
 
Status
Not open for further replies.
Cookies are required to use this site. You must accept them to continue using the site. Learn more…