[LPC1111 EVM] W5200 TCP/IP 테스트
하드웨어 TCP/IP W5200모듈을 NET-EXP보드에서 테스트 했다.
LPC1100
Cortex-M0코어의 저렴한 LPC1113의 SPI최대 속도가 12Mhz이고 W5200 TCP전송 속도는 1.5Mbps정도 나온다.
[1] iInChip Send: 1.5744 Mbps(3966014 bytes, 19.2184 sec)
iInChip Recv: 1.5546 Mbps(3966014 bytes, 19.4632 sec)
------------------------------------------------------------
[2] iInChip Send: 1.5687 Mbps(3966014 bytes, 19.2887 sec)
iInChip Recv: 1.5694 Mbps(3966014 bytes, 19.2800 sec)
------------------------------------------------------------
LCP1100 핀맵
[NET-EVM] W5100 핀맵 회로도
LPC1113 W5200 테스트 드라이버 코드
하드웨어 TCP/IP W5200모듈을 NET-EXP보드에서 테스트 했다.
LPC1100
Cortex-M0코어의 저렴한 LPC1113의 SPI최대 속도가 12Mhz이고 W5200 TCP전송 속도는 1.5Mbps정도 나온다.
[1] iInChip Send: 1.5744 Mbps(3966014 bytes, 19.2184 sec)
iInChip Recv: 1.5546 Mbps(3966014 bytes, 19.4632 sec)
------------------------------------------------------------
[2] iInChip Send: 1.5687 Mbps(3966014 bytes, 19.2887 sec)
iInChip Recv: 1.5694 Mbps(3966014 bytes, 19.2800 sec)
------------------------------------------------------------
LCP1100 핀맵
[NET-EVM] W5100 핀맵 회로도
LPC1113 W5200 테스트 드라이버 코드
#define _SPI0_ENABLE 1
//-----------------------------------------------------------------------------
// W5100 HAL
#define W5100_CS_PORT PORT0
#define W5100_CS_BIT BIT2
#define W5100_RST_PORT PORT0
#define W5100_RST_BIT BIT1
#define IINCHIP_RSToff() Cbi(W5100_RST_PORT, W5100_RST_BIT)
#define IINCHIP_RSTon() Sbi(W5100_RST_PORT, W5100_RST_BIT)
#define W5100_IO_INIT() GPIOSetDir( 0, 1, 1 );GPIOSetDir( 0, 2, 1 );
#define IINCHIP_CSoff() Cbi(W5100_CS_PORT, W5100_CS_BIT)
#define IINCHIP_CSon() Sbi(W5100_CS_PORT, W5100_CS_BIT)
#define IINCHIP_SPI_INIT() SPI0_Init()
//#define IINCHIP_SpiSendData SPI0_WriteByte
#define IINCHIP_SpiSendData SPI0_WriteReadByte
#define IINCHIP_SpiRecvData SPI0_WriteReadByte
//-----------------------------------------------------------------------------
//-----------------------------------------------------------------------------
// W5100 HAL
#define W5100_CS_PORT PORT0
#define W5100_CS_BIT BIT2
#define W5100_RST_PORT PORT0
#define W5100_RST_BIT BIT1
#define IINCHIP_RSToff() Cbi(W5100_RST_PORT, W5100_RST_BIT)
#define IINCHIP_RSTon() Sbi(W5100_RST_PORT, W5100_RST_BIT)
#define W5100_IO_INIT() GPIOSetDir( 0, 1, 1 );GPIOSetDir( 0, 2, 1 );
#define IINCHIP_CSoff() Cbi(W5100_CS_PORT, W5100_CS_BIT)
#define IINCHIP_CSon() Sbi(W5100_CS_PORT, W5100_CS_BIT)
#define IINCHIP_SPI_INIT() SPI0_Init()
//#define IINCHIP_SpiSendData SPI0_WriteByte
#define IINCHIP_SpiSendData SPI0_WriteReadByte
#define IINCHIP_SpiRecvData SPI0_WriteReadByte
//-----------------------------------------------------------------------------
반응형