MCUS12NE64  ATDCTL01 registers map

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

MCUS12NE64  ATDCTL01 registers map

2,216 Views
PsychoDebugger
Contributor I
I'm using OpenTcp in MC9S12NE64.h the register ATDCTL0 and ATDCTL1 are not mapped.
I wished there was a mapping as for ATDCTL23.

I accertainen also with Processor Expert Io_map.h , there aren't.

Have i to map the registers myself ? Or there are not ATDCLT0 and ATDCTL1 in S12NE64 ?
Labels (1)
0 Kudos
4 Replies

422 Views
Alban
Senior Contributor II
Hi,
 
I looked at my install and the datasheet.
It looks to me like an error in the .h.
If you create a Service Request, CodeWarrior team will put it in the bug list to fix.
 
Alban.
0 Kudos

422 Views
PsychoDebugger
Contributor I
I' m trying to map the registers myself.
Here' s the code... any error?


Code:
/*** ATDCTL01 - ATD Control Register 01; 0x00000080 ***/typedef union {  word Word;   /* Overlapped registers: */  struct {    /*** ATDCTL0 - ATD Control Register 0; 0x00000080 ***/    union {      byte Byte;      struct {        byte WRAP0       :1;                                               byte WRAP1       :1;                                               byte WRAP2       :1;                                               byte             :1;                                               byte             :1;                                                 byte             :1;                                               byte             :1;                                               byte             :1;                                             } Bits;    } ATDCTL0STR;        #define ATDCTL0 _ATDCTL01.Overlap_STR.ATDCTL0STR.Byte    #define ATDCTL0_WRAP0 _ATDCTL01.Overlap_STR.ATDCTL0STR.Bits.WRAP0    #define ATDCTL0_WRAP1 _ATDCTL01.Overlap_STR.ATDCTL0STR.Bits.WRAP1    #define ATDCTL0_WRAP2 _ATDCTL01.Overlap_STR.ATDCTL0STR.Bits.WRAP2            #define ATDCTL0_WRAP0_MASK  1    #define ATDCTL0_WRAP1_MASK  2    #define ATDCTL0_WRAP2_MASK  4        /*** ATDCTL1 - ATD Control Register 1; 0x00000081 ***/    union {      byte Byte;      struct {        byte ETRIGCH0    :1;                                               byte ETRIGCH1    :1;                                               byte ETRIGCH2    :1;                                               byte             :1;                                               byte             :1;                                               byte             :1;                                               byte             :1;                                               byte             :1;       } Bits;    } ATDCTL1STR;    #define ATDCTL1 _ATDCTL01.Overlap_STR.ATDCTL1STR.Byte    #define ATDCTL1_ETRIGCH0 _ATDCTL01.Overlap_STR.ATDCTL1STR.Bits.ETRIGCH0    #define ATDCTL1_ETRIGCH1 _ATDCTL01.Overlap_STR.ATDCTL1STR.Bits.ETRIGCH1    #define ATDCTL1_ETRIGCH2 _ATDCTL01.Overlap_STR.ATDCTL1STR.Bits.ETRIGCH2       #define ATDCTL1_ETRIGCH0_MASK  1    #define ATDCTL1_ETRIGCH1_MASK  2    #define ATDCTL1_ETRIGCH2_MASK  4     } Overlap_STR;  struct {    word ETRIGCH0    :1;                                           word ETRIGCH1    :1;                                           word ETRIGCH2    :1;                                           word             :1;                                           word             :1;                                           word             :1;                                           word             :1;                                           word             :1;     word WRAP0       :1;                                           word WRAP1       :1;                                           word WRAP2       :1;                                           word             :1;                                           word             :1;                                           word             :1;                                           word             :1;                                           word             :1;                                         } Bits;  } ATDCTL01STR;extern volatile ATDCTL01STR _ATDCTL01 @(REG_BASE + 0x00000080);#define ATDCTL01 _ATDCTL01.Word#define ATDCTL01_ETRIGCH0 _ATDCTL01.Bits.ETRIGCH0#define ATDCTL01_ETRIGCH0 _ATDCTL01.Bits.ETRIGCH0#define ATDCTL01_ETRIGCH0 _ATDCTL01.Bits.ETRIGCH0#define ATDCTL01_WRAP0 _ATDCTL01.Bits.WRAP0#define ATDCTL01_WRAP1 _ATDCTL01.Bits.WRAP1#define ATDCTL01_WRAP2 _ATDCTL01.Bits.WRAP2#define ATDCTL01_ETRIGCH0_MASK  1#define ATDCTL01_ETRIGCH1_MASK  2#define ATDCTL01_ETRIGCH2_MASK  4#define ATDCTL01_WRAP0_MASK  1024#define ATDCTL01_WRAP1_MASK  2048#define ATDCTL01_WRAP2_MASK  4096

 

Message Edited by PsychoDebugger on 2007-04-1710:08 AM

0 Kudos

422 Views
Alban
Senior Contributor II

Euh, checking is a bit fastidious.
I enclosed the definition from CodeWarrior so you can copy/paste.

Cheers,
Alban.

 

mc9s12ne64.h

Message Edited by t.dowe on 2009-10-20 11:46 PM
0 Kudos

422 Views
PsychoDebugger
Contributor I
Ehm... I did it not for enternainment.
In your mc9s12ne64.h (as in my header) there are not ATDCLT0 and ATDCTL1.
I can't find them, that's the problem :smileysad:

So I try to map myself and I post it hoping it will be usefull for everyone.   :smileywink:
0 Kudos