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.

ATMEGA-8 and mikroc pro basic for AVR problem

Status
Not open for further replies.

djc

Advanced Member level 1
Advanced Member level 1
Joined
Jan 27, 2013
Messages
402
Helped
3
Reputation
6
Reaction score
2
Trophy points
1,298
Location
India
Visit site
Activity points
4,554
Hi,
I am working on Atmega 8 with mikroc pro for AVR. Earlier I have worked with PIC series like 16f676, 18f4520 with mikroc pro basic for PIC. There it was easy to refer single pin of controller. Suppose i want to access pin 2 of portA, then I would write PORTA.B2. But in Atmega 8 this facility is not available. So is there any other way by which i can refer to single pin of Atmega 8 so that i can use it with #define directives and all oter operations.
 

Hey thanx jayanth, first option PORTA2_bit is working. I tried to use PORTD.B1, this too giving no error. I hope this is right too.
 

Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top