Hello Palliser,
how can write this code: direct port digitalwrite high
PORTD = PORTD | 0b00000100; //digitalWrite(encoder_a, HIGH); this no.2 need number 22
PORTD = PORTD | 0b00001000; //digitalWrite(encoder_b, HIGH); this is no.3 need number 23
and this: digitalwrite high and low
//digitalWrite(motor_direction, HIGH);// move stepper in reverse
PORTD = PORTD | 0b00100000; // this no.5 need number 53
//digitalWrite(motor_step, HIGH); // this no.4 need number 52
PORTD = PORTD | 0b00010000;
//digitalWrite(motor_step, LOW);
PORTD = PORTD & 0b11101111; // this no.4 need number 52
I'm still a beginner and please write to me for more detail.
Or it will be better to rewrite this code. Is it possible to operate in only 8 bit system.
But i need code is worked to 32bit.