Tsev > Xov xwm > Ntsiab lus

Bridgetek BT81X (815/6) Cov Yeeb Yaj Suab Zaj Siab Kev Nyuaj Siab

May 09, 2019

Tus BT815 / 6 yog tus ntiv tes, cov yees duab nrog cov xaim xws li nram qab no:

 Quad SPI Host Interface

 Quad SPI nyem Interface

 Cov Suab Moos

 Cov Qauv Siv Tshuab

 Cov duab sib txuas RGB video

 Lub Cav

 Kov-npo yug thiab nruab nrab (Resistive = BT816 / Capacitive - BT815)

 Kev Tswj Lub Hwjchim


Lub luag haujlwm ntawm txhua lub block yog piav me ntsis hauv cov hauv qab no.


4.1 Quad SPI Host Interface

Tus BT815 / 6 siv quad serial peripheral interface (QSPI) los txuas lus nrog cov tswv tsev microcontrollers
thiab microprocessors.


4.1.1 QSPI Interface

QSPI qhev ncaj qha nruab nrab rau 30MHz. Xwb SPI hom 0 yog kev txhawb siab. Xa mus rau seem 6.4.2 rau
ntxaws txog cov caij nyoog tshwj xeeb. QSPI tuaj yeem tsim kho raws li SPI tus qhev hauv XWB, DUAL lossis QUAD
channel hom.
Los ntawm lub neej ntawd SPI qhev khiav hauj lwm hauv qhov kev sib sau ua channel nrog MOSI li cov tswv yim los ntawm tus tswv thiab
MISO raws li kev tso zis rau tus tswv. DUAL thiab QUAD channel hom tau muab kho los ntawm SPI qhev
nws tus kheej. Hloov cov hom hauv tsev, sau ntawv mus rau npe REG_SPI_WIDTH. Cov lus hauv qab no qhia txog
chaw.
image

Nrog DUAL / QUAD channel hom, SPI cov ntaub ntawv ports yog tam sim no unidirectional. Hauv cov hom no, txhua SPI
kev sib pauv (signified los ntawm CS_N mus dhia tsis tshua muaj) yuav pib nrog cov ntaub ntawv chaw nres nkoj raws li kev nkag.
Yog li, rau kev sau ntawv mus rau BT815 / 6, tus qauv yuav ua haujlwm raws li hauv FT800, nrog "WR-Command / Addr2,
Addr1, Addr0, DataX, DataY, DataZ ... "Sau cov haujlwm sau ua tiav thaum CS_N mus
tsis muaj zog.
Rau kev nyeem ntawv los ntawm BT815 / 6, cov txheej txheem yuav tseem khiav lag luam raws li hauv FT800, nrog "RD-Command / Addr2,
Addr1, Addr0, Dummy-Byte, DataX, DataY, DataZ ". Txawm li cas los xij li cov ntaub ntawv chaw nres nkoj tam sim no yog tam sim no, a
pauv cov kev taw qhia txog kev nres nkoj yuav tshwm sim ua ntej DataX teev cov tawm ntawm BT815 / 6. Yog li ntawd nws tseem ceeb
tias lub firmware tswj lub SPI tus pauv hloov SPI tus tswv yim chaw nres nkoj kev taw qhia rau "tswv yim" tom qab
kis Addr0. Tus BT815 / 6 yuav tsis hloov qhov chaw nres nkoj kev taw qhia kom txog thaum nws pib xauj tawm DataX. Yog li,
Dummy-Byte yuav tau siv ua lub sij hawm hloov thaum dhau los tsis tus thawj tswj SPI lossis tus qhev
tsav tsheb npav; cov ntaub ntawv paths yog li no yuav tsum tau rub-ups / rub-downs. SPI tus qhev ntawm BT815 / 6
yuav rov qab pib tag nrho nws cov ntaub ntawv chaw nres nkoj cov kev taw qhia rau cov tswv yim thaum CS_N mus tsis tag siab (piv txwv li ntawm qhov kawg ntawm qhov tam sim no
SPI tus tswv lag luam).
Daim duab qhia txog tus cwj pwm ntawm tus SPI master thiab tus qhev nyob hauv tus thawj nyeem ntawv nyeem.
image

