BRT Community

Please login or register.

Login with username, password and session length
Advanced search  

News:

Welcome to the Bridgetek Community!

Please read our Welcome Note

Technical Support enquires
please contact the team
@ Bridgetek Support

Please refer to our website for detailed information on all our products - Bridgetek - Bridging Technology

Author Topic: REG_CMDB_WRITE bulk transfer  (Read 8292 times)

FocusPaul

  • Newbie
  • *
  • Posts: 2
    • View Profile
REG_CMDB_WRITE bulk transfer
« on: August 09, 2021, 01:34:01 PM »

Hello!

I've used EVE 1 and 2 in projects before. Now I'd like to take advantage of REG_CMDB_WRITE command.

If understood correctly, REG_CMDB_WRITE takes one 32-bit command. Do I have to send a total of 7 bytes (3 byte address + 4 byte data) over SPI per 32 bit display list command?
Or is there a way to send multiple commands at once as a real bulk transfer? Something like: 3 byte address -> 32 bit command -> 32 bit command -> 32 bit command ...

The address overhead seems to high when sending big amounts of data.

Best regards,
Paul
Logged

Rudolph

  • Sr. Member
  • ****
  • Posts: 391
    • View Profile
Re: REG_CMDB_WRITE bulk transfer
« Reply #1 on: August 09, 2021, 04:26:42 PM »

You can send as many bytes as you like after the initial address, the limit is only in where you write to.
So in this case when writing to REG_CMDB_WRITE the limit would be obviously 4k for the size of the FIFO after which at least caution is advised.

Take a peak at my implementation: https://github.com/RudolphRiedel/FT800-FT813

Logged

FocusPaul

  • Newbie
  • *
  • Posts: 2
    • View Profile
Re: REG_CMDB_WRITE bulk transfer
« Reply #2 on: August 10, 2021, 01:31:13 PM »

Hello Rudolph,

thank you for the link. Found it in EVE_start_cmd_burst(). Actually, it's not very clear to me reading the manual that it is working that way.

That's making life a lot easier now, because I don't have to keep track of the write position in FIFO buffer anymore.

Best regards,
Paul
Logged

BRT Community

  • Administrator
  • Hero Member
  • *****
  • Posts: 743
    • View Profile
Re: REG_CMDB_WRITE bulk transfer
« Reply #3 on: August 10, 2021, 04:51:12 PM »

Hi Paul,

Yes, you can also use burst writes on other areas of memory too as Rudolph mentioned (e.g. to write image data to RAM_G) which helps to speed this up a lot,

Best Regards, BRT Community
Logged