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

📄 ram.h

📁 基于MOTOLOLAR单片机的TPMS发送控制器代码设计
💻 H
字号:
;/*****************************************************************************/
;/* PROJECT : RF key demonstrator (ASK or FSK)                                */
;/* Variable file                                                             */
;/* Modified by Jeff Burgess                                                  */
;/* - added work-around for bug in Romeo2 receiver, where its SPI corrupts    */
;/*   the last bit of data in the frame.  Simply transmit one more useless    */
;/*   byte, that will be corrupted instead of the useful data.                */
;/*****************************************************************************/

; Flash handler variables

CTRLBYT         ds      1       ; byte of control of the size of erasure
CPUSPD          ds      1       ; frequency of the pump of load
LADDR           ds      2       ; address last byte has to write
BUMPS           ds      1       ; a number of attempts at writing maximum :
                                ; 10 per 12 ms max with Fcpu = 2MHz
DERASE          ds      2       ; time of erasure (in us/24)
Data            ds      8       ; buffer of transfer of RAM/flash data

; transmit variables
; Preamble (2 bytes) - Device ID (4 bytes) - daytona data (2 bytes) -
; Status (1 byte) - CRC (1 byte) - Junk (1 byte)

nb_tx_byte      EQU     !11     
Tx_Byte         ds      nb_tx_byte

Current_Tx_Bit  ds      1
Next_Tx_Bit     ds      1
current_tx_byte ds      1
nb_1            ds      2
Last_byte       EQU     {Tx_byte+nb_tx_byte}

; Checksum

Chk_count       ds      1

⌨️ 快捷键说明

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