DataSheet.es    


PDF CH376 Data sheet ( Hoja de datos )

Número de pieza CH376
Descripción file manage control chip
Fabricantes ETC 
Logotipo ETC Logotipo



Hay una vista previa y un enlace de descarga de CH376 (archivo pdf) en la parte inferior de esta página.


Total 31 Páginas

No Preview Available ! CH376 Hoja de datos, Descripción, Manual

The DataSheet of CH376 (the first)
1
File manage and control chip CH376
English DataSheet
Version: 1
http://wch.cn
http://wch-ic.com
1. Introduction
CH376 is used as file manage control chip, used to MCU system read/write file in USB Flash Drive or
SD card.
CH376 supports USB-Device Mode and USB-HOST Mode. Set the basic firmware of USB
communication protocol in the inner. It is also set firmware of special communication protocol to deal with
Mass-Storage devices, communication interface firmware of SD card, FAT16, FAT32 and FAT12 file system
manage firmware in the inner. It supports common USB storage devices (contains USB Flash Drive/USB
hard disk/USB Flash memory/USB read card) and SD cards (contain SD card with standard capacity and
HC-SD card with high capacity, MMC card and TF card compatible with protocol).
CH376 supports three communication interfaces: 8-bit parallel, SPI interface or asynchronism serial
interface. DSP/MCU/MPU etc. controller via the any interface of them to control CH376 chip, storage and
get file in USB Flash Drive or SD card, or communication with computer.
The USB-DEVICE Mode of CH376 is totally compatible with CH372, the USB-HOST Mode of
CH375 is basically compatible with CH375.
The following is the application image of CH376.
D0-D7
Local
Controller
DSP
MCU
MPU
Etc.
A0
RD#
WR#
PCS#
Parallel bus
SCS
SCK
MOSI => SDI
MISO <= SDO
SPI bus
TXD => RXD
RXD <= TXD
UART
INT#
8-bit
passive
parallel
USB-Phy I/O
USB-Device
USB-Host
File system
Manage firmware
SPI
Device
interface
USB firmware
ROM RAM
High-speed MCU
asynchronism
serial
SD card port
SPI Host
CH376 chip
D+
D-
USB Bus
PC or USB device:
USB flash memory
USB Flash Drive
/USB reader USB
printer
USB keyboard
USB mice
SDCS
SDCK
SDDO
SDDI
SPI
port
SD card and
protocol compatible
card:
MMC
Mini-SD
TF card
2. Features
Supports 1.5Mbps low-speed and 12Mbps full-speed, compatible with USB V2.0, only needs crystal and
http://www.Datasheet4U.com

1 page




CH376 pdf
The DataSheet of CH376 (the first)
5
about USB-DEVICE, the CH372DS1.PDF is the reference data.
Code Command name
Input data
Output data
Functions
Obtain chip and
01H GET_IC_VER
Version number
firmware version
number
02H SET_BAUDRATE
Detach freq coef
Detach freq const
(Wait for 1mS)
Operation status
Set serial
communication baud
rate
03H ENTER_SLEEP
Go to low-power and
suspending
05H RESET_ALL
(Wait for 35mS) Execute hardware reset
Complementary Test communication
06H CHECK_EXIST
Any data
operation
interface and working
accord bit
status
0BH SET_SD0_INT
Data 16H
Interrupt Mode
Set interrupt Mode of
SD0 in SPI
0CH GET_FILE_SIZE
Data 68H
File length (4)
Get the current file
length
15H SET_USB_MODE
Mode code
(Wait for 10uS) Configure the work
Operation status
mode of USB
22H GET_STATUS
Interruption
status
Get interruption status
and cancel requirement
27H RD_USB_DATA0
Data length
Data stream (n)
Read data from current
interrupt port buffer of
USB or receive buffer of
host port
2CH WR_USB_DATA
Data length
Data stream (n)
Write data to transfer
buffer of USB host
2DH WR_REQ_DATA
Data stream (n)
Data length
Write requested data
block to internal
appointed buffer
2EH WR_OFS_DATA
Excursion address
Data length
Data stream (n)
Write data block to
internal buffer with
appointed excursion
address
2FH SET_FILE_NAME Character string (n)
Set the file name which
will be operated
30H DISK_CONNECT
Produce
interruption
Check the disk
connection status
31H DISK_MOUNT
Produce
interruption
Initialize disk and test
disk ready
32H FILE_OPEN
Produce
interruption
Open file or catalog,
enumerate file and
catalog

