
3–224
Motorola Sensor Device Data
For More Information On This Product,
  Go to: www.freescale.com
SOFTWARE SOURCE/ASSEMBLY PROGRAM CODE
                               #pragma option v ;
                               /*
                               rev 1.1 code rewritten to use the MC68HC705B5 instead of the
                               MC68HC805B6. WLL 6/17/91
                               THE FOLLOWING ’C’ SOURCE CODE IS WRITTEN FOR THE DEVB–114 DEMONSTRATION
                               BOARD. IT WAS COMPILED WITH A COMPILER COURTESY OF:
                                                           BYTE CRAFT LTD.                
                                                           421 KING ST.                     
                                                           WATERLOO, ONTARIO
                                                           CANADA  N2J 4E4
                                                           (519)888–6911
                               SOME SOURCE CODE CHANGES MAY BE NECESSARY FOR COMPILATION WITH OTHER
                               COMPILERS.
                                                            BILL LUCAS 8/5/90
                                                            MOTOROLA, SPS            */
0800 1700                      #pragma memory ROMPROG  [5888]  @ 0x0800 ;
0050 0096                      #pragma memory RAMPAGE0 [150]   @ 0x0050 ;
                               /*       Vector assignments    */
1FFE                           #pragma vector __RESET   @ 0x1ffe ;
1FFC                           #pragma vector __SWI     @ 0x1ffc ;
1FFA                           #pragma vector IRQ       @ 0x1ffa ;
1FF8                           #pragma vector TIMERCAP  @ 0x1ff8 ;
1FF6                           #pragma vector TIMERCMP  @ 0x1ff6 ;
1FF4                           #pragma vector TIMEROV   @ 0x1ff4 ;
1FF2                           #pragma vector SCI       @ 0x1ff2 ;
                               #pragma has STOP ;
                               #pragma has WAIT ;
                               #pragma has MUL ;
                               /*       Register assignments for the 68HC705B5 microcontroller     */
0000                           #pragma portrw porta   @ 0x00;  /*                                       */
0001                           #pragma portrw portb   @ 0x01;  /*                                       */
0002                           #pragma portrw portc   @ 0x02;  /*                                       */
0003                           #pragma portrw portd   @ 0x03;  /* in  ,–  ,SS  ,SCK  ,MOSI,MISO,TxD,RxD */
0004                           #pragma portrw ddra    @ 0x04;  /* Data direction, Port A                */
0005                           #pragma portrw ddrb    @ 0x05;  /* Data direction, Port B                */
0006                           #pragma portrw ddrc    @ 0x06;  /* Data direction, Port C (all output)   */
0007                           #pragma portrw eeclk   @ 0x07;  /* eeprom/eclk cntl */
0008                           #pragma portrw addata  @ 0x08;  /* a/d data register */
0009                           #pragma portrw adstat  @ 0x09;  /* a/d stat/control */
000A                           #pragma portrw plma    @ 0x0a;  /* pulse length modulation a */
000B                           #pragma portrw plmb    @ 0x0b;  /* pulse length modulation b */
000C                           #pragma portrw misc    @ 0x0c;  /* miscellaneous register */
000D                           #pragma portrw scibaud @ 0x0d;  /* sci baud rate register */
000E                           #pragma portrw scicntl1 @ 0x0e; /* sci control 1  */
000F                           #pragma portrw scicntl2 @ 0x0f; /* sci control 2  */
0010                           #pragma portrw scistat @ 0x10;  /* sci status reg */
F
Freescale Semiconductor, Inc.
n
.