Forum Discussion
Altera_Forum
Honored Contributor
16 years agoProblem about the Pin planner of SOPC core
I bulid a system with SOPC builder. And I only use six components ,CPU ,JtAG Uart ,system id, Pio*3 and pll. The PIO that two is 16 bits output signal, the other one is 1 bit output signal. t...
Altera_Forum
Honored Contributor
16 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