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? )
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...