ATMEGA-8 and mikroc pro basic for AVR problem

Status
Not open for further replies.

djc

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

Cookies are required to use this site. You must accept them to continue using the site. Learn more…