Other Parts Discussed in Thread: SYSCONFIG
I'm trying to getthe CLB working in this part. To make it easy, I figured starting small. Conect a GPIO to the input of the CLB tile and put the output on another GPIO and light up an LED. Something simple.
I used Sysconfig to do this.
1. CLB INPUTXBAR
Input to be used CLB_INPUTXBAR5 set to GPIO39
2. CLB XBAR
AUXSIG2, MUX 09, INPUTXBAR5
3. OUTPUTXBAR
MUX 1, CLB OUT4,OUTPUTXBAR8, GPIO31
4.CLB
CLB1, Enable CLB, CLB INput 2 Global MUX CLB X-BAR AUXSIG2, no filtering, no sync, no pipeline, Linked tile 0
5. TILE 0
OUTLUT_4, i0 = BOUNDARY.in2, eqn = i0.
So, GPIO 39 should come in to input 2 of the CLB the output 4 LUT should pick up input 2 directly and send it on its way to GPIO31 where a nice shiny GREEN LED is waiting to show me that my high and or low input on GPIO39 is being "seen".
...But alas, no...
I've looked at the MUX enable register for MUX 1 output to make sure its enabled. I've monitored the GPIO register to verify that my hig or low dignals are being seen. Now another 1.5 days have passed and my scalp weighs several thousand hairs less than before...
Ultimatley, what I want to do is have CMPSS2 come in to the CLB, trigger a 25uS timer that when the time is up, it send s sync pulse to PWM 4 to short cycle the period register while it is doing a cycle by cycle current limit. But one thing at a time...
Brilliant suggestions always welcome.
Thanks,
David