Sorry for my poor English.
I'm using oleg USB HOST SHIELD libery with Ardino MEGA ADK.
I'm trying to send data from :
- [Android phone] >--usb shield-->[Arduino MEGA ADK]>--spi (pin50-53)-->[Slave device]
Problem is ,while i attach android phone slave device always receive data packets that i've never send it.
Could anyone help me about this? My hero.
my sketch attached.
munew2.ino (3.03 KB)
I can't use others USART in SPI mode becuase XCK pins didn't wire out to connection pins from chip but port B
That B port is using by usb shield
i know issue source now
USB Host: MAX3421E. The MAX3421E comunicate with Arduino with the SPI bus. So it uses the following pins:
Digital: 7 (RST), 50 (MISO), 51 (MOSI), 52 (SCK).
NB:Please do not use Digital pin 7 as input or output because is used in the comunication with MAX3421E
Non broken out on headers: PJ3 (GP_MAX), PJ6 (INT_MAX), PH7 (SS).
The MAX3421E is using my spi pins