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.

[AVR] PIR and Atmega128 on PC4 ?

Status
Not open for further replies.

bianchi77

Advanced Member level 4
Advanced Member level 4
Joined
Jun 11, 2009
Messages
1,313
Helped
21
Reputation
44
Reaction score
20
Trophy points
1,318
Location
California
Visit site
Activity points
9,442
Guys,

I want to detect PIR on PC4,

I have created like below but got no proper response yet, any ideas ?
Code:
#define PIR_PIN PINC   //PIR input port
#define PIR	PC4 

DDRC = 0x70;  
if (bit_is_set(PIR_PIN, PIR))
		{
			lcd_string("PIR is detecting!");
		}

Thanks
 

You're apparently referring to specific libraries, but you forgot to tell which.
 
Last edited:

Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top