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

📄 rom1.h

📁 基于MOTOLOLAR单片机的TPMS发送控制器代码设计
💻 H
字号:
;/*****************************************************************************/
;/* PROJECT : RF key demonstrator (ASK or FSK)                                */
;/* constant file                                                             */
;/*****************************************************************************/

;/* Protocol */

; nb_wake_up_bit  EQU     !40     ; =3*10+1+8-4(already in header &F6) + stroke(=5)
nb_wake_up_bit  EQU     !32     ; =3*10+1-4(already in header &FB86) + stroke(=5)
; nb_wake_up_bit  EQU     !32     ; =3*10+1+8-12(already in preamble &FFF6) + stroke(=5)
; nb_wake_up_bit  equ     !08     ; Use this if Cagc = 10nF (FSK 9600 bauds only)

;******************************************************************************
PREAMBLE        EQU     $FB86   ; End of Tone + ID (B8) + Header (for using Romeo2 SPI)
DEVICE_ID       EQU     $7800   ;Location of the Device ID in ROM
;******************************************************************************

wait_0_2ms      EQU     !400    ;
wait_0_5ms      EQU     !1000   ;
wait_0_8ms      EQU     !1600   ; for L90J pressure sense
wait_1ms        EQU     !2000   ; = 1 ms
wait_1_8ms      EQU      !381  ; = 1.8 ms for Tango3 (434 MHz)

;/* Transmission Timer Clock Generator                                          */
;/* This is the section that must be modified when the crystal is changed.      */
;/* You will also have to clear TSC[2:0] during transmission (see emis1.asm)    */

;/* ~9600 bauds using MCU clock for timer (not as accurate over temperature)    */
; UHF_period      EQU     !200    ; =2MHz/10000bauds
; UHF_Duty_Cycle  EQU     !100    ; =0.5*UHF_period

;/* use of DATACLK at 9600 bauds, 434 MHz*/
UHF_period       EQU    !20     ; = 212kHz/9600 bauds
UHF_Duty_Cycle   EQU    !10     ; = 50%

;/* use of DATACLK at 9600 bauds, 315 MHz*/
; UHF_period      EQU    !16     ; = 154kHz/9600 bauds
; UHF_Duty_Cycle  EQU    !8      ; = 50%

;/* use of DATACLK at 1200 bauds, 434 MHz:*/
; UHF_period_park      EQU    !176    ; = 212kHz/1200 bauds
; UHF_Duty_Cycle_park  EQU    !88     ; = 50%

;/* use of DATACLK at 1200 bauds, 315 MHz:*/
; UHF_period_park      EQU    !128    ; = 154kHz/1200 bauds
; UHF_Duty_Cycle_park  EQU    !64     ; = 50%

;/* FLASH */

RDVRRNG         EQU     $F000
PRGRNGE         EQU     $F003
ERARNGE         EQU     $F006

⌨️ 快捷键说明

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