PDA

View Full Version : Fast data passing between Plug-a-pod and Data Ram


dfitz
03-25-08, 10:52 PM
Hi guys,

Been coding up a storm, and I've actually managed to fill up the program memory on the plug a pod (flash not ram)... it;s a pretty massive program and quite funky.. anyway.... onto my question...

I have 2:
1) because my program's quite large now and lots of control etc happening.. i'm wanting to do my hardcore gyro filtering on a second plug-a-pod board then transfer the data across to the other board. I want to be able to run the filtering very fast, and obtain a velocity estimate and send this to the other board to use. My requirements are that there will be 2 velocities that need to be sent, each in a range from 0->360 with 0.01 resolution (36000 data points reqd), and the faster the better. I'm thinking something along the lines of 120 hz.
I'm wanting to know what you guys think is the best way to get the data across. My thinking is perhaps using, pwm, serial, pe ports, or simply output/input an analog signal. Some issues are though that: i'm already using the rs232 for comms, using pe6/7 for control to a camera, i have a h-bridge board, so i think that's using up some PWM channel.
What so do you think will be the best thing to do?

2) I'm interested in how to better use the large amount of data flash that's available. I've read through the forums and different info such as http://www.newmicros.com/isopod/appnotes/Data_flash_storing.pdf
but it seems like a pretty roundabout way to do it.
I was wondering if there are any supported words or functions or anything that can allow a user such as myself to use this available memory for storing variables, but being able to access it in a similar way to the program memory.
so in my code you could just have a data memory variable or something, and fetch and save data a different way, such as
data_var_name d_@
data_var_name d_!
data_var_name d_F@
data_var_name d_F!
data_var_name d_D@
data_var_name d_D!
these commands would get/put data from/to the particular stack (normal, float, double).
Any plans to implement something like this, so people can use this data space??

thanks again.
Daniel

ddlawrence
04-22-09, 11:17 PM
Hi Dan. I can't help you much, but your application sounds interesting.
What is it? Also, roughly, how much code can you stuff into a 'Pod?

later.........don