Query on QADC64E module configuration register

View: New views
1 Messages — Rating Filter:   Alert me  

Query on QADC64E module configuration register

by veereshpkodekal :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi,

We are using observed following mismatch for MPC565.

For MPC4565 in motorola header file m_qadc64.h the structure for
QADC64E module configuration register is as below

union {
        VUINT16 R;
        struct {
            VUINT16 STOP:1;
            VUINT16 FRZ:1;
              VUINT16:6;
            VUINT16 SUPV:1;
            VUINT16 MSTR:1;
            VUINT16 EXTCLK:1;
              VUINT16:1;
            VUINT16 IARB:4;
        } B;
    } QADC64MCR;



However when we saw the document MPC565RM.pdf we see the structure is
as format is as below (as i could not paste the snapshot i am
mentioning in the structure format)

a) in section QADC64E memory map (Table 3-1)

union {
        VUINT16 R;
        struct {
            VUINT16 STOP:1;
            VUINT16 FRZ:1;
              VUINT16:6;
            VUINT16 SUPV:1;
              VUINT16:7;
        } B;
    } QADC64MCR;


b) in section 13.2.1,

union {
        VUINT16 R;
        struct {
            VUINT16 STOP:1;
            VUINT16 FRZ:1;
              VUINT16:8;
            VUINT16 EXTCLK:1;
              VUINT16:5;
        } B;
    } QADC64MCR;  


Now we are in confusion which one among above is the correct one.

Regards,
Veeresh