Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronic Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

hellllllp???????? please

Status
Not open for further replies.

neero

Newbie level 3
Joined
May 21, 2011
Messages
3
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
1,301
hi guys sorry for this stupied question but iam new un micro controller i use
PIC16F877 and iwant to write acode for example if the temperture exceed specific value for example 25 the led is on or fan is work note that iuse comparator as switch idont how Ishould strat? please help me thanks alot:cry:
 

Abeer_h

Member level 5
Joined
Aug 25, 2010
Messages
83
Helped
9
Reputation
18
Reaction score
8
Trophy points
1,288
Location
In your worst nightmares
Activity points
1,761
Which progamming language are you using?!
Do you have knowledge about microcontrollers? Do you know how to write codes in xyz language?
Provide more information to get help.

Abeer:twisted:
 

neero

Newbie level 3
Joined
May 21, 2011
Messages
3
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
1,301
i use micro c or micro pro and i use comparator and i want use pins:RA0-RA3
pins:RA4-RA5 AS output
 

wp100

Advanced Member level 5
Joined
May 15, 2009
Messages
3,056
Helped
883
Reputation
1,781
Reaction score
736
Trophy points
113
Location
Prime Meridian
Activity points
0
Hi,

I don't use C, but think there are some good tutorials on the mikroe site.

You do not make it clear how the temperature is being presented to the Pic.
Are you using a sensor like the LM35 ?
If so there is no need to use the Hardware comparator, you simple do it with the software.

eg

loop Read sensor,
Value above 25, yes - turn on led /fan , no turn off led/fan
goto loop
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Top