Glomation
 
Advanced Search
Welcome, Guest. Please login or register.

Login with username, password and session length
May 22, 2012, 02:42:10 AM
News: Welcome to GLomation peer support forum
Pages: [1]
Topic Tools  
Read February 14, 2010, 01:38:21 PM #0
tom

ADC and PWM access

Can anyone explain how to access the I/O relating to the ADC inputs or PWM outputs? I can get the GPIO working and change the state of some pins, but am unsure how to enable pins that have different functions other than being general input/output pins.
 
Read February 15, 2010, 09:46:52 AM #1
brady

Re: ADC and PWM access

For a simple test program (user space), use mmap (addresses of the relevant registers are in AT91SAM9260.h, download from somewhere) and just change the register values.

Read all of the manuals (preferably several times).  MCU manual is here: http://www.atmel.com/dyn/resources/prod_documents/doc6221.pdf.

Read every single forum post (there are only like 6 pages, it won't take that long).  Basically every question has already been asked and answered here.

To get various peripherals working you will likely need to make sure the correct one has access to the pins via the parallel input/output controller and also has power via the power management controller.

To get anything useful done, I would suggest reading the book "Linux Device Drivers," available (I think) for free online somewhere.
 
Read February 16, 2010, 09:41:23 AM #2
admin

Re: ADC and PWM access

There is a ADC driver posted here, http://www.at91.com/forum/viewtopic.php/f,12/t,4992/sid,0179ccba0dd9091b83a5b89937124126/.  Not sure if it works or not but at least gives a starting point.
 
Pages: [1]
Jump to:  

Theme Update by Runic Warrior Originally created by m3talc0re