Comments (4)
@dihm
Here are the number of steps the pico can store when using all available RAM:
- Single stepping on 1 channel: 19214
- Single Stepping on 4 channels: 4382
- Frequency Sweeping on 1 channel: 8918
- Frequncy Sweeping on 4 channels: 2134
*If the pico is timing itself internally it can only hold about 85% as many steps.
from dds-sweeper.
I have been able to get it working so the pico stores the table in the flash memory. That allows the pico to hold 6 times as many steps across the board.
The downside is that writing to the pico's flash is really expensive, so it takes about a quarter of a second to program EACH instruction, seems like it could be too slow to be useful. (It is so expensive because in order to write to flash you have to erase then rewrite entire 4kB blocks at a time).
Reading from the flash is not expensive though, so reading back a table from flash performs just as well as reading it back from RAM.
from dds-sweeper.
Thinking about this briefly, I wonder if we could do something like having a special table programming mode that could help with these things. When you are in this mode, the pico insists on only accepting set commands and can do some optimizations as a result.
For instance, we could have a special binary block set command for writing long tables as a single command with minimal overhead. More importantly, maybe we could have all table set commands initially to RAM, then have the pico automatically move full 4kb sized chunks to flash as needed. This may be hard to handle well since you'd need to handle writing to flash while accepting more set commands to RAM, which sounds hard. Maybe in special programming mode you could allow direct 4kb block writes to the flash? Anyway, just spit-balling ways to up the numbers in a way that is functional.
In any case, even 2000 instructions per channel is actually a lot given that includes sweeps. I'll admit that it sounds a bit far-fetched that we really need to allow for so many sweeps at a given time.
from dds-sweeper.
There are several active issues in the pico-sdk repo which might make this more feasible in the future.
raspberrypi/pico-sdk#758
raspberrypi/pico-sdk#1169
from dds-sweeper.
Related Issues (20)
- Specs HOT 1
- Single Stepping Mode HOT 1
- Phase Sweeps HOT 1
- Incomplete Down Amplitude Sweeps HOT 3
- Amplitude Changes During Frequency Sweep HOT 4
- Sweeping all 4 channels HOT 4
- Table Loopback HOT 1
- Pico Response Time HOT 1
- End Point Mode
- Pico communication freezes during buffered execution HOT 1
- General Docs HOT 1
- Phase Sweeps Broken HOT 1
- Phase Sweeps do not stop at the endpoints
- Add User Input Validation
- Switching Between Modes Causes a Communication Desync HOT 1
- add hwstart
- Accept binary data over USB serial
- change secondary parameters during a sequence of sweeps HOT 1
- Pin Layout Issue HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from dds-sweeper.