OpenCores
no use no use 1/1 no use no use
spimaster question
by robfinch on Jan 12, 2013
robfinch
Posts: 28
Joined: Sep 29, 2005
Last seen: Feb 6, 2026
I started playing around with the spimaster core. I have a bizzare problem where if the code reads the status register in a tight loop, then the machine is hung up there. It seems to never get a non-busy status. Please note this just might be a problem with my processor., but I thought I'd ask if this has comeup before ?

On my system doing the following hangs the machine forever:

spi_init1:
inb r1,SPI_TRANS_STATUS_REG[r3] ; get the status
beqi r1,#SPI_TRANS_BUSY,spi_init1 ; branch back if busy

However if I insert instructions between getting the status and branching,
then my machine works okay.


inb r1,SPI_TRANS_STATUS_REG[r3] ; get the status
mov r2,r1 ; waste a couple of cycles uselessly
mov r1,r2
beqi r1,#SPI_TRANS_BUSY,spi_init1 ; branch back if busy


RE: spimaster question
by kuzmi4 on Jan 25, 2013
kuzmi4
Posts: 45
Joined: Aug 1, 2008
Last seen: Oct 8, 2024
2 robfinch
what exactly IP core you are using? What system you have in FPGA?
no use no use 1/1 no use no use
© copyright 1999-2026 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.