Sigma Delta doesn't work with my SX28AC chip. , Thanks
hi,
I am using the SX28ACDP chip and the
8-bit Sigma-Delta Analog to Digital Converter source code
from Parallax :
http://www.parallax.com/Portals/0/Downloads/docs/prod/sx/8bitAdc.zip
I am using the 50mhz resonator from Parallax too .
But the source code doesn't work.
I would like to know if you have an other source code
because this one is not working.
Thanks, Mark
I am using the SX28ACDP chip and the
8-bit Sigma-Delta Analog to Digital Converter source code
from Parallax :
http://www.parallax.com/Portals/0/Downloads/docs/prod/sx/8bitAdc.zip
I am using the 50mhz resonator from Parallax too .
But the source code doesn't work.
I would like to know if you have an other source code
because this one is not working.
Thanks, Mark
Comments
How do you have it wired?
Do you know what in the code is not working?
Is this your first project with the SX? Are you using a Parallax dev board or your own circuit?
Thanks,
PeterM
Post Edited (PJMonty) : 9/3/2008 7:01:18 PM GMT
Answering Peter :
yes , resonator is set up correctly in the declarations.
I used the Parallax develop. board .
I don't know where is the problem.
I think that Parallax could use the source code before
posting, perhaps is too old.
Any idea?
Thanks, Mark
Still curious if this is your first SX project. In other words, do you have experience getting the SX dev board to work in your projects doing things like programming, debugging, etc.
Also, you never specified what you mean when you say the "source isn't working." That's a bit like taking your car to the mechanic, saying "It's broken," and expecting him to figure out what part is broken. Do you mean the code won't assemble? Won't program into the chip? Have you gone into the debugger and tried single stepping to see what is happening? The SX-Key and IDe provide a powerful development environment which lets you set breakpoints, single step, see register values, etc. Have you taken advantage of any of this to track down the problem?
Thanks,
PeterM
Thanks for the support.
The problem is that the new USB SX-Key doesn't work
like the older Serial SX-key.
Please try to use the USB SX-Key with the
8-bit Sigma-Delta Analog to Digital Converter source code
from Parallax :
http://www.parallax.com/Portals/0/Downloads/docs/prod/sx/8bitAdc.zip
and you will see that there are 3 problems there.
I have attached 2 pictures ( in yellow you can see the problems).
I Think that using the pictures I can explain my self better.
Thanks, Markus
First, by attaching those JPEGs you have finally let me and everyone else know what sort of problem you are having. The next time you post a problem to this forum, make sure you specify any error messages you are getting from the IDE so folks have a clue without wasting a lot of time. Also, if it's a software problem where the code won't assemble, then say in your post something like, "I am trying to assemble the attached code and I get a lot of error messages. They are (list the errors). I have attached the source code as well. Can someone please help me figure out the problem?" That is a simple request for help that prevents folks from wasting time chasing down random guesses as to what problem you are having.
Second, both problems you highlighted in the JPEGS are assembly issues, not SX-Key issues. You could attach your old serial SX-Key to the same version of the IDE and it wouldn't work either. What version of the software are you running your serial key with?
The first problem is that the code was written to handle all flavors of SX chips as well as both the Parallax and SASM assemblers. However, the code is going to the Parallax assembler area even though you're using SASM. The easiest way to fix this is to convert the line that says:
to instead read:
Note that there are two underscores in front of "SASM".
The second problem is that the code is missing a label to tell the assembler where to start running when the chip first starts. There should be a label called "reset_entry" but it's not there. This is trickier to fix without seeing the code, so post the code here and let me see what's going on with it.
Thanks,
PeterM
No problem I will post the pictures and I will add more accuracy.
Ok, I made the changes you suggest and other problems appear.
After that I solved these problems but I have some problems yet.
I am using the SXKey 3.2.3 version.
I am attaching two new pictures again.
Many thanks for your support PererM
Mark.
Both of those are warnings (not errors) which can be ignored. Look on page 85 of the SX-Key users manual PDF file for the answer to both of your questions. You can also look in the FAQ which is present at the top of the forum in a "sticky" message. You'll find more detail on the second warning message in the FAQ.
Thanks,
PeterM