Electronic Projects, forums and more.

Go Back   Electronic Circuits Projects Diagrams Free > Electronics Categories > Micro Controllers


Micro Controllers Discuss all aspects of micro controllers - building them, coding them, etc. All controllers are welcome - PIC, BASIC, Z8 Encore!, etc.

Reply
 
Tools
Old 11th October 2009, 10:14 PM   #1
Default 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
__________________
Founder member of the Campaign to do Something about the nonexistent word "Somethink"

Last edited by bigal_scorpio; 11th October 2009 at 10:24 PM.
bigal_scorpio is offline  
Old 11th October 2009, 11:04 PM   #2
Default

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
Attached Thumbnails
Turning off AD in MikrBasic-read.png  

Last edited by be80be; 11th October 2009 at 11:11 PM.
be80be is offline  
Old 11th October 2009, 11:27 PM   #3
Default

Quote:
Originally Posted by be80be View Post
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
__________________
Founder member of the Campaign to do Something about the nonexistent word "Somethink"
bigal_scorpio is offline  
Old 11th October 2009, 11:37 PM   #4
Default

I didn't see where you had to do any thing with CCP If you go threw the I/O port part of the data sheet it show's you what to do. They all have it right here http://www.electro-tech-online.com/a...basic-read.png
be80be is offline  
Reply

Tags
mikrbasic, turning

Thread Tools
Display Modes


Similar
Title Starter Forum Replies Latest
Help: LCD TV not turning on bradsmith Repairing Consumer Electronics 3 10th August 2009 06:14 PM
turning mechanism kashi Robotics Chat 2 14th December 2008 02:54 PM
Switch not turning on? littletransistor Micro Controllers 2 3rd November 2008 09:55 AM
Turning 5 amps into 12 volts superwolf Electronic Projects Design/Ideas/Reviews 19 19th September 2008 04:09 AM
Turning on LCD sgboi Electronic Projects Design/Ideas/Reviews 16 25th September 2003 01:52 PM



All times are GMT. The time now is 05:28 AM.


Electronic Circuits  |  Learning Electronics
eXTReMe Tracker