亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關(guān)于我們
? 蟲蟲下載站

?? lpradio.asm

?? CYRF6936 zigbee模塊設(shè)計的全部資料
?? ASM
?? 第 1 頁 / 共 2 頁
字號:
;--------------------------------------------------------------------------
;
;  Filename:    lpradio.asm
;
;  Description: User functions to access the LP radio configuration. These
;               functions are the same for the both the streaming and
;               non-streaming versions of the driver.
;
;--------------------------------------------------------------------------
; WirelessUSB LP Radio Driver Version 1.0
; $Revision: 3 $
;--------------------------------------------------------------------------
;
; Copyright 2005-2006, Cypress Semiconductor Corporation.
;
; This software is owned by Cypress Semiconductor Corporation (Cypress)
; and is protected by and subject to worldwide patent protection (United
; States and foreign), United States copyright laws and international
; treaty provisions. Cypress hereby grants to licensee a personal,
; non-exclusive, non-transferable license to copy, use, modify, create
; derivative works of, and compile the Cypress Source Code and derivative
; works for the sole purpose of creating custom software in support of
; licensee product to be used only in conjunction with a Cypress integrated
; circuit as specified in the applicable agreement. Any reproduction,
; modification, translation, compilation, or representation of this
; software except as specified above is prohibited without the express
; written permission of Cypress.
;
; Disclaimer: CYPRESS MAKES NO WARRANTY OF ANY KIND, EXPRESS OR IMPLIED,
; WITH REGARD TO THIS MATERIAL, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
; WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
; Cypress reserves the right to make changes without further notice to the
; materials described herein. Cypress does not assume any liability arising
; out of the application or use of any product or circuit described herein.
; Cypress does not authorize its products for use as critical components in
; life-support systems where a malfunction or failure may reasonably be
; expected to result in significant injury to the user. The inclusion of
; Cypress' product in a life-support systems application implies that the
; manufacturer assumes all risk of such use and in doing so indemnifies
; Cypress against all charges.
;
; Use may be limited by and subject to the applicable Cypress software
; license agreement.
;
;--------------------------------------------------------------------------

;--------------------------------------------------------------------------;
;                                                                          ;
;                      I N C L U D E   F I L E S                           ;
;                                                                          ;
;--------------------------------------------------------------------------;

                   INCLUDE "lpradio.inc"
                   INCLUDE "spim_radio.inc"
                   INCLUDE "psocgpioint.inc"
                   INCLUDE "lpregs.inc"
                   INCLUDE "irqmacros.inc"

;--------------------------------------------------------------------------;
;                                                                          ;
;                            V A R I A B L E S                             ;
;                                                                          ;
;--------------------------------------------------------------------------;

                   AREA    bss

_RadioXactConfig::
RadioXactConfig::  BLK     1                           ; Current value of XACT_CFG_ADDR.
_RadioState::
 RadioState::      BLK     1                           ; The current rx or tx state.

RadioTxCount::
RadioConstAddrLo:  BLK     1                           ; Parameter to Radio TX and RX routines.

;
; These variables are re-used to the point of confusion. They are commonly used for different
;  functions, but occasionally used together as a buffer to burst into the radio registers.
;  The RadioPacketLength field is used during async rx and tx operations and therefore it
;  is NOT valid to call any functions that use it for any other purpose between a start/end
;  rx/tx pair.
;
RadioConstAddrHi:
RadioPacketLength::
RadioTemp1::       BLK     1                           ; A work area used for short bursts.

RadioFileAddr:
RadioTxControl::
RadioTemp2::       BLK     1                           ;  and other temp uses.

RadioCount:
RadioRetryCount::                                                      
RadioTemp3::       BLK     1

;--------------------------------------------------------------------------;
;                                                                          ;
;                                 C O D E                                  ;
;                                                                          ;
;--------------------------------------------------------------------------;

                   AREA    UserModules (ROM, REL)

