MCF52233 low cost demo board queries

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

MCF52233 low cost demo board queries

1,829 次查看
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...
标签 (1)
0 项奖励
回复
3 回复数

554 次查看
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 项奖励
回复

554 次查看
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 项奖励
回复

554 次查看
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 项奖励
回复