void main(){
trisc=0;
portc=0;
while(1){
if (some bit){
for (condition){
rc3_bit=1;
delay;
rc3_bit=0;
delay;
}}}}
This code is not vorking. If I put (portc instade of rc3_bit) code works fine.I use mikroC.
It also makes mi problems when I use interrupt
Can some one explane it to me.
PORTC is 8 bits. RC3 is 4th bit of PORTC. You can use PORTC.F3 or PORTC.B3 instead of RC3_bit. A better place to ask you question is mikroe forum. Post your code and we will try to help with your interrupt problem.
the port is defined corectli.
I solwed the problem.
code works.
If you define onliy that pin with(trisc.rc3=1) you will have output.
I im controling steper drive and motor like this