Hauv DUAL channel hom, MISO (MSB) thiab MOSI siv thaum nyob hauv txoj haujlwm Channel QUAD. IO3
(MSB), IO2, MISO thiab MOSI siv.
Daim duab 4-2 qhia txog kev sib txuas lus ncaj qha mus rau 1.8-3.3V IO MPU / MCU nrog ib qho los yog dual SPI interface.
Daim duab 4-3 qhia txog kev txuas ncaj qha mus rau 1.8-3.3V IO MPU / MCU nrog Quad SPI interface.
image

image

4.1.2 Cov ntaub ntawv sau txog Serial

Lub BT815 / 6 pom rau tus tswv tsev MPU / MCU ua ib qho kev ntaus ntawv-nco hauv SPI. Tus tswv tsev txuas lus
nrog rau BT815 / 6 siv cov ntawv nyeem thiab sau rau ib qhov chaw loj (4 megabove) chaw nyob. Hauv qhov chaw nyob no
qhov chaw yog qhov chaw tshwj xeeb rau kev kos duab, suab thiab kov tswj. Xa mus rau tshooj 5 kom paub meej
nco daim ntawv qhia.
Tus tswv tsev nyeem thiab sau BT815 / 6 chaw chaw siv SPI muas. Cov kev lag luam no yog
nco nyeem, cim sau thiab sau ntawv sau. Cov ntaub ntawv sau ua ntej xa tuaj los ntawm qhov tseem ceeb tshaj plaws ua ntej.
Txhua zaus pib nrog CS_N nce qis, thiab xaus thaum CS_N mus siab. Tsis muaj kev txwv rau cov ntaub ntawv
ntev li ntawm ib lub lw, tsuav yog qhov chaw cim xeeb yog nruam.


4.1.3 Tsev Kawm Ntawv Nyeem Ntawv

Rau SPI nco nyeem muas, tus tswv tsev xa ob xoom khoom, ua raws li 22-ntsis chaw nyob. Qhov no yog
raws li ib tug byte dummy. Tom qab dummy byte, BT815 / 6 teb rau txhua tus tswv tsev byte nrog nyeem
cov ntaub ntawv bytes.

image

4.1.4 Tsev Kawm Ntawv Nco Sau

Rau SPI nco sau muas, tus tswv tsev xa ib '1' me ntsis thiab '0' ntsis, ua raws li 22-ntsis chaw nyob.
Qhov no yog ua raws li cov ntawv sau.

image

4.1.5 Tswv Cuab Yuam Kev

Thaum xa ib tug hais kom ua, tus tswv tsev xa ib 3 byte hais kom ua. Rooj Lus 4-5 Yuam Tsib Cov Taw Qhia Ua Yuam Kev!
Los siv tsis tau. teev tag nrho cov kev hais ua haujlwm khiav lag luam.
Rau SPI txib muas, tus tswv tsev xa ib '0' me ntsis thiab '1' ntsis, raws li txoj cai 6-ntsis.
Lub 2 bytes yuav yog 00h, los yog cov parameter ntawm qhov hais kom ua. Lub 3 byte yog tsau ntawm 00h.
Tag nrho SPI lus txib tshwj tsis yog lub kaw lus pib dua tuaj yeem raug sau tseg thaum SPI yog nyob rau hauv Channel nkaus xwb
hom. Lawv yuav tsum tau ignored thaum SPI nyob hauv Dual los yog Quad channel hom.
Qee cov lus txib siv los txhim kho cov cuab yeej thiab cov teeb meem no yuav pib dua thaum tau txais
SPI PWRDOWN hais kom ua, tsuas yog cov uas khij nyiab lub xeev thaum lub zog lawm. Cov no
commands yuav nplaum tshwj tsis yog rov ua kom tiav lossis siv zog-rau-pib dua (POR).

image

image

image

image

image

image

image

image

image

image

image

Lus Cim: Tej cai hais kom ua tsis raws kev teev tseg yog tshwj tseg thiab yuav tsum tsis txhob siv los ntawm lub software.