MCF52259 PAD control registers&bits.

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

MCF52259 PAD control registers&bits.

876 Views
MrBean
Contributor I

The MCF52259RM is a mess regarding PSRR and PDSR registers.

 

Table 2-1 shows :

 28 bits of PDSR

 8 bits Pin wired-OR control.

 No Slew rate control.

 

Figure 15-1 page 15-5 shows :

 80 bits of PSRR (PSRR 0x10_0078, PSRRL 010_0080, PSRRH 0x10_0086)

 80 bits of PDSR (PDSR 0x10_007C, PDSRL 010_0088, PDSRH 0x10_008E)

 

Paragraph 15.6.6 shows:

 Reference to table 2-1. Alas most bits are not in there so one can only guess which bit controls which pin.

 PSRR is gone. PSRRL has suddenly moved to 010_0078.

 PDSR also gone. PDSRL *and* PDSRH have both suddenly moved to 0x10_007C.

 

----------------

 

I'd like to know how they really work.

Can anyone tell me please ?

Labels (1)
0 Kudos
1 Reply

366 Views
mjbcswitzerland
Specialist V

Hi Mr bean

 

Yes, the M52259 (and its doc) is very new and there are a few places which are not correct.

I have found the best way to check is to connect with the debugger using CodeWarrior V7.1.1 and expand the registers using "View registers" - these are usually very accurate.

 

The pad control register section is the one to go by and not Table 2-1 - this requires some work before it can be used as definitive reference.

 

regards

 

Mark

 

www.uTasker.com

0 Kudos