MAX3420 -usb资料
USB Peripheral Controllerwith SPI InterfaceMAX3420E
pending (Figure 10). Set the POSINT bit in the PINCTL(R17) register to make INT active high, and clear thePOSINT bit to make INT active low.
GPIN3–GPIN0, GPOUT3–GPOUT0 and GPX
The MAX3420E has four general-purpose inputs(GPIN3–GPIN0), four general-purpose outputs(GPOUT3–GPOUT0), and a multiplexed output pin(GPX). GPIN3 through GPIN0 all have weak internalpullup resistors to VL. These inputs can be read bysampling bits 7 through 4 of the IOPINS (R20) register.Writing to GPIN3 through GPIN0 has no effect.GPOUT3 through GPOUT0 are the general-purposeoutputs. Update these outputs by writing to bits 3through 0 of the IOPINS (R20) register. GPOUT3–GPOUT0 logic levels are referenced to the voltage onVL. As shown in Figure 11, reading the state of aGPOUT3–GPOUT0 bit returns the state of the internalregister bit, not the actual pin state. This is useful fordoing read-modify-write operations to an output pin(such as blinking an LED), since the load on the outputpin does not affect the register logic state.
GPX is a push-pull output with a 4-way multiplexer thatselectsits output signal. The logic level on GPX is refer-enced to VL. The SPI master writes to the GPXB and
GPXA bits of PINCTL (R17) register to select one of fourinternal signals as depicted in Table 3.
OPERATE:This signal goes high when theMAX3420E is able to operate after a power-up orRESreset. OPERATE is the default GPX output. VBUS_DET:VBUS_DET is the VBCOMP comparatoroutput. This allows the user to directly monitor theVBUSstatus.
BUSACT:USB BUS activity signal (active-high).This signal is active whenever there is traffic onthe USB bus. The BUSACT signal is set whenevera SYNC field is detected. BUSACT goes low duringbus reset or after 32-bit times of J-state.
SOF:A square wave with a positive edge that indicates the USB start-of-frame (Figure 12).
MOSI (Master-Out, Slave-In) and
MISO (Master-In, Slave-Out)
The SPI data pins MOSI and MISO operate differentlydepending on the setting of a register bit called FDUPSPI(full-duplex SPI). Figure 13 shows the two configurationsaccording to the FDUPSPI bit setting.
14______________________________________________________________________________________
Connect load capacitors (20pF max) to ground on both XI and XO. XI can also be driven with an external 12MHz ±0.25% clock. If driving XI with...
Connect load capacitors (20pF max) to ground on both XI and XO. XI can also be driven with an external 12MHz ±0.25% clock. If driving XI with...
热门文档