English
Language : 

MA101 Datasheet, PDF (14/30 Pages) Megawin Technology Co., Ltd – Low-speed USB Specification version 1.1 compliance
MEGAWIN
MAKE YOU WIN
MA101
Datasheet Version 1.02
5.2.5 Port Change Report
At TWSI mode, if Port 3.4 or Port 3.7 changes, it does not generate Port Change Report. It means it will not
detect 1 on the return value at Port 3.4 or Port 3.7 on the MA101_GetPortStatus() function.
5.3 SPI Mode
5.3.1 Feature
MA101 provides SPI function as follow:
‹ Data transmitted first : LSB / MSB
‹ Fetch data on clock : Falling Edge / Rising Edge
‹ Clock Idle State : Low / High
‹ Clock Rate Parameter
5.3.2 Initial and GPIO Setting
When switch to SPI Mode, Port 1.4 is SPI MISO, initial setting is input. Port 1.5 is SPI MOSI, initial setting is
output. Port 1.7 is SPI CLK, initial setting is output.
Initial Table as follow, others unchanged:
PIN
Function Input/Output
P1.4
P1.5
P1.7
SPI_MISO
SPI_MOSI
SPI_CLK
Input
Output
Output
CMOS/NMOS
Unchanged
Unchanged
Unchanged
Pull High Resistor
Enable/Disable
Unchanged
Unchanged
Unchanged
Output Buffer
Unchanged
SPI_MOSI
SPI_CLK
User can use MA101_SetIO_T(), MA101_SetIO_M(), and MA101_SetIO_V() function call in BridgeMini.DLL
to change GPIO setting as desired. Beware that during the data transmission, it is recommend not to Set
Mode; otherwise data might be lost. Also, before any data transmission, be sure the corresponding circuit
environment is built up.
This document information is the intellectual property of Megawin Technology Co., Ltd.
© Megawin Technology Co., Ltd. 2009 All rights reserved.
page14/30