Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 8013

SDK • Re: HSTX help to configure for 8-bit parallel transfer

$
0
0
I think the other example (hstx_spi_lcd https://github.com/raspberrypi/pico-exa ... _spi_lcd.c ) is a better point to start.

Extend the number of data bits (first to 2, then 4), remove the external clock signal, finally extend to 8 bits and you have it.

Bit registers contains multiple fields which must be defined
(not just hstx_ctrl_hw->bit[lane]=lane; )

Code:

    hstx_ctrl_hw->bit[PIN_DIN - FIRST_HSTX_PIN] =        (7u << HSTX_CTRL_BIT0_SEL_P_LSB) |        (7u << HSTX_CTRL_BIT0_SEL_N_LSB);
The same with CSR, N_SHIFTS and SHIFT.

Statistics: Posted by gmx — Sat Oct 05, 2024 5:39 am



Viewing all articles
Browse latest Browse all 8013

Trending Articles