Professional Documents
Culture Documents
------------------------------------------------------------------------------------
--File
:
SMControl.vhd
-- Entity
:
SMControl
------------------------------------------------------------------------------------
--Un ive rs ity
:
Vishweswaraia Technological University
Belgaum,Karnataka
-- Simulators
:
Mentor Graphics Modelsim
-- Synthesizers
:
Xilinx ISE
-- Target Device
:
XC4000 Series
------------------------------------------------------------------------------------
----
--De scrip tio n
:
Uni-polar Stepper Motor Controller in Full step---
--
mode
------------------------------------------------------------------------------------
----
);
end SMControl;
architecture Behavioral of SMControl is
begin
Process( Clk, Reset, Current_State )
Begin
Case Current_State is
When Step_0 =>
Sec <= x"A";
if E = '1' then
End if;
end if;
When Step_2 =>
Sec <= x"5";
if E = '1' then
End if;
end if;
When Step_3 =>
Sec <= x"6";
if E = '1' then
end Case;
end if;
end Process;
Process(Clk)
Begin
Next_State
Current_State
ns
1400
1600
1800
2000
2200
2400
2600
2800
3000
5
9
A
6
5
9
A
9
5
6
step_1
step_0
step_3
step_2
step_1
step_0
step_1
step_2
step_3
step_0
ste
p_2
step_1
step_0
step_3
step_2
step_1
step_0
step_1
step_2
step_3
ste
p
_
0