;--------------------------------------------------------------------------;
;                                                                          ;
;                      I N I T I A L I Z A T I O N                         ;
;                                                                          ;
;--------------------------------------------------------------------------;

;
; This is all carefully crafted assembly. We do not want the code compressor
;  to attempt to optimize it by break it into little subroutines.
;
                   DISABLE_CODE_COMPRESSION            ; Code breaks if "subroutinized".

.section
;--------------------------------------------------------------------------
;
; RadioInit:       Initialize the Radio.
;
; 'C' Call:        void RadioInit(XACT_CONFIG xactConfig, TX_CONFIG txConfig);
;
; Assembly Call:   A: xactConfig
;                  X: txConfig
;
; Assembly Return: A: Garbage
;                  X: Garbage
;
_RadioInit::
 RadioInit::       MOV     [RadioTemp1], A
                   MOV     [RadioTemp2], X
                   
                   MOV     [RadioXactConfig], XACT_CFG_RST
                   
                   CALL    RadioReset

;
; We're going to want to force the RXF clock on in the streaming driver.
; Not necessary for nonstreaming driver but harmless.
;
                   MOV     A, CLK_EN_ADR
                   MOV     X, RXF
                   CALL    RadioWrite

;
; Set up to use auto-cal for VCO. Register 0x34 is left at its default value to
;  allow auto-cal to be used.
;
                   MOV     A, AUTO_CAL_TIME_ADR          ; Extend autoCal time to max.
                   MOV     X, AUTO_CAL_TIME_MAX
                   CALL    RadioWrite

                   MOV     A, AUTO_CAL_OFFSET_ADR        ; AutoCal offset to -4.
                   MOV     X, AUTO_CAL_OFFSET_MINUS_4
                   CALL    RadioWrite
                   
                   MOV     A, IO_CFG_ADR                 ; Read IO_CFG_ADR, user may have
                   CALL    RadioRead                     ;  changed it in RadioReset
                   OR      A, IRQ_POL                    ; Set IRQ polarity to positive.
                   MOV     X, IO_CFG_ADR                 ;  (Some have asked that this be
                   CALL    RadioWriteSwapped             ;  left at the default negative.)
;
; Set the XTAL Startup delay to 150uSec to handle warm restarts of the XTAL. 
;
                   MOV     A, XTAL_CFG_ADR
                   MOV     X, 0x08
                   CALL    RadioWrite
;
; Enable HiLo for quick-turn-around. Use low side injection for receive - this should result in
;  non-inverted data, so no need to hit the invert bit. Turn off AGC and force the LNA on.
; 
                   MOV     A, RX_CFG_ADR
                   MOV     X, (( RX_CFG_RST | FASTTURN_EN | LNA_EN ) & ~( HI | RXOW_EN | AUTO_AGC_EN ))
                   CALL    RadioWrite
;
; Set the TX Offset to +1MHz.
;
; THIS MEANS THE ACTUAL TRANSMIT CARRIER WILL BE 1MHz ABOVE THE PLL
;  FREQUENCY PROGRAMMED IN THE CHANNEL OR A & N REGISTERS.
;  RadioSetFrequency COMPENSATES FOR THIS OFFSET.
;
                   MOV     A, TX_OFFSET_LSB_ADR
                   MOV     X, 055h
                   CALL    RadioWrite
                   MOV     A, TX_OFFSET_MSB_ADR
                   MOV     X, 005h
                   CALL    RadioWrite
;
; Set the radio transaction and TX configuration.
;                   
                   MOV     A, [RadioTemp1]
                   CALL    RadioSetXactConfig
                   MOV     A, [RadioTemp2]
                   CALL    RadioSetTxConfig
 
                   MOV     [RadioState], RADIO_IDLE
                   RET
.endsection

;--------------------------------------------------------------------------;
;                                                                          ;
;                        C O N F I G U R A T I O N                         ;
;                                                                          ;
;--------------------------------------------------------------------------;

