Hardware peripherals in Win CE

This forum is for users of Atmel's SAM Series and who are interested in using WinCE OS.

Moderator: nferre

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

Hardware peripherals in Win CE

Fri Feb 09, 2007 3:55 am

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?
Adeneo
Contact:
Location: France - USA
Posts: 183
Joined: Fri May 14, 2004 9:58 am

How starting in Windows CE

Thu Feb 15, 2007 3:48 pm

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
t.sneider
Location: Germany
Posts: 4
Joined: Fri Mar 09, 2007 2:39 pm

Thu Mar 29, 2007 12:21 pm

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.
Adeneo
Contact:
Location: France - USA
Posts: 183
Joined: Fri May 14, 2004 9:58 am

Fri Mar 30, 2007 10:43 am

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.
shankar_tgode
Contact:
Location: coimbatore
Posts: 32
Joined: Wed Apr 18, 2007 6:35 am

tranning need for wince

Mon Apr 28, 2008 10:15 am

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
Adeneo
Contact:
Location: France - USA
Posts: 183
Joined: Fri May 14, 2004 9:58 am

Mon May 05, 2008 8:16 am

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

Return to “WinCE”

Who is online

Users browsing this forum: No registered users and 1 guest