5 Page





CH376 arduino
The DataSheet of CH376 (the first)
11
5.14. CMD_WR_OFS_DATA
The command means writing data block to internal buffer with appointed excursion address. The first
input data is excursion address (the beginning address of internal buffer adds excursion address is the start
address), and the following data is length of data block, i.e. the byte number of following data stream. the
data block virtual value is from 0 to 32, and the sum of excursion address adds data block length is less than
32. If the length is not Zero, MCU reads following data one by one from CH376.
5.15. CMD_SET_FILE_NAME
The command used to set file name or directory name. The input data with 0 as end, and the length is
less than 14 characters. For the file with many sub-directory, decompose as many sub-directory and one file
name, set name by many times and open from the root directory. When open file is error, return to the root
directory to open again.
The manner of file name is the same with short file name in DOS system, no need disk symbol and
colon. The /is equal with \, /is recommended. All the characters are capital letter, number or Chinese,
and some special symbol. The length is less than 11 characters, the main file name is no more than 8
characters, and the expend file name is no more than 3 characters. If there is expend file name, use decimal
to distinguish. Consult EXAM11.
No character in string (the end character is 0, the following is the same), initialize file system, open no
file;
Only one /or \, open root directory;
The first character is /or \, and the following is file name, file in root directory;
File name as character, means file in current directory.
For example, for FILENAME.EXT in root directory, use /FILENAME.EXT\0to set, 14 characters in
totally, \0means 0 by C language, as end character./means in root directory. Use \\as root directory in
C language.
Another, the file has three sub-directory \YEAR2004\MONTH05.NEW\DATE18\ADC.TXT, open as
following:
use /YEAR2004\0to set file name (directory name), use CMD_FILE_OPEN to open the first
directory;
use MONTH05.NEW\0to set file name (directory name), use CMD_FILE_OPEN to open the
second directory;
use DATE18\0to set file name (directory name), use CMD_FILE_OPEN to open the third
directory;
use ADC.TXT\0to set file name (directory name), use CMD_FILE_OPEN to open the final file;
5.16. CMD_DISK_CONNECT
The command can examine disk ready or not, doesnt support SD card. In USB-HOST mode, the
command can query the disk connection at any time, after finish the command CH376 request interrupt to
MCU, if the operation state is USB_INT_SUCCESS, means the disk or USB device is connected.
5.17. CMD_DISK_MOUNT
The command initializes disk and test disk ready or not.. For attached USB storage device or SD card,
use this command to initialize, then execute file operation. Execute many initialization for some USB
storage device, they can return USB_INT_SUCCESS. During file operation, the command can test disk
ready or not at any time.
Execute CMD_DISK_MOUNT at the first time, if the interrupt statue is USB_INT_SUCCESS, use

11 Page







PáginasTotal 31 Páginas
PDF Descargar[ Datasheet CH376.PDF ]




Hoja de datos destacado

Número de piezaDescripciónFabricantes
CH372USB bus interface chipQin Heng Electronics
Qin Heng Electronics
CH374USB bus interface chipETC
ETC
CH374USB bus interface chipETC
ETC
CH375USB Bus Interface ChipETC
ETC

Número de piezaDescripciónFabricantes
SLA6805M

High Voltage 3 phase Motor Driver IC.

Sanken
Sanken
SDC1742

12- and 14-Bit Hybrid Synchro / Resolver-to-Digital Converters.

Analog Devices
Analog Devices


DataSheet.es es una pagina web que funciona como un repositorio de manuales o hoja de datos de muchos de los productos más populares,
permitiéndote verlos en linea o descargarlos en PDF.


DataSheet.es    |   2020   |  Privacy Policy  |  Contacto  |  Buscar