ISP1362BD NXP Semiconductors, ISP1362BD Datasheet - Page 25

no-image

ISP1362BD

Manufacturer Part Number
ISP1362BD
Description
USB Interface IC USB OTG CONTROLLER
Manufacturer
NXP Semiconductors
Datasheet

Specifications of ISP1362BD

Operating Supply Voltage
3 V to 3.6 V
Lead Free Status / Rohs Status
 Details
Other names
ISP1362BD,157

Available stocks

Company
Part Number
Manufacturer
Quantity
Price
Part Number:
ISP1362BD
Manufacturer:
NXP
Quantity:
672
Part Number:
ISP1362BD
Manufacturer:
NXP/恩智浦
Quantity:
20 000
Company:
Part Number:
ISP1362BD
Quantity:
191
Part Number:
ISP1362BDFA
Manufacturer:
STE
Quantity:
5
Part Number:
ISP1362BDFA
Manufacturer:
ST-Ericsson Inc
Quantity:
10 000
Part Number:
ISP1362BDTM
Manufacturer:
NANYA
Quantity:
1 001
Part Number:
ISP1362BDTM
Manufacturer:
ST-Ericsson Inc
Quantity:
10 000
NXP Semiconductors
ISP1362_5
Product data sheet
8.5.2 PIO access to the buffer memory by using indirect addressing
void Set_DirAddrLen(unsigned int data_length,unsigned int addr)
{
}
After the proper value is written to the HcDirectAddressLength register, data is accessible
from the HcDirectAddressData register (called as HcDirAddr_Port in the following sample
code). A sample code to write word_size bytes of data from *w_ptr to the memory
locations of the ISP1362 buffer starting from the address start_addr is as follows:
void direct_write(unsigned int *w_ptr,unsigned int start_addr,unsigned int word_size)
{
}
Direct addressing allows fast and random access to any location within the ISP1362
memory. Your program, however, needs the address location of each buffer area to
access them.
Indirect addressing is the addressing method that is compatible with NXP ISP1161
addressing mode. This method uses a unique data port for each buffer memory area
(ATL, INTL, ISTL0 and ISTL1). These four data areas share the HcTransferCounter
register that is used to indicate the number of bytes to be transferred.
A sample code to write an array at *a_ptr into the ATL memory area with word_size as the
word size is given as follows:
void write_atl(unsigned int *a_ptr, unsigned int word_size)
{
unsigned long RegData = 0;
RegData =(long)(addr&0x7FFF);
RegData|=(((long)data_length)<<16);
write_reg32(HcDirAddrLen,RegData);
unsigned int cnt = 0;
Set_DirAddrLen(word_size*2,start_addr);
outport(hc_com,HcDirAddr_Port|0x80); // hc_com is system address of
do
{
}
while(cnt<word_size);
int cnt;
write_reg16(HcTransferCnt,word_size*2);
outport(hc_com,HcATL_Port|0x80); // hc_com is system address of HC
cnt++;
outport(hc_data,*(w_ptr+cnt)); // hc_data is system address of
Rev. 05 — 8 May 2007
// HC data port
// HC command port
// command port
Single-chip USB OTG Controller
© NXP B.V. 2007. All rights reserved.
ISP1362
24 of 152

Related parts for ISP1362BD