Forum Discussion
Altera_Forum
Honored Contributor
12 years agoHey! Thank you so much for your answer. Actually I'm more into C so finally I decided to use a PIC. Anyways, I am going to try it again using VHDL.
Here is what I was trying to do:char values = {0B01000, 0B01100, 0B00100, 0B00110, 0B00010, 0B00011, 0B00001, 0B01001};
void motor(){
short i;
for (i = 0; i<7; i++){
PORTC= values;
Delay_ms(1);
}
}
Thanks again for your time!! :)