Tsev > Xov xwm > Ntsiab lus

FTDI HAL Raws Kev Ncig Tebchaws - FT80x Mus Rau FT81x

Apr 26, 2019

4 FTDI HAL raws txoj kev tsiv - FT80x rau FT81x

Cov tswv yim txheej txheem ntawm cov lus qhia nyob hauv Phaj 3 yog tsim rau cov neeg siv uas tab tom xyaum

lawv tus kheej cov ntaub ntawv.

Lub website FTDI muaj ntau yam qauv uas tau hloov tshiab los txhawb cov FT81x hauv

Ntxiv rau qhov tseem yuav yug rau FT80x. Thov saib cov kev kuaj mob nrog (+ EVE2).

http://www.ftdichip.com/Support/SoftwareExamples/FT800_Projects.htm

Cov piv txwv no siv cov #defines FT_80X_ENABLE thiab FT_81X_ENABLE thiaj li pab txhawb nqa ob qho tib si

cov tsev neeg hauv tib qho ntaub ntawv. Cov kev txhais no yog siv thoob plaws hauv lub ntsiab ntawm daim ntawv teev npe thiab

txhawb c thiab header files.

Los ua kom yooj yim rau kev xaiv, cov kev cai no txhais tau yauv los ntawm ib qho chaw hu ua platform.h twg

yog tam sim no nyob rau hauv txhua qhov ntawm qhov kev pab cuam qhov project demo. Cov ntaub ntawv no muaj cov txheej txheem ntau los siv los xaiv

hom ntawm lub rooj tsavxwm, cov npo loj thiab cov tswv lag luam. Cov hauv nyeg pab cuam tshuam txog kev ua haujlwm

thoob plaws hauv qhov seem ntawm txoj cai.

Thov saib cov qauv ntawm cov qauv ntawm qhov txuas saum toj no thiab tseem muaj cov kev qhia ua ke nrog

rau cov lus qhia ntxiv.

EVE Platform Guide


5 Cov lus pom zoo rau kev ua tau zoo dua

Cov seem hauv qab no qhia txog qee txoj hauv kev uas FT81x tus yam ntxwv siv tau

txhim kho kev ua tau zoo thiab / los yog txo cov haujlwm workload ntawm tus tswv tsev MCU.

5.1 Cov npe sau npe rau kev ua tiav FIFO

Tshem tawm haujlwm ntawm MCU rau kev kos thaj chaw dawb hauv qhov tsis tuaj yeem, FT81x muaj

ob lub koomhaum pabcuam "REG_CMDB_SPACE" thiab "REG_CMDB_WRITE" rau kev hloov tsheb. Nws

ua rau MCU sau cov commands thiab cov ntaub ntawv rau lub tshuab ua ke hauv ib qho kev hloov, yam tsis muaj

xam cov chaw dawb nyob hauv qhov tsis tuaj yeem thiab nce qhov chaw nyob. Ntev npaum li tus nqi

ntawm cov ntaub ntawv muab xa mus yog tsawg tshaj li tus nqi hauv lub npe "REG_CMDB_SPACE", MCU yog

tau sau cov ntaub ntawv kom tiav rau "REG_CMDB_WRITE" hauv ib qho kev sau ntawv hloov.

5.2 Media FIFO rau duab decompression

CMD_MEDIAFIFO hais kom siv los tsim ib qhov streaming media FIFO hauv RAM_G.

image

5.3 VERTEX_FORMAT rau cov lus qhia pixel / subpixel vertex

Lub FT81x muaj kev txhawb rau kev teeb tsa hom vertex. Lub hom phiaj ntawm kev siv vertex_format yog

teeb tsa qhov kev txiav txim siab ntawm VERTEX2F. Precisions ntawm 1, 1/2, 1/4, 1/8 thiab 1/16 tuaj yeem xaiv.

image

Cov ntsiab lus graphics

Tus nqi ntawm frac yog ib qho ntawm cov ntsiab lus teb


5.4 VERTEX_TRANSLATE_X thiab VERTEX_TRANSLATE_Y

VERTEX_TRANSLATE lus txib ntxiv rau yooj yim zog ntawm ib txheej khoom. Cov no

commands tso cai txhais lus ntawm tag nrho cov kev poob ntawm primitives / widgets.

VERTEX_TRANSLATE_X yog siv los qhia cov kev hloov xiv hloov X txhais lus. Lub

hais kom ua raws li nram no:

image

Tus VERTEX_TRANSLATE_Y siv los qhia meej txog cov vertex transformation Y txhais lus. Lub

hais kom ua raws li nram no:

image

5.5 CMD_SETFONT2 kom yooj yim muab xam qhov chaw nyob

Hauv FT80x, CMD_SETFONT tau siv los tso npe rau ib qho kev cai sau tseg bitmap font mus rau hauv lub tshuab kev sib txuas. Nyob rau hauv FT81x, CMD_SETFONT2, ib tug tshiab co-processor hais kom ua, ntxiv rau teeb a

kev cai font. Siv lub cim kev cai nrog cov khoom siv ua haujlwm, tsim cov qauv txhais hauv

RAM_G thiab qhov teeb meem CMD_SETFONT2, raws li tau piav qhia hauv seem 5.5 ntawm FT81x Programmers Guide

image

image

5.6 CMD_SETBITMAP co-processor hais kom ua

Qhov lus txib no ua kom yooj yim ntawm kev siv bitmap siv txheej txheej ntawm GPU cov lus qhia.

Nws yuav ua kom pom cov lus sau npe ntawm cov lus (BITMAP_SOURCE \ BITMAP_LAYOUT \

BITMAP_SIZE) rau cov ntaub ntawv muab bitmap, sparing lub dag zog ntawm kev sau cov duab sau

manually.

Lub lim / wrapx / writ hauv BITAMP_SIZE yeej ib txwm teev rau NEAREST / CEEV /

CEEB TOOM nqe hauv cov zaub sau generated commands.


image

Piv txwv

NA

Lus Cim: Ob lub bytes yuav tsum tau ntxiv tom qab kawg parameter muab 4 bytes kev ua tiav raws li

yuav tsum tau los ntawm cov tshuab ua haujlwm