Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics 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:
 

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:
 

i use micro c or micro pro and i use comparator and i want use pins:RA0-RA3
pins:RA4-RA5 AS output
 

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.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top