.section
;--------------------------------------------------------------------------------
;
; RadioSetChannel:
;                  Set the channel (frequency + 2MHz).
;
; 'C' Call:        void RadioSetChannel(BYTE channel);
;
; Assembly Call:   A: frequency
;                  X: Unused
;
; Assembly Return: A: Undefined
;                  X: Undefined
;
; Note:            FALL THROUGH INTO RadioSetFrequency.
;
 RadioSetChannel::
_RadioSetChannel::
                   ADD     A, 2

.endsection
.section
;--------------------------------------------------------------------------------
;
; RadioSetFrequency:
;                  Set the frequency on which future communications will occur.
;
;                  THIS DRIVER SETS THE TX OFFESET AT 1 WHICH MEANS THAT THE TX
;                  CARRIER WILL BE 1MHz HIGHER THAN THE CHANNEL NUMBER WE PROGRAM.
;                  THIS FUNCTION COMPENSATES FOR THAT OFFSET BY DECREMENTING THE
;                  CHANNEL NUMBER.
;
; 'C' Call:        void RadioSetFrequency(BYTE frequency);
;
; Assembly Call:   A: frequency
;                  X: Unused
;
; Assembly Return: A: Undefined
;                  X: Undefined
;
 RadioSetFrequency::
_RadioSetFrequency::
                   CMP     A, 0
                   JZ      .Channel0
                   DEC     A
.Channel0:         MOV     X, CHANNEL_ADR              ; Write into the channel register.
                   JMP     RadioWriteSwapped

.endsection
.section
;--------------------------------------------------------------------------------
;
; RadioGetChannel:
;                  Get the channel.
;
; 'C' Call:        BYTE RadioGetChannel(void);
;
; Assembly Call:   A: Unused
;                  X: Unused
;
; Assembly Return: A: channel
;                  X: Undefined
;
 RadioGetChannel::
_RadioGetChannel::
                   CALL    RadioGetFrequency
                   SUB     A, 2
                   RET

.endsection
.section
;--------------------------------------------------------------------------------
;
; RadioGetFrequency:
;                  Returns the frequency in MHz above 2.4GHz. 
;                  Example: 0 means 2.400GHz, 83 means 2.483GHz.
;
; 'C' Call:        BYTE RadioGetFrequency(void);
;
; Assembly Call:   A: Unused
;                  X: Unused
;
; Assembly Return: A: frequency
;                  X: Undefined
;
 RadioGetFrequency::
_RadioGetFrequency::
                   MOV     A, CHANNEL_ADR              ;  into the channel register.
                   CALL    RadioRead
                   INC     A
                   RET

.endsection
.section
;--------------------------------------------------------------------------------
;
; RadioSetTxConfig:Set the transmitter configuration.
;
; 'C' Call:        void RadioSetTxConfig(TX_CONFIG config);
;
; Assembly Call:   A: config
;                  X: Unused
;
; Assembly Return: A: Undefined
;                  X: Undefined
;
_RadioSetTxConfig::
 RadioSetTxConfig::MOV     X, TX_CFG_ADR
                   JMP     RadioWriteSwapped
                    
.endsection
.section
;--------------------------------------------------------------------------------
;
; RadioGetTxConfig:Return the transmitter configuration.
;
; 'C' Call:        TX_CONFIG RadioGetTxConfig(void);
;
; Assembly Call:   A: Unused
;                  X: Unused
;
; Assembly Return: A: config
;                  X: Undefined
;
_RadioGetTxConfig::
 RadioGetTxConfig::MOV     A, TX_CFG_ADR
                   JMP     RadioRead
                    
.endsection
.section
;--------------------------------------------------------------------------------
;
; RadioSetXactConfig:
;                  Set the transaction configuration.
;
; 'C' Call:        void RadioSetXactConfig(XACT_CONFIG config);
;
; Assembly Call:   A: config
;                  X: Unused
;
; Assembly Return: A: Undefined
;                  X: Undefined
;
_RadioSetXactConfig::
 RadioSetXactConfig::
                   MOV    [RadioXactConfig], A
                   AND    [RadioXactConfig], ~FRC_END_STATE
                   
