MCF52233 low cost demo board queries

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

MCF52233 low cost demo board queries

1,599 Views
hiten
Contributor I
Hi all, im a newbie to these processors, and processors in general.  I have the MCF52233 low cost demo board and im planning using C code to write my program.  I need to write a program to use the switches, pot and LEDs on the board.  What directories do i have to include and what control functions do i have to use to read from the switchs/pot and write to the LEDs?  ANy help will be grealty appreciated! Thanks...
Labels (1)
0 Kudos
3 Replies

324 Views
Marcia
Contributor I
Hi Hiten,
 
Did you consider using the ColdFire initialization program, CFInit available from www.microapl.co.uk
 
This would initialize the peripherals for you, and then you'd just need to read and write from the data registers.
 
Good luck
 
Marcia
0 Kudos

324 Views
J2MEJediMaster
Specialist I
If you got the board as part of a Freescale deal, then it may have come with the CodeWarrior Developer tools on CD. If so, there are some example programs included along with the tools that typically demonstrate how to write to the board's LEDs. I'm not certain this is the case with the Coldfire tools, but it's worth a shot if you've got the CD.

---Tom
0 Kudos

324 Views
Kremer
Contributor I
 Also, they key switches are linked t external interrupts on the board. Take a read on the MCF52235RM manual to learn about IRQ´s.
 Try the Coldfire_Lite demo provided on the freescale website to run a complete tcp/ip demo, wich uses those keys on dynamic http example (not using IRQ´s but reading the pins value to determine their states).
 This example has many files included, so, first of all, if you are using code warrior, learn how the IDE works.
 
 Cheers
0 Kudos