Altera_Forum
Honored Contributor
9 years agoDeo Nano Beginer problem
Dear All,
I am new to FPGA (also to vhdl), and altera deo nano is my first board. I tried to generate pwm to some pins, and I generated 4 pwms using this core https://eewiki.net/pages/viewpage.action?pageid=20939345 in my state machine I used something like this. (there are 4 in total, i showed one here) ---------------------------------------------------------------------- Motor1CCW_task2: pwm GENERIC MAP(sys_clk => sys_clk1, pwm_freq=> pwm_freq1, bits_resolution => bits_resolution1, phases => phases1) PORT MAP(clk => clk_main, reset_n => '1', ena => '1', duty =>"10000000" , pwm_out=> Motor1_CCW --, pwm_n_out => Motor1_CW ); ------------------------------------------------------------------------- I used l293d ic to drive two motors. At the beginning, I able to change duty cycle and direction and motors. But after working for 30 min, the motors stared weird behavior and I noticed pwms are wrongly generated. Now doing plenty of permutations I cant figure out what is going on. It seems some times, some pins not working. for example If I try to use GPIO_131 (k15) it seems broken and the attempt to use it also affect other pins. and also some pins cant generate pwm as expected. Again if i changed "Motor1_CCW" to different specific pins, it works. ---I changed to all unused pins as tri-stated ---the voltage level i selected 3.3 lvttl Later I started with a new deo nano, the exact thing happened. works perfectly at the beginning and then started weird behavior. The motor circuit is simple and motors were run at 6 volt. I suspect that some pins of deo nano are broken both cases. But the control panel(deo_nano_controlpanel.exe) works perfectly for the boards. Any suggestion? Thank you very much