Continue to Site

Welcome to our site!

Electro Tech is an online community (with over 170,000 members) who enjoy talking about and building electronic circuits, projects and gadgets. To participate you need to register. Registration is free. Click here to register now.

  • Welcome to our site! Electro Tech is an online community (with over 170,000 members) who enjoy talking about and building electronic circuits, projects and gadgets. To participate you need to register. Registration is free. Click here to register now.

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! :eek:

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
    read.png
    183.3 KB · Views: 178
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.

Latest threads

New Articles From Microcontroller Tips

Back
Top