FTDI Community

Please login or register.

Login with username, password and session length.
Advanced Search  

News:

Welcome to the FTDI Community!

Please read our Welcome Note

Technical Support enquires
please contact the team
@ FTDI Support


New Bridgetek Community is now open

Please note that we have created the Bridgetek Community to discuss all Bridgetek products e.g. EVE, MCU.

Please follow this link and create a new user account to get started.

Bridgetek Community

Show Posts

You can view here all posts made by this member. Note that you can only see posts made in areas to which you currently have access.

Messages - Ulthien

Pages: [1]
1
Discussion - Software / Re: Loading an image with FT813 issues
« on: November 15, 2018, 10:30:03 AM »
Hi,

We have a summary of how to load the data in the application note below (see pages 18 and 19 especially)

http://brtchip.com/wp-content/uploads/Support/Documentation/Application_Notes/ICs/EVE/BRT_AN_008_FT81x_Creating_a_Simple_Library_For_PIC_MCU.pdf


In the code below, you would need to take account of the circular nature of the buffer so that the data does not run beyond the end of the 4K buffer. You would also need to check the read and write pointers to ensure that there is sufficient space in the buffer. Hopefully the flow chart and sample code linked in the application note above will help.
 
Code: [Select]
   for (i = 0; i < length; i++)
   {
     ft800memWrite8(RAM_CMD + cmdOffset, img);   
      cmdOffset++;
   }

Best regards, FTDI Community

As pointed to by my collegue (pun half-intended? :P)

Code: [Select]
   for (i = 0; i < length; i++)
   {
     ft800memWrite8(RAM_CMD + cmdOffset, *img++);   
      cmdOffset++;
   }

or you are writing the same byte out whole of the loop...

Pages: [1]