pic18f458 cannot be initialize as input

General discussion on mikroPascal.
Post Reply
Author
Message
jay_f1983
Posts: 8
Joined: 18 Jan 2008 18:22

pic18f458 cannot be initialize as input

#1 Post by jay_f1983 » 18 Jan 2008 19:05

Hi guys,
im new here, i have a problem on the pic18f458, i can't initialize the portd as all input, help me determine whats the problem and what im forgetting,

p.s. has anyone knows the code of rpm or a speed meter displayed on lcd? pls...........need help![/code]

buiss
Posts: 2
Joined: 19 Feb 2009 19:54

#2 Post by buiss » 19 Feb 2009 19:56

This is because it have the capture/comparator module. I am also not able to use it. I dont know how to set it off. I Tried CCP1CON = 0;

yo2lio
Posts: 1878
Joined: 19 Sep 2006 12:57
Location: Romania, Arad City
Contact:

#3 Post by yo2lio » 19 Feb 2009 21:47

Code: Select all

CMCON := 7;
Best regards, Florin Andrei Medrea.

http://www.microelemente.ro/
http://www.microelemente.ro/produse-si-servicii/
http://www.microelemente.ro/custom-software/

mail : florin@microelemente.ro

buiss
Posts: 2
Joined: 19 Feb 2009 19:54

#4 Post by buiss » 20 Feb 2009 05:38

Really thanks a lot. It works, but

Code: Select all

CMCON = 7;
is enough, why it is

Code: Select all

CMCON: = 7;

janni
Posts: 5373
Joined: 18 Feb 2006 13:17
Contact:

#5 Post by janni » 20 Feb 2009 13:17

You're in Pascal forum, so Florin used Pascal notation. If

Code: Select all

CMCON = 7;
'is enough' than you're programming in C :wink: .

Post Reply

Return to “mikroPascal General”