<<< Previous topic - Next topic >>> |
|
Author |
Message |
Nic
Joined: 26 Jun 2012 Posts: 2
|
Posted: 26.06.2012, 15:31 Post subject: Memory mapping problem |
|
|
Hi. My name is Nicola.I'm working with a DNP 9200 rev2 card but I have problems with the memory mapping addresses that do not correspond to the ATMEL free use library available. In principle, addressing PORT A I can control the PORT C of my DNP/SK25 demo kit and anyway I cannot operate with the SPI port.
Can someone help me?
My project is written in C.
I'm using the registers definitions (from atmel files),I map the registars to physical memory, I start the cpu & peripheral clock, than I start the SPI interface clock and I
try to write data to the peripheral, without any response.
Can someone help me?
I cal send the code to give a look to my prjoject .
Bye.
Nicola |
|
Back to top |
|
|
hne
Joined: 11 Jul 2008 Posts: 210 Location: Hannover
|
Posted: 26.06.2012, 16:31 Post subject: |
|
|
Please have a look into cdrom from SSV, directory /Linux/demos/DNP9200/spi_adc/AT91spi_adc_ch0/. The file "AT91spi_adc_ch0.c" is a complete example how to use SPI.
On which pins do you have connected the SPI lines? _________________ Henry Nestler |
|
Back to top |
|
|
|