;
; Force the bits we don't want the user to fiddle.
;
                   MOV     X, XACT_CFG_ADR
                   JMP    RadioWriteSwapped
                   
                    
.endsection
.section
;--------------------------------------------------------------------------------
;
; RadioGetXactConfig:
;                  Return the transaction configuration.
;
; 'C' Call:        XACT_CONFIG RadioGetXactConfig(void);
;
; Assembly Call:   A: Unused
;                  X: Unused
;
; Assembly Return: A: config
;                  X: Undefined
;
_RadioGetXactConfig::
 RadioGetXactConfig::
                   MOV     A, XACT_CFG_ADR
                   JMP     RadioRead
                    
.endsection
.section
;--------------------------------------------------------------------------------
;
; RadioSetFrameConfig:
;                  Set the framing configuration.
;
; 'C' Call:        void RadioSetFrameConfig(RADIO_FRAME_CONFIG config);
;
; Assembly Call:   A: config
;                  X: Unused
;
; Assembly Return: A: Undefined
;                  X: Undefined
;
_RadioSetFrameConfig::
 RadioSetFrameConfig::
                    MOV     X, FRAMING_CFG_ADR
                    JMP     RadioWriteSwapped
                    
.endsection
.section
;--------------------------------------------------------------------------------
;
; RadioGetFrameConfig:
;                  Set the framing configuration.

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
久久精品一级爱片| 亚洲男人天堂av网| 色婷婷国产精品久久包臀| 欧美在线三级电影| 国产精品一区二区91| 亚洲 欧美综合在线网络| 国产精品色哟哟| 日韩一区二区免费视频| 在线免费观看一区| 99久久综合色| 国产99久久久国产精品| 奇米888四色在线精品| 一区2区3区在线看| 成人黄色小视频| 狠狠色狠狠色综合| 日韩在线a电影| 亚洲一区av在线| 中文字幕欧美一| 久久九九久久九九| 欧美大黄免费观看| 91麻豆精品国产自产在线观看一区| 91在线porny国产在线看| 国产乱码精品一区二区三 | 在线观看av一区| 成人免费观看男女羞羞视频| 国内精品伊人久久久久影院对白| 午夜一区二区三区在线观看| 亚洲另类在线制服丝袜| 国产精品不卡一区| 国产精品视频在线看| 国产三级精品三级在线专区| 久久亚洲捆绑美女| 久久99精品一区二区三区| 亚洲va中文字幕| 亚洲a一区二区| 视频一区二区三区中文字幕| 亚洲综合网站在线观看| 亚洲精品久久久蜜桃| 亚洲久草在线视频| 一区二区三区在线高清| 亚洲综合区在线| 香蕉久久夜色精品国产使用方法| 亚洲一区二区三区美女| 欧美色区777第一页| 欧美视频在线一区| 欧美精品国产精品| 日韩西西人体444www| 亚洲精品一区在线观看| 国产女同互慰高潮91漫画| 国产精品网友自拍| 亚洲精品高清在线| 亚洲午夜精品网| 青椒成人免费视频| 狠狠色丁香婷婷综合| 国产精品一区二区在线观看网站 | 国产99久久久国产精品| 成人黄色国产精品网站大全在线免费观看 | 色久综合一二码| 欧美日韩在线三级| 日韩午夜av一区| 国产欧美一区二区三区沐欲 | 国内成人免费视频| 成人精品国产免费网站| 色偷偷成人一区二区三区91 | 制服丝袜国产精品| 亚洲精品在线免费观看视频| 国产精品天干天干在线综合| 亚洲免费在线电影| 日韩avvvv在线播放| 欧美成人a在线| 国产精品女同互慰在线看| 亚洲综合成人在线| 精品一区二区免费视频| www.日韩av| 欧美放荡的少妇| 欧美韩国日本综合| 丝袜亚洲另类丝袜在线| 国产一区二区按摩在线观看| 91麻豆免费看片| 日韩欧美在线网站| 亚洲精品水蜜桃| 日韩欧美专区在线| 亚洲视频一区二区免费在线观看| 亚洲v中文字幕| 成人免费三级在线| 3d成人动漫网站| 国产精品看片你懂得| 无吗不卡中文字幕| av福利精品导航| 日韩一区二区在线观看视频播放| 国产日产欧美一区| 奇米一区二区三区av| 中文字幕av资源一区| 亚洲r级在线视频| 成人一区二区三区中文字幕| 欧美一级日韩免费不卡| 亚洲男人的天堂在线观看| 国产一区美女在线| 欧美在线小视频| 136国产福利精品导航| 六月丁香婷婷久久| 欧美久久一二区| 亚洲美女区一区| 懂色av中文字幕一区二区三区| 五月天激情小说综合| 91农村精品一区二区在线| 亚洲精品在线电影| 青青草国产成人av片免费| 91久久人澡人人添人人爽欧美| 久久欧美一区二区| 青娱乐精品视频| 欧美色倩网站大全免费| 亚洲欧美aⅴ...| kk眼镜猥琐国模调教系列一区二区| 欧美一卡在线观看| 婷婷开心激情综合| 欧美亚一区二区| 亚洲天堂成人网| 久久久精品国产免大香伊| 免费av网站大全久久| 欧美日韩视频不卡| 亚洲自拍偷拍综合| 91久久精品一区二区| 亚洲色图一区二区| 91啪亚洲精品| 亚洲美女免费在线| 日本丰满少妇一区二区三区| 亚洲视频在线一区观看| 波多野结衣91| 国产精品成人网| 国产精品蜜臀av| 国产成人av一区二区三区在线观看| 精品理论电影在线| 国产自产v一区二区三区c| 欧美xxxx老人做受| 激情文学综合网| 久久久99精品免费观看不卡| 国产高清在线精品| 久久久久久免费毛片精品| 国产一区在线看| 国产精品无遮挡| 99久久精品国产毛片| 亚洲欧美日韩一区二区三区在线观看| 久久精品夜色噜噜亚洲a∨| 国产乱色国产精品免费视频| 国产欧美一区二区三区网站| 风间由美中文字幕在线看视频国产欧美| 久久精品在线免费观看| 播五月开心婷婷综合| 亚洲精品久久久蜜桃| 欧美巨大另类极品videosbest| 秋霞电影网一区二区| 久久精品视频一区二区| 99久久国产综合色|国产精品| 亚洲欧美电影院| 欧美高清性hdvideosex| 日韩一区二区在线看| 国产综合色在线视频区| 国产精品电影一区二区| 日本韩国欧美一区二区三区| 日韩二区三区四区| 精品国产1区二区| 99精品视频在线观看免费| 亚洲一区二区三区自拍| 日韩欧美在线观看一区二区三区| 国产在线精品视频| 亚洲视频一区在线| 欧美一级午夜免费电影| 成人高清视频免费观看| 午夜精品一区二区三区免费视频| 青草国产精品久久久久久| 亚洲国产精品av| 欧美性受xxxx黑人xyx性爽| 韩国女主播成人在线观看| 中文字幕精品在线不卡| 欧美日韩免费电影| 国产精品综合久久| 亚洲一区二区在线视频| 久久综合九色综合欧美亚洲| 91麻豆国产福利精品| 另类的小说在线视频另类成人小视频在线 | 欧美午夜精品久久久| 精品伦理精品一区| 日本丶国产丶欧美色综合| 九色|91porny| 一区二区三区小说| 久久久亚洲午夜电影| 欧美日韩国产小视频| 成人sese在线| 久久99久久久久久久久久久| 亚洲女同一区二区| 国产亚洲一区二区三区在线观看 | 韩国中文字幕2020精品| 一区二区三区电影在线播| 精品国产伦理网| 51精品国自产在线| 91免费在线播放| 国产精品系列在线播放| 日本欧美加勒比视频| 成人免费一区二区三区视频|