⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 e468.lst

📁 FM发射器的源代码,义隆MCU+三洋发射IC,LV2280方案.可实现睡眠,省电,发射频率88MHZ~108MHZ.
💻 LST
📖 第 1 页 / 共 5 页
字号:
     1                     ;************************************************************
     2                     ;*  Tilte:       FM TRANSMITER FOR CAR                      *
     3                     ;*  Description: MCU:EM78P468N ,RF IC:Sanyo Lv2280          *
     4                     ;                xtal 32.768Khz,                            *
     5                     ;*  Company:     Protech microelectronics (sz) ltd.         *
     6                     ;*  Author:      Ellison.Lan                                *
     7                     ;*  Date:        23/08/2006                                 *
     8                     ;*  Version:     v4.0                                       *
     9                     ;************************************************************
    10                     
    11                     	INCLUDE "EM78x468xx.INC"
     1            C        ;******************************************************;
     2            C        ;                                                      ;
     3            C        ;  Tilte:       EM78x468x include file                 ;
     4            C        ;  Description: The Definition of EM78x468x Registers  ;
     5            C        ;  Company:     Protech Electronic Corp.               ;
     6            C        ;                                                      ;
     7            C        ;  Date:        10/2/2006                              ;
     8            C        ;  Version:     v1.0                                   ;
     9            C        ;  Font:        Fixedsys                               ;
    10            C        ;                                                      ;
    11            C        ;******************************************************;
    12            C        ;
    13            C        ;======================================================;
    14            C        ; Operational Registers Define                         ;
    15            C        ;======================================================;
    16            C        ;
    17            C        ;======================================================;
    18            C        ; Register R0~RF                                       ;
    19            C        ;======================================================;
    20            C        ; 
    21            C        ; Indirect Addressing register
    22            C        ; 
    23       0000 C         R0     ==    0x00
    24       0000 C         IAR    ==    0x00	
    25            C        ; 
    26            C        ; Time Clock/Counter
    27            C        ; 
    28       0001 C         R1     ==    0x01
    29       0001 C         TCC    ==    0x01    ; TCC Counter Preset
    30       0001 C         RTCC   ==    0X01
    31            C        ;
    32            C        ; Program Counter
    33            C        ; 
    34       0002 C         R2     ==    0X02
    35       0002 C         PC     ==    0X02    
    36            C        ;
    37            C        ; Status Register and ROM Page Select Register
    38            C        ; 
    39       0003 C         R3    ==    0X03
    40       0003 C         SR    ==    0X03	
    41       0003 C         STATUS ==   0X03
    42            C        ; 
    43            C             ;{
    44       0006 C                 PS1     ==    0x06    ; Page Select Bit[1]
    45       0005 C                 PS0     ==    0x05    ; Page Select Bit[0]
    46            C                                       ;
    47            C                                       ; |-----|-----|-----------------------------|
    48            C                                       ; | PS1 | PS0 | Program ROM Page and Address|
    49            C                                       ; |-----|-----|-----------------------------|
    50            C                                       ; |  0  |  0  |     Page 0 (0x000~0x3FF)    | 	
    51            C                                       ; |  0  |  1  |     Page 1 (0x400~0x7FF)    |	
    52            C                                       ; |  1  |  0  |     Page 2 (0x800~0xBFF)    |
    53            C                                       ; |  1  |  1  |     Page 3 (0xC00~0xFFF)    |
    54            C                                       ; |-----|-----|-----------------------------|
    55            C                                       ;                              
    56       0004 C                 T       ==    0x04    ; Time-Out Bit
    57       0003 C                 P       ==    0x03    ; Power Down Bit
    58       0002 C                 Z       ==    0x02    ; Zero Flag
    59       0001 C                 DC      ==    0x01    ; Auxiliary Carry Flag
    60       0000 C                 C       ==    0x00    ; Carry Flag
    61            C                                       ;        
    62       0040 C                 mPS1    ==    0x40    ; Page Select Bit[1]
    63       0020 C                 mPS0    ==    0x20    ; Page Select Bit[0]
    64       0010 C                 mT      ==    0x10    ; Time-Out Bit
    65       0008 C                 mP      ==    0x08    ; Power Down Bit
    66       0004 C                 mZ      ==    0x04    ; Zero Flag
    67       0002 C                 mDC     ==    0x02    ; Auxiliary Carry Flag
    68       0001 C                 mC      ==    0x01    ; Carry Flag
    69            C                                       ;
    70            C                 ; Example
    71            C                 ; choose Page 2
    72            C                 ; method 1	
    73            C                 ;   {
    74            C                 ;      MOV  A,@(mPS1)
    75            C                 ;      MOV  SR,A
    76            C                 ;   }
    77            C                 ; method 2
    78            C                 ;   {
    79            C                 ;      BS  SR,PS1
    80            C                 ;      BC  SR,PS0 
    81            C                 ;   }
    82            C             ;}
    83            C        ; 
    84            C        ; RAM Select Register (RSR)
    85            C        ; 
    86       0004 C         R4     ==    0X04
    87       0004 C         RSR    ==    0X04    
    88            C             ;{                         ; Bits 7~6 are determoned the R20~R3F which bank is active
    89            C                                        ; Bits 5~0 are used to select registers(address: 00~3F)
    90            C                                        ; in the indirect addressing mode
    91            C                                        ;
    92       0007 C                 RBS1     ==    0x07    ; R20~R3F ram bank select bit
    93       0006 C                 RBS0     ==    0x06    ; it can using "bank" instruction to set these bits.
    94            C                                        ;
    95       0005 C                 RSR5     ==    0x05    ;  
    96       0004 C                 RSR4     ==    0x04    ;
    97       0003 C                 RSR3     ==    0x03    ;
    98       0002 C                 RSR2     ==    0x02    ;
    99       0001 C                 RSR1     ==    0x01    ;
   100       0000 C                 RSR0     ==    0x00    ;
   101            C                                        ;
   102       0080 C                 mRBS1    ==    0x80    ; R20~R3F ram bank select bit
   103       0040 C                 mRBS0    ==    0x40    ; it can using "bank" instruction to set these bits.
   104            C                                        ;
   105       0020 C                 mRSR5    ==    0x20    ;  
   106       0010 C                 mRSR4    ==    0x10    ;
   107       0008 C                 mRSR3    ==    0x08    ;
   108       0004 C                 mRSR2    ==    0x04    ;
   109       0002 C                 mRSR1    ==    0x02    ;
   110       0001 C                 mRSR0    ==    0x01    ;
   111            C             ;}
   112            C        ;                      
   113            C        ; Port 5 data and IOC Page Select Register
   114            C        ; 
   115       0005 C         R5       ==	0X05
   116       0005 C         PORT5    ==    0X05
   117            C        ; 
   118            C             ;{
   119       0007 C                 R57          ==    0x07    ; I/O data of P5.7
   120       0006 C                 R56          ==    0x06    ; I/O data of P5.6
   121       0005 C                 R55          ==    0x05    ; I/O data of P5.5
   122       0004 C                 R54          ==    0x04    ; I/O data of P5.4
   123            C                                            ; bits 3~1 not use 
   124       0000 C                 IOCPAGE      ==    0x00    ; IOC5~IOCF Page Select Bit.
   125            C                                            ; "0" : Page0 -> Select IOC50~IOCF0
   126            C                                            ; "1" : Page1 -> Select IOC61~IOCE1
   127            C                                            ;
   128       0080 C                 mR57         ==    0x80    ; I/O data of P5.7
   129       0040 C                 mR56         ==    0x40    ; I/O data of P5.6
   130       0020 C                 mR55         ==    0x20    ; I/O data of P5.5
   131       0010 C                 mR54         ==    0x10    ; I/O data of P5.4
   132            C                                            ; bits 3~1 not use 
   133       0001 C                 mIOCPAGE     ==    0x01    ; IOC5~IOCF Page Select Bit.
   134            C                                            ; "0" : Page0 -> Select IOC50~IOCF0
   135            C                                            ; "1" : Page1 -> Select IOC61~IOCE1
   136            C             ;}
   137            C        ; 
   138            C        ; Port 6 data Register
   139            C        ; 
   140       0006 C         R6       ==    0X06
   141       0006 C         PORT6    ==    0X06	
   142            C        ;
   143            C             ;{
   144       0007 C                 R67     ==    0x07    ; I/O data of P6.7
   145       0006 C                 R66     ==    0x06    ; I/O data of P6.6
   146       0005 C                 R65     ==    0x05    ; I/O data of P6.5
   147       0004 C                 R64     ==    0x04    ; I/O data of P6.4
   148       0003 C                 R63     ==    0x03    ; I/O data of P6.3
   149       0002 C                 R62     ==    0x02    ; I/O data of P6.2
   150       0001 C                 R61     ==    0x01    ; I/O data of P6.1
   151       0000 C                 R60     ==    0x00    ; I/O data of P6.0
   152            C                                       ;
   153       0080 C                 mR67    ==    0x80    ; I/O data of P6.7
   154       0040 C                 mR66    ==    0x40    ; I/O data of P6.6
   155       0020 C                 mR65    ==    0x20    ; I/O data of P6.5
   156       0010 C                 mR64    ==    0x10    ; I/O data of P6.4
   157       0008 C                 mR63    ==    0x08    ; I/O data of P6.3
   158       0004 C                 mR62    ==    0x04    ; I/O data of P6.2
   159       0002 C                 mR61    ==    0x02    ; I/O data of P6.1
   160       0001 C                 mR60    ==    0x01    ; I/O data of P6.0
   161            C             ;}
   162            C        ; 
   163            C        ; Port 7 data Register
   164            C        ; 
   165       0007 C         R7       ==    0X07
   166       0007 C         PORT7    ==    0X07
   167            C        ;
   168            C             ;{
   169       0007 C                 R77     ==    0x07    ; I/O data of P7.7
   170       0006 C                 R76     ==    0x06    ; I/O data of P7.6
   171       0005 C                 R75     ==    0x05    ; I/O data of P7.5
   172       0004 C                 R74     ==    0x04    ; I/O data of P7.4
   173       0003 C                 R73     ==    0x03    ; I/O data of P7.3
   174       0002 C                 R72     ==    0x02    ; I/O data of P7.2
   175       0001 C                 R71     ==    0x01    ; I/O data of P7.1
   176       0000 C                 R70     ==    0x00    ; I/O data of P7.0
   177            C                                       ;
   178       0080 C                 mR77    ==    0x80    ; I/O data of P7.7

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -