cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
ilyla
Visitor
Visitor
3,553 Views
Registered: ‎01-24-2013

How do I change the SLCR bits?

To be more exact, I'm looking to change the slcr.MIO_LOOPBACK [I2C0_LOOP_I2C1] bit in particular, but I can't find it. 

 

Is it changed in the code, or something else(if so, what?)

Does anyone know what header it's in/ what header I should add it in(and if so, how)

Thank you all so much!

0 Kudos
Reply
2 Replies
semp
Observer
Observer
3,424 Views
Registered: ‎04-29-2013

I also wanted to change a slcr.MIO_LOOPBACK bit but wasn't able to.  I tried using the low-level Xil_In32/Xil_Out32 functions but couldn't change any bits.  Note that I opted for low-level functions because I also couldn't find any higher-level headers providing functions to change loopback options.  Additionally, I even tried writing a value directly through XMD (mwr command).

 

Has anybody had success writing to this register?  Are there conditions that prevent write access to this register?

 

I didn't find any explicit option for loopback in the configuration of the Zynq processor block (of IP Integrator) so I just configured both SPI cores to MIO but figured this would be irrelevant once loopback was manually enabled.  Could the configuration of MIOs for SPI be blocking write access to slcr.MIO_LOOPBACK?

 

 

0 Kudos
Reply
semp
Observer
Observer
3,418 Views
Registered: ‎04-29-2013

Ok, figured it out.

 

There's a SLCR_LOCK register which is triggered by the ps7_init script.