general purpose I/O in mcf5282

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

general purpose I/O in mcf5282

961 Views
tama
Contributor I
Hi Guys
Can any one tell me what all ports can be configured as general purpose I/O.
As per the data sheet it says that all the ports which are not being used for there predifined function can be used as general purpose I/O. But the data sheet doesnt specify exactly.
 
It just says

• General purpose I/O interface

— Up to 142 bits of general purpose I/O

— Coherent 32-bit control

— Bit manipulation supported via set/clear functions

— Unused peripheral pins may be used as extra GPIO

can any one pls help me understand this.

thanks in advance

tama

 

Labels (1)
0 Kudos
1 Reply

278 Views
SimonMarsden_de
Contributor II
Hi Tama

You need to take a look at the MCF5282 User Manual, in the section "General Purpose I/O Module" (Section 26 in my copy of the manual).

Many of the ports are configurable for GPIO, provided that you don't need to use the pins for their special functions. The descriptions of the Pin Assignment registers give the details.

Another useful resource is the CFInit ColdFire Initialization tool. This is a free Windows program that allows you to generate the code to initialize a ColdFire processor, configuring the options through a GUI interface.

CFInit supports the MCF5282 and contains a section to help you configure the GPIO ports.

The URL is: http://www.microapl.co.uk/CFInit/cfinit_main.html


(I should own up here and say that I work for MicroAPL, the company that writes CFInit).


Hope this helps


Simon
0 Kudos