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

📄 mcu_hw_config.lst

📁 在飞思卡尔MC9S08GB60单片机环境下实现了无线监控
💻 LST
📖 第 1 页 / 共 2 页
字号:
ANSI-C/cC++ Compiler for HC08 V-5.0.19 (beta 0) Build 4210, Jul 29 2004

    1:  /**************************************************************
    2:  *	Includes
    3:  **************************************************************/
    4:  //#include "device_header.h" /* include peripheral declarations */
    5:  #include "pub_def.h"
    6:  #include "MC13192_regs.h"
    7:  #include "MC13192_hw_config.h"
    8:  #include "mcu_hw_config.h"
    9:  #include "drivers.h"
   10:  
   11:  /**************************************************************
   12:  *	Globals
   13:  **************************************************************/
   14:  extern byte rtx_mode;
   15:  
   16:  /**************************************************************
   17:  *	Function: 	Initialize the MCU-to-MC13192 GPIO direction and data.
   18:  *	Parameters: None
   19:  *	Return:		None
   20:  **************************************************************/
   21:  void init_gpio()
   22:  {

Function: init_gpio
Source  : D:\Profiles\flr005\My Documents\Bluetooth Exchange Folder\smac 4_0\CW_IDE_3p1\smac\Sources\mcu_hw_config.c
Options : -Cs08 -DAXM_0308 -Env"GENPATH=*D:\Profiles\flr005\My Documents\Bluetooth Exchange Folder\smac 4_0\CW_IDE_3p1\smac;D:\Profiles\flr005\My Documents\Bluetooth Exchange Folder\smac 4_0\CW_IDE_3p1\target\include;*C:\Program Files\Metrowerks\CW08 V3.1" -Env"LIBPATH=*C:\Program Files\Metrowerks\CW08 V3.1" -Env"OBJPATH=D:\Profiles\flr005\My Documents\Bluetooth Exchange Folder\smac 4_0\CW_IDE_3p1\smac\bin" -Env"TEXTPATH=D:\Profiles\flr005\My Documents\Bluetooth Exchange Folder\smac 4_0\CW_IDE_3p1\smac\bin" -Lasm=%n.lst -Ms -ObjN="D:\Profiles\flr005\My Documents\Bluetooth Exchange Folder\smac 4_0\CW_IDE_3p1\smac\smac_Data\GB60_(EVB_-_rev_A-B-C)\ObjectCode\mcu_hw_config.c.o" -WmsgSd1106 -WmsgSd1420 -WmsgSd1801 -WmsgSd2705

   23:   MC13192_RESET_PULLUP = 0;
  0000 1f00             BCLR  7,_PTDPE
  0002 ad0b             BSR   LF ;abs = 000f
   24:   MC13192_CE = 1;					
   25:   MC13192_ATTN = 1;
   26:   MC13192_RTXEN = 0;
   27:   MC13192_RESET = 0;				/* Do not initially reset MC13192 */
   28:   MC13192_CE_PORT = 1;
  0004 1400             BSET  2,_PTEDD
   29:   MC13192_ATTN_PORT = 1;
  0006 1a00             BSET  5,_PTDDD
   30:   MC13192_RTXEN_PORT = 1;
  0008 1c00             BSET  6,_PTDDD
   31:   MC13192_RESET_PORT = 1;
  000a 1e00             BSET  7,_PTDDD
  000c ad01             BSR   LF ;abs = 000f
   32:   MC13192_CE = 1;					
   33:   MC13192_ATTN = 1;
   34:   MC13192_RTXEN = 0;
   35:   MC13192_RESET = 0;				/* Do not initially reset MC13192 */
   36:   
   37:   #if defined (ANTENNA_SWITCH)
   38:   	
   39:   		MC13192_ANT_CTRL2_PORT = 1;		/* Output for antenna port RX */
   40:   		MC13192_ANT_CTRL_PORT = 1;		/* Output for antenna port TX */
   41:   		MC13192_ANT_CTRL2 = 1;		/* Signal to turn on RX antenna */
   42:   		MC13192_ANT_CTRL = 1;		/* Signal to turn on TX antenna */
   43:   
   44:   #endif
   45:   
   46:   #if defined (LNA)
   47:      MC13192_LNA_CTRL = LNA_OFF;		  // Turn off the LNA out of reset
   48:      MC13192_LNA_CTRL_PORT  = 1;		  // Enable the port for OUTPUT
   49:   #endif
   50:   
   51:   #if defined (PA)
   52:      MC13192_PA_CTRL = PA_OFF;       // Turn off the PA out of Reset
   53:      MC13192_PA_CTRL_PORT = 1;       // Enable the port for OUTPUT
   54:   #endif
   55:   
   56:  }
  000e 81               RTS   
  000f          LF:     
  000f 1400             BSET  2,_PTED
  0011 1a00             BSET  5,_PTDD
  0013 1d00             BCLR  6,_PTDD
  0015 1f00             BCLR  7,_PTDD
  0017 81               RTS   
   57:  
   58:  /**************************************************************
   59:  *	Function: 	Switch the MCU from internal to MC13192 supplied clock.
   60:  *				The MCU FLL is not engaged.
   61:  *	Parameters: None
   62:  *	Return:		None
   63:  **************************************************************/
   64:  void use_external_clock()
   65:  {

Function: use_external_clock
Source  : D:\Profiles\flr005\My Documents\Bluetooth Exchange Folder\smac 4_0\CW_IDE_3p1\smac\Sources\mcu_hw_config.c
Options : -Cs08 -DAXM_0308 -Env"GENPATH=*D:\Profiles\flr005\My Documents\Bluetooth Exchange Folder\smac 4_0\CW_IDE_3p1\smac;D:\Profiles\flr005\My Documents\Bluetooth Exchange Folder\smac 4_0\CW_IDE_3p1\target\include;*C:\Program Files\Metrowerks\CW08 V3.1" -Env"LIBPATH=*C:\Program Files\Metrowerks\CW08 V3.1" -Env"OBJPATH=D:\Profiles\flr005\My Documents\Bluetooth Exchange Folder\smac 4_0\CW_IDE_3p1\smac\bin" -Env"TEXTPATH=D:\Profiles\flr005\My Documents\Bluetooth Exchange Folder\smac 4_0\CW_IDE_3p1\smac\bin" -Lasm=%n.lst -Ms -ObjN="D:\Profiles\flr005\My Documents\Bluetooth Exchange Folder\smac 4_0\CW_IDE_3p1\smac\smac_Data\GB60_(EVB_-_rev_A-B-C)\ObjectCode\mcu_hw_config.c.o" -WmsgSd1106 -WmsgSd1420 -WmsgSd1801 -WmsgSd2705

   66:   ICGC1 = 0x50;         
  0000 6e5000           MOV   #80,_ICGC1
  0003          L3:     
   67:   while (!ICGS1_ERCS); /* Wait for external reference to be stable. */
  0003 0300fd           BRCLR 1,_ICGS1,L3 ;abs = 0003
   68:   ICGC2_LOLRE = 1;
  0006 1e00             BSET  7,_ICGC2
   69:   ICGC2_MFD = 0x00;		/* Mult factor of 4. */
  0008 b600             LDA   _ICGC2
  000a a48f             AND   #-113
  000c b700             STA   _ICGC2
   70:  }
  000e 81               RTS   
   71:  
   72:  /**************************************************************
   73:  *	Function: 	Switch the MCU from external to internal clock.
   74:  *	Parameters: None
   75:  *	Return:		None
   76:  **************************************************************/
   77:  void use_mcu_clock()
   78:  {

Function: use_mcu_clock
Source  : D:\Profiles\flr005\My Documents\Bluetooth Exchange Folder\smac 4_0\CW_IDE_3p1\smac\Sources\mcu_hw_config.c
Options : -Cs08 -DAXM_0308 -Env"GENPATH=*D:\Profiles\flr005\My Documents\Bluetooth Exchange Folder\smac 4_0\CW_IDE_3p1\smac;D:\Profiles\flr005\My Documents\Bluetooth Exchange Folder\smac 4_0\CW_IDE_3p1\target\include;*C:\Program Files\Metrowerks\CW08 V3.1" -Env"LIBPATH=*C:\Program Files\Metrowerks\CW08 V3.1" -Env"OBJPATH=D:\Profiles\flr005\My Documents\Bluetooth Exchange Folder\smac 4_0\CW_IDE_3p1\smac\bin" -Env"TEXTPATH=D:\Profiles\flr005\My Documents\Bluetooth Exchange Folder\smac 4_0\CW_IDE_3p1\smac\bin" -Lasm=%n.lst -Ms -ObjN="D:\Profiles\flr005\My Documents\Bluetooth Exchange Folder\smac 4_0\CW_IDE_3p1\smac\smac_Data\GB60_(EVB_-_rev_A-B-C)\ObjectCode\mcu_hw_config.c.o" -WmsgSd1106 -WmsgSd1420 -WmsgSd1801 -WmsgSd2705

   79:   ICGC1_RANGE = 1;	/* Range High. */
  0000 1c00             BSET  6,_ICGC1
   80:   ICGC1_OSCSTEN = 1;	/* Osc enabled in off mode. */
  0002 1400             BSET  2,_ICGC1
   81:   ICGC1_CLKS = 0x00;	/* Self clocked. */			
  0004 b600             LDA   _ICGC1
  0006 a4e7             AND   #-25
  0008 b700             STA   _ICGC1
   82:  }
  000a 81               RTS   
   83:  
   84:  /**************************************************************
   85:  *	Function: 	Restart the MC13192.
   86:  *	Parameters: None
   87:  *	Return:		None
   88:  **************************************************************/
   89:  void MC13192_restart()
   90:  {

Function: MC13192_restart
Source  : D:\Profiles\flr005\My Documents\Bluetooth Exchange Folder\smac 4_0\CW_IDE_3p1\smac\Sources\mcu_hw_config.c
Options : -Cs08 -DAXM_0308 -Env"GENPATH=*D:\Profiles\flr005\My Documents\Bluetooth Exchange Folder\smac 4_0\CW_IDE_3p1\smac;D:\Profiles\flr005\My Documents\Bluetooth Exchange Folder\smac 4_0\CW_IDE_3p1\target\include;*C:\Program Files\Metrowerks\CW08 V3.1" -Env"LIBPATH=*C:\Program Files\Metrowerks\CW08 V3.1" -Env"OBJPATH=D:\Profiles\flr005\My Documents\Bluetooth Exchange Folder\smac 4_0\CW_IDE_3p1\smac\bin" -Env"TEXTPATH=D:\Profiles\flr005\My Documents\Bluetooth Exchange Folder\smac 4_0\CW_IDE_3p1\smac\bin" -Lasm=%n.lst -Ms -ObjN="D:\Profiles\flr005\My Documents\Bluetooth Exchange Folder\smac 4_0\CW_IDE_3p1\smac\smac_Data\GB60_(EVB_-_rev_A-B-C)\ObjectCode\mcu_hw_config.c.o" -WmsgSd1106 -WmsgSd1420 -WmsgSd1801 -WmsgSd2705

   91:   rtx_mode = SYSTEM_RESET_MODE;
  0000 a686             LDA   #-122
  0002 c70000           STA   rtx_mode
   92:   IRQSC = 0x14; /* Turn on the IRQ pin. */
  0005 6e1400           MOV   #20,_IRQSC
   93:   MC13192_RESET = 1; /* Take MC13192 out of reset */
  0008 1e00             BSET  7,_PTDD

⌨️ 快捷键说明

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