Page 1 of 2
Use of Analog to Digital with AT91SAM7S
Posted: Fri Oct 22, 2004 2:42 pm
It is the first Software Package Application for the AT91SAM7S Series on AT91 Forum.
This software project is broken into four parts and contains four sub-projects with only one variant: SRAM Debug. The four steps are increasing in complexity:
Setting and start the Analog to Digital Converter for only one conversion by using software triggering,
Setting and start Analog to Digital Converter, Timer/Counter to achieve a multiple-shot conversion with an accurate sampling period,
Setting and start Analog to Digital Converter, Timer/Counter to achieve a multiple-shot conversion from four enabled channels with an accurate sampling period,
Setting and starting Analog to Digital Converter, Peripheral Data Controller, Timer/Counter peripherals to achieve a multiple-shot conversion and automatic ADC value storage.
I called this zip file with "light" adjectival in the name because there is no html any documentation in order to have the smaller file size.
Posted: Thu Jun 23, 2005 2:44 am
Should there be an attached file? I am working on some AD stuff and would like to view the code!
Posted: Fri Jun 24, 2005 10:33 am
You're right, here are two files now: the software package and a ppt presentaion from our last training to help you.
Have a nice day
Posted: Wed Mar 01, 2006 6:44 pm
[I tried to email this directly, but it bounced as 'mailbox unavailable.']
Iâ€™m both a new user of the AT91SAM7 processor, and a new member of the AT91 Forum.
Iâ€™m starting work with the ADCs, and would really like to see this sample code. I guess there should be an attachment to the post, but I canâ€™t see any way to download it. I see nothing on the page indicating attachments.
Perhaps itâ€™s just because Iâ€™m not familiar with the look and feel of the forum site, but if someone could point me in the right direction, it would be greatly appreciated!
Thanks for your time.
Posted: Thu Mar 02, 2006 12:55 pm
Here is now.
I have just posted the lost attachment
Have a nice day
ADC Interrupt Based
Posted: Sun Mar 26, 2006 12:47 am
I am just adding a bit of code to the mix. I created a project to play with ADC functionality. This project implements software triggered ADCs OR TimerCounter triggered ADCs. Control is by #define TIMER in main.c.
Debug commands through Debug UART @ 115200 N81.
Note that you can crash it by continuously sending 'q', but this is left in more as a warning for using AT91F_ADC_GetLastConvertedData.
Interrupts are utilized in both situations above, which were not previously included in the projects from France.
Good luck, and remember to post updates - especially when you find mistakes. One other thing, do not be scared by the directory names. I reuse simple "vanilla" projects over and over.
Posted: Fri Aug 04, 2006 6:07 pm
I've been trying to incorporate parts of this code into a project of mine, but it doesn't really work out.
I have a interrupt from a normal timer, which is also the sampling frequency, do i need to modify that to accomodate interrupt sampling?
What happends is that if i use the "pull status bit" from the example it never clears and i hang in the interrupt, and without it i dont seem to get any sampled values.
I've been looking at the 1st example and the multi-channel one, which seems to use interrupt based sampling, but cant really figure it out.
Any ideas or suggestions?
Posted: Tue Sep 12, 2006 3:52 pm
I've now used the PDC version which fits my project alot better, and as i understand it, it's pin 17 on the evaluation board that's AD0, right?
I've got a signal generated that i connect to the board (where should i connect the zero of the signal, gnd pin or ad1 (18)) and it's also connected to a Labview adc-box.
When i connect the signal to only the Labview box it looks fine, but if i connect it to the ev-board also, it gets noisy, but that's just the smaller problem. The big problem is that if i co connect the ev-board the signal is lost! It seems to ground the signal! Measuring pin 17 -> gnd there's approx 2,3V and no current. It measures something, since connectint pin 17 to gnd or Xvcc fills the buffer with 0 and 765 resp. What's wrong, what have i missed?
Posted: Sat Sep 16, 2006 9:28 pm
Thanks to tomcroban for helping me. I found the solution earlier in the day, but hearing it from him also made all come together.
What happened is that the ADC uses some of the signals power to get a sample, and as my sensor had a rather high output resistance (30kOhm) it basically killed the signal.
Adding a 1:1 amplifier to the signal it got enough power to be sampled and the previous problems disappeared.
TIP: ADC uses power, see to that you have enough power on signal to be sampled.
Posted: Mon Jun 11, 2007 4:43 am
hello ppl, i am new here and want to join this usergroup but am unable to....can anyone help me pls....
Re: Use of Analog to Digital with AT91SAM7S
Posted: Mon Jul 02, 2007 8:30 am
HOW TO DOWNLOAD
Posted: Wed Jan 30, 2008 3:30 pm
I don't see any button or something else to download.
Also, one project with ADC demo in this site is pwd protected. why? what is the pwd?
Posted: Fri Feb 15, 2008 8:45 am
I agree with "yossef"...
Why is the ZIP archive AT91SAM7S256-BasicADC.zip password protected ? If nobody knows the password, please delete the file from the board.
Posted: Fri Feb 15, 2008 10:40 am
where can I find the files? Do not see any link...
ADC Example Password
Posted: Mon Feb 18, 2008 10:23 pm
Does anyone know why the ADC example at Project/Controleurs/cVisualisation.php? ... sation=315
is password protected, or what the password is? It seems like a lot of people have this question, so it would be very helpful if someone could provide and answer in the forum so that everyone can read it.