Email: Password: Remember Me | Create Account (Free)

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
Brian Reid
06/18/09 00:31
Read: 102 times


 
#166212 - thank you
Responding to: Michael Karas's previous message
Michael, thank you very much for taking the time to give me that excellent explanation. I have tried each of the four clock/data options available with my SPI port and all yield slightly different but similar shifted results. I spoke to the designer/programmer of the module this morning and he is looking into what is causing the shift I am seeing. He said he has had similar complaints from other customers in the past but because most people tend to use the UART output instead, it hasn't been a big enough problem for them to worry about.

I could be missing something but I don't believe the uC I am using has the ability to receive data on the first edge AND send data out on the second edge, at least using the built in SPI functions. I'm sure there is a way to do it but it's not something I have tried to do just yet...

The compass works just fine in UART mode. The reason I'm going through the trouble is to convert the current heading to a 24VDC high speed pulse that can be fed into a Siemens PLC and read using a high speed counter. I have no RS-232 ports and only have one RS-485 port available and it's tied up for Modbus so barring a PLC upgrade and the addition of a 232-485 converter, doing it this way made more financial sense. The heading data is received in two bytes which could just be dumped directly into a 16 bit timer configured as an external event counter to be pulsed out to the PLC. It's a unique setup that's required for this application.

I will post the results when I hear back from Honeywell.

Thanks again,
Brian

List of 11 messages in thread
TopicAuthorDate
SiLabs C8051F500 and SPI      Brian Reid      06/13/09 14:17      
   answered in crosspost at silabs forum      Erik Malund      06/13/09 17:58      
   Please help?      Brian Reid      06/16/09 00:12      
      it could be      Erik Malund      06/16/09 08:33      
         Slave      Brian Reid      06/16/09 21:20      
   Have you tried ...      Michael Karas      06/16/09 22:52      
      thank you      Brian Reid      06/18/09 00:31      
         Juat a thought      Erik Malund      06/18/09 08:43      
            compass      Brian Reid      06/18/09 21:53      
      update      Brian Reid      06/18/09 22:13      
         just for fun/verification      Erik Malund      06/19/09 08:23      

Back to Subject List