Search found 4 matches

by fredb
Wed May 27, 2020 1:32 pm
Forum: Pyboard D-series
Topic: Read a binary file with a clock
Replies: 7
Views: 868

Re: Read a binary file with a clock

Here is the source code to read memory à 10KHz. I can't publish the entire source code because it doesn't belong to me. ''' Read Flash memory (S25FL128S) at 10KHz with external interrupt on PB1 (external clock) The memory already contains data ''' from pyb import Pin, SPI import machine #----- SPI t...
by fredb
Fri May 08, 2020 12:10 pm
Forum: Pyboard D-series
Topic: Read a binary file with a clock
Replies: 7
Views: 868

Re: Read a bynary file with a clock

Some news : it works ! First, the 10MB binary file is read and bytes are copied to the S25FL128S flash memory by page of 512 bytes in a single command for each page. This copy takes about 16 seconds. The next step is the reading of the flash memory. It takes 76µs for each byte. There is no latency w...
by fredb
Sat May 02, 2020 2:00 pm
Forum: Pyboard D-series
Topic: Read a binary file with a clock
Replies: 7
Views: 868

Re: Read a bynary file with a clock

Thank you for your comments. I also noticed a latency of 3.8ms every 1.2 seconds when playing my file. Finally, I will test a solution with a 16MB external flash memory accessible by SPI (S25FL128S). The size of the file I need to read is 10MB maximum, so I will read it from the sd card and copy it ...
by fredb
Fri May 01, 2020 12:20 pm
Forum: Pyboard D-series
Topic: Read a binary file with a clock
Replies: 7
Views: 868

Read a binary file with a clock

Hi, everybody, I start in this forum with a problem, but I would have preferred to come up with a solution... I spent a whole week looking for a solution before posting the following : I have a project to read the bytes of a binary file and present them on a port (port A) of Pyboard_D_SF6W. I have t...