PXA255 NSSP problem in SPI mode

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance



Dear all,

I'm developing a WinCE driver for a peripheral attached to the NSSP
port of a PXA255 processor.
NSSP port is configured in SPI mode 0, SPI bus master (Clock and Frame
master), data size = 8bit, and is used in PIO mode (so no DMA and no
Interrupts just polling).
I'm currently testing the port in Loopback mode (I've tried internal
loopback or external loopback shorting RX and TX pins).

I've encountered this problem:
>>From PXA developer's manual I thought that writing a byte to TxFifo and
waiting for TxFifo to be empty would cause RxFifo to contain a byte
(SPI is full-duplex so if I transmit a byte I also receive a byte).
But after writing a byte to TxFifo and waiting for Tx completion,
RxFifo is empty.
What is really strange is that writing a second byte causes RxFifo to
contain the first byte transmitted and so on.

For example:
1) Write 0x01 -> RxFifo Empty
2) Write 0x02 -> RxFifo contains 1 byte with value 0x01
3) Write 0x03 -> RxFifo contains 1 byte with value 0x02
and so on.

It seems that NSSP controller has an hidden Rx buffer where data is
stored prior to putting it in RxFifo on the arrival of another byte.

Is that behaviour correct or am I making some kind of error?
Has anybody esperienced this kind of behaviour?

Thanks for the kind reply
Claudio

.



Relevant Pages

  • Re: PXA255 NSSP problem in SPI mode
    ... > NSSP port is configured in SPI mode 0, SPI bus master (Clock and Frame ... > RxFifo is empty. ...
    (microsoft.public.windowsce.platbuilder)
  • Re: SPI on the User Port ... Mode Hang-Ups.
    ... hard pressed to give up their RS232 port for this, ... Ethernet cart, or they have a cardreader on a PC/Linux box on the net ... registers between an SPI interface and a RS-232C interface, ...
    (comp.sys.cbm)
  • Re: Stateful Packet Inspection Firewall
    ... you need a router with NAT to establish multiple machines to use one public ... An SPI firewall will help to keep out hackers/crackers and you will ... not application based but port based. ...
    (comp.security.firewalls)
  • Re: Software vs. hardware firewalls
    ... > I think you should reverse your thinking on that. ... > Now, the latest version of the Linksys firmware SPI has been removed, ... > to map specified port traffic to a specified IP/machine needing the port ...
    (comp.security.firewalls)
  • Re: Software vs. hardware firewalls
    ... If you're not that Thor, ... >> Now, the latest version of the Linksys firmware SPI has been removed, ... SPI has never worked right on any of the Linksys firmware. ... >> to map specified port traffic to a specified IP/machine needing the port ...
    (comp.security.firewalls)