ram.h

来自「胎压检测发送端汇编源码-tpms-transmitters」· C头文件 代码 · 共 38 行

H
38
字号
;/*****************************************************************************/
;/* 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

SEED            ds      1

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 + =
减小字号Ctrl + -
显示快捷键?