Forum Discussion
Altera_Forum
Honored Contributor
15 years agoFirst of all make sure pio pins direction is set as output.
If you defined a bidirectional pio port you should have used IOWR_ALTERA_AVALON_PIO_DIRECTION macro somewhere in order to set pin direction bits to 1. Then signal tap and check if your sopc can actually drive these pins. You didn't post any information about the hall module interface, but from the schematic I suppose p_pio port sets the period, d_pio the duty cycle and ri_pio (the one made of a single pin) is a kind of latch enable or pulse command. If this is the case, are you driving the PIOs in the correct sequence? - put ri_pio to inactive level (low?) - set proper values to p_pio and d_pio - pulse ri_pio Cris