NefMoto

Technical => Reverse Engineering => Topic started by: Axis on April 15, 2013, 05:23:37 PM



Title: I/O on 2nd C167?
Post by: Axis on April 15, 2013, 05:23:37 PM
How are input/outputs on 2nd C167 cpu addressed? I need to find such code to identify a map.
And might also want to use it to control external device.

Anyone who can paste some example code from IDA showing how it's done?


Title: Re: I/O on 2nd C167?
Post by: IamwhoIam on April 18, 2013, 11:05:29 AM
If memory serves, the 2nd C167 is a port expander, but I could be wrong.


Title: Re: I/O on 2nd C167?
Post by: Axis on April 18, 2013, 02:14:33 PM
I would rather think that they are connected by the SSC (spi) in Master/Slave mode. Though I've not checked the circuitboard for this.
I need help finding how code/routine is used to address the I/O ports on slave device. I can' remember reading about if the slave C167 have the same internal boot rom or another prepared for SPI com.


Title: Re: I/O on 2nd C167?
Post by: phila_dot on April 18, 2013, 02:36:25 PM
Doesn't really answer your question, but have you seen this:

http://nefariousmotorsports.com/forum/index.php?topic=198.0title=


Title: Re: I/O on 2nd C167?
Post by: Axis on April 18, 2013, 04:20:46 PM
Yes, seen it long before I had the need to identify such code. I Recall Tonys statement that he guessed that it was a watchdog.
It was to some help now when I read it again. I guess that I might get further by finding a few known outputs for which I have known maps.

Thank you