Atmel website | ARM Community | AVR freaks | Technical Support
Banner
 FAQ •  Search •  Register •  Login 

All times are UTC + 1 hour [ DST ]




Post new topic Reply to topic  [ 6 posts ] 
Author Message
 Post subject: Hardware peripherals in Win CE
PostPosted: Fri Feb 09, 2007 3:55 am 
Offline

Joined: Fri Feb 09, 2007 2:50 am
Posts: 1
Location: Australia
Hi guys

I have just started with the 9260 & Win CE and I can’t seem to find much info on accessing the cpu peripherals like the PIO’s SPI ADC etc. Now I basically know that you have to lookup the memory map in the data sheet then map it and use it that way.

So if I wanted to play with the PB3, PB4 & LED on the dev kit what is the easiest way to do this?

Will this cause problems with Win CE i.e if I am running an ap which is playing with IO and then it tries to use that IO for some background task this will obviously turn bad real quick. How do I avoid this?

Then how do I go from toggling leds and reading button to something a little more involved, say controlling a device on the spi or reading from the image sensor interface? Should I be looking at writing a Win CE device driver?

Many thanks
:)

p.s i know of the msdn embedded site & newsgroup but are there any other good resources out there for Atmel ARM & Win CE?


Top
 Profile  
 
 Post subject: How starting in Windows CE
PostPosted: Thu Feb 15, 2007 3:48 pm 
Offline

Joined: Fri May 14, 2004 9:58 am
Posts: 183
Location: France - USA
The easiest way to start in Windows CE with the SAM9261EK board is to made a little project to control a LED and a button. So you will need the SAM9260 datasheet and the 9260EK schematic to doing that (you can found this document on at91.com).

For help you to begin and understand the basic function, you can found an attachement which contain a little Platform Builder project that you can add to your Pbworkspace. This project will show you basic mecanism (switch on a led by driving PIO controller, using interrupt system).

Pierre for Adeneo.

---------------------
http://www.adeneo-embedded.com


Top
 Profile  
 
 Post subject:
PostPosted: Thu Mar 29, 2007 12:21 pm 
Offline

Joined: Fri Mar 09, 2007 2:39 pm
Posts: 4
Location: Germany
Hello,

I'm at the same point now. Just want to toggle a simple LED on the board.
Where can I find thist attachment.
Is there any open source available?
Can you give me a link?

Thanks.


Top
 Profile  
 
 Post subject:
PostPosted: Fri Mar 30, 2007 10:43 am 
Offline

Joined: Fri May 14, 2004 9:58 am
Posts: 183
Location: France - USA
The new at91.com forum can't permit you to attach a file.

PHYSICAL_ADDRESS PhysAddr;
AT91PS_PIO g_pPIO;

// Get the virtual address of the PIOA
PhysAddr.LowPart = (DWORD) AT91C_BASE_PIOA;
PhysAddr.HighPart = 0;
g_pPIO = (AT91PS_PIO) MmMapIoSpace(PhysAddr,sizeof(AT91S_PIO),FALSE);

// Configure the PIOA6
g_pPIO->PIO_PER = AT91C_PIO_PA6;
g_pPIO->PIO_OER = AT91C_PIO_PA6;

// Switch off the Led by setting PA6
g_pPIO->PIO_SODR = AT91C_PIO_PA6;

// Switch on the Led by clearing PA7
g_pPIO->PIO_CODR = AT91C_PIO_PA6;

MmUnmapIoSpace(g_pPIO,sizeof(AT91S_PIO));

Be careful, with windows CE 6.0, you can't use the function MmMapIoSpace in a user application due to protection access to kernel memory section.


Top
 Profile  
 
 Post subject: tranning need for wince
PostPosted: Mon Apr 28, 2008 10:15 am 
Offline

Joined: Wed Apr 18, 2007 6:35 am
Posts: 32
Location: coimbatore
hai guys !
we planned to use WINCE os + AT91SAM9263 for ur medical applications .
We need tranning on wince + bsps + vc++ .
TRANNING location :BANGaLORE . ANY TRANNING CENTRE
plz mail us or reply .

SHANKAR
invent@pricol.co.in


Top
 Profile  
 
 Post subject:
PostPosted: Mon May 05, 2008 8:16 am 
Offline

Joined: Fri May 14, 2004 9:58 am
Posts: 183
Location: France - USA
Hello,

We use this forum to answer technical questions. If you need any marketing information please ask our commercial team at the following address: contact.msembedded@adeneo.eu.

We'll forward directly your request to them this time, but in the future it'll be quicker if you contact them directly.

Kind Regards,
Adeneo


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 6 posts ] 

All times are UTC + 1 hour [ DST ]


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to: