_cris said:
Hello,
i`m working with the same architecture than you...and i found your same problem:
when i wanna transfer a file to micro from a device it can`t work: device speak upon UART protocol and then there is a bridge spi/uart (MAX3100) and the port on micro is spi port!
viceversa is working correctly instead!!
if you have understood something new about this kind of communication can you tell me please????
THIS IS THE REPLY FROM MAXIM TECHINCAL SUPPORT TEAM:
Mail 1:
I wanted to make sure my research was relatively thorough before
| responding so I apologize for the slight delay.
|
| We only have 4 UART products currently. As you already pointed
| out the MAX3100 SPI interface is slave only. The MAX3140 uses
| essentially the same SPI to UART interface but has built in
| RS422/485 transceivers. The MAX3110E/11E similarly do the same
| but have built in RS232 transceivers.
|
| Unfortunately none of these products was designed with the type
| of application you described in mind. I will submit the idea for
| a new product intended to allow an SPI port to be converted to a
| fully functioning UART port. This idea may or may not ever bear
| fruit and that would come down to what kind of market interest
| there is.
|
| In the short term - unfortunately - this means I cannot offer you
| a maxim solution to your design goal. However, if you don't mind,
| if you could provide an estimated yearly volume you'd see for
| such an application it would be useful in evaluating whether or
| not such a product should be created in the future.
|
| If you have any additional questions about any maxim product
| please do not hesitate to ask.
xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
MAIL 2
This response is phrased with regards to the MAX3100 - but may
| apply to the other products mentioned with slight modification.
|
| The /IRQ open drain output is indeed used as a signal to the
| micro-controller. The structure of the interrupt logic and
| function is explained on page 11 of the data sheet (it refers to
| other sections as well). It can respond to 5 different types of
| interrupts based upon 4 different mask bits (two function are
| tied together).
|
| One of the functions is a data available function which might be
| useful to you in your application. The MAX3100 would still be
| operating as a slave (since it cannot directly control the chip
| select or sclk - but you may be able to use this to signal the
| master (the micro-controller) that data is available. The slave
| devices behavior would then be determined by how your programmed
| the micro controller to react to the interrupt.
|
| If your using the /IRQ this was it may limit your ability to
| detect other sources of interrupt requests - but this comes down
| to how you code your software to treat the /IRQ signals and which
| mask bits you have set. The /RM bit needs to be set to use this
| type of interrupt, as it is the mask for this type of detection,
| and can be set with a configuration write command to the
| configuration register (16-bit command, detailed on pages 7-8
| initiated with 11 as the first two DIN bits sent).
|
| As far as programming your micro-controller to interact with our
| device, beyond the data sheet and the documents/code provided, we
| cannot supply any micro-controller software level support. The
| application notes and sample software is found here - though the
| sample is for a specific configuration:
|
| **broken link removed**
|
| The part conforms to the SPI/microwire standards for
| communication and you should consult the support for that
| standard if you need help with its implementation. The device
| implements all its commands in 16 bit transmissions and 4
| commands are supported (Write Config, Read Config, Write Data,
| Read Data). If you have any questions about what particular
| settings/registers do we can assist with these but we cannot
| design a new application or provide software support for your
| micro-controller. This is the sole responsibility of your design
| team.
|
| If you have any other questions about this or any other Maxim
| IC, please do not hesitate to ask. Just keep in mind high level
| design of an application or programming is outside the realm of
| the assistance we can offer.
Elfrec: Hopefully this can help~