43617373
New Member
Hello, I have just started thinking about micro controllers but have yet to get my hands on any compilers since so far the ones I have found go for around $200. I was wondering if any of you would now if this would work to control the steps for a stepper motor.
I think it should come out as 0101, 1001, 1010, 0110 across RB0 - RB3 but since I have not yet gotten any parts and started experimenting with them I am unsure... Would that work if RB0 - RB3 where connected to the correct coils, probably through transistors for higher voltage.
Edit: Also browsing though this forum I see a lot of C, would that be a better language to learn than Basic?
Code:
Poke TRISB, 0
loop:
Poke PORTB, 5
Pause 2
Poke PORTB, 9
Pause 2
Poke PORTB, 10
Pause 2
Poke PORTB, 6
Pause 2
Goto loop
End
I think it should come out as 0101, 1001, 1010, 0110 across RB0 - RB3 but since I have not yet gotten any parts and started experimenting with them I am unsure... Would that work if RB0 - RB3 where connected to the correct coils, probably through transistors for higher voltage.
Edit: Also browsing though this forum I see a lot of C, would that be a better language to learn than Basic?
Last edited: