📄 message_handler.lst
字号:
00438 ; @example
00439 ; AFE.setOutputData
00440 ; @end-ex
00441 ; @ex-desc This sets the LFData output to data mode
00442 ;
00443 ; @status Written
00444 ;
00445 ; @stacklevel /*/AFE.WriteRegister /*/AFE.updateColumnParity
00446 ; @registers /*/AFE.WriteRegister /*/AFE.updateColumnParity
00447 ; @calls AFE.WriteRegister /*/AFE.WriteRegister AFE.updateColumnParity /*/AFE.updateColumnParity
00448 ;
00449 ;
00450 ;*/
00451 AFE.setOutputData macro
00452 banksel AFE.ConfMap
00453 bcf (AFE.ConfMap+1),7
00454 bcf (AFE.ConfMap+1),6
00455 movlw 0x01
00456 call AFE.WriteRegister
00457 AFE.updateColumnParity
00458 endm
00459
00460 ;/*
00461 ;
00462 ; This macro sets the LFData output to clock mode.
00463 ; The clock signal of the carrier frequency will now drive the LFdata pin.
00464 ;
00465 ; @example
00466 ; AFE.setOutputClk
00467 ; @end-ex
00468 ; @ex-desc This sets the LFData output to clock mode
00469 ;
00470 ; @status Written
00471 ;
00472 ; @stacklevel /*/AFE.WriteRegister /*/AFE.updateColumnParity
00473 ; @registers /*/AFE.WriteRegister /*/AFE.updateColumnParity
00474 ; @calls AFE.WriteRegister /*/AFE.WriteRegister AFE.updateColumnParity /*/AFE.updateColumnParity
00475 ;
00476 ;
00477 ;*/
00478 AFE.setOutputClk macro
00479 banksel AFE.ConfMap
00480 bcf (AFE.ConfMap+1),7
00481 bsf (AFE.ConfMap+1),6
00482 movlw 0x01
00483 call AFE.WriteRegister
00484 AFE.updateColumnParity
00485 endm
00486
00487
00488 ;/*
00489 ;
00490 ; This macro sets the LFData output to RSSI mode.
MPASM 03.90.01 Released MESSAGE_HANDLER.ASM 11-21-2005 16:07:18 PAGE 19
LOC OBJECT CODE LINE SOURCE TEXT
VALUE
00491 ; The LFdata pin will put out a current proportional to the signal strength of the LF-Field.
00492 ;
00493 ; @example
00494 ; AFE.setOutputRSSI
00495 ; @end-ex
00496 ; @ex-desc This sets the LFData output to RSSI mode
00497 ;
00498 ; @status Written
00499 ;
00500 ; @stacklevel /*/AFE.WriteRegister /*/AFE.updateColumnParity
00501 ; @registers /*/AFE.WriteRegister /*/AFE.updateColumnParity
00502 ; @calls AFE.WriteRegister /*/AFE.WriteRegister AFE.updateColumnParity /*/AFE.updateColumnParity
00503 ;
00504 ;
00505 ;*/
00506 AFE.setOutputRSSI macro
00507 banksel AFE.ConfMap
00508 bsf (AFE.ConfMap+1),7
00509 movlw 0x01
00510 call AFE.WriteRegister
00511 AFE.updateColumnParity
00512 endm
00513
00514
00515 ;/*
00516 ;
00517 ; This macro sets the value for the tuning capacitors at channel X.
00518 ; The input value must not exceed 63.
00519 ;
00520 ; @param w The value of the tuning capacitor
00521 ;
00522 ; @example
00523 ; movlw D'33'
00524 ; AFE.setXTuningCap
00525 ; @end-ex
00526 ; @ex-desc This sets the tuning capacitor of channel X to 33pF(typ)
00527 ;
00528 ; @status Written
00529 ;
00530 ; @stacklevel /*/AFE.WriteRegister /*/AFE.updateColumnParity
00531 ; @registers /*/AFE.WriteRegister /*/AFE.updateColumnParity
00532 ; @calls AFE.WriteRegister /*/AFE.WriteRegister AFE.updateColumnParity /*/AFE.updateColumnParity
00533 ;
00534 ;
00535 ;*/
00536 AFE.setXTuningCap macro ;make function out of it? Let's have a look at the running Code. The Sta
cklevel may be more critical
00537 banksel AFE.Buffer
00538 movwf AFE.Buffer
00539 movf (AFE.ConfMap+1),w
00540 andlw B'11000000'
00541 iorwf AFE.Buffer,w
00542 movwf (AFE.ConfMap+1)
MPASM 03.90.01 Released MESSAGE_HANDLER.ASM 11-21-2005 16:07:18 PAGE 20
LOC OBJECT CODE LINE SOURCE TEXT
VALUE
00543 movlw 0x01
00544 call AFE.WriteRegister
00545 AFE.updateColumnParity
00546 endm
00547
00548 ;/*
00549 ;
00550 ; This macro sets the value for the tuning capacitors at channel Y.
00551 ; The input value must not exceed 63.
00552 ;
00553 ; @param w The value of the tuning capacitor
00554 ;
00555 ; @example
00556 ; movlw D'33'
00557 ; AFE.setYTuningCap
00558 ; @end-ex
00559 ; @ex-desc This sets the tuning capacitor of channel Y to 33pF(typ)
00560 ;
00561 ; @status Written
00562 ;
00563 ; @stacklevel /*/AFE.WriteRegister /*/AFE.updateColumnParity
00564 ; @registers /*/AFE.WriteRegister /*/AFE.updateColumnParity
00565 ; @calls AFE.WriteRegister /*/AFE.WriteRegister AFE.updateColumnParity /*/AFE.updateColumnParity
00566 ;
00567 ;
00568 ;*/
00569 AFE.setYTuningCap macro
00570 banksel AFE.Buffer
00571 movwf AFE.Buffer
00572 movf (AFE.ConfMap+2),w
00573 andlw B'11000000'
00574 iorwf AFE.Buffer,w
00575 movwf (AFE.ConfMap+2)
00576 movlw 0x02
00577 call AFE.WriteRegister
00578 AFE.updateColumnParity
00579 endm
00580
00581 ;/*
00582 ;
00583 ; This macro sets the value for the tuning capacitors at channel Z.
00584 ; The input value must not exceed 63.
00585 ;
00586 ; @param w The value of the tuning capacitor
00587 ;
00588 ; @example
00589 ; movlw D'33'
00590 ; AFE.setZTuningCap
00591 ; @end-ex
00592 ; @ex-desc This sets the tuning capacitor of channel Z to 33pF(typ)
00593 ;
00594 ; @status Written
00595 ;
MPASM 03.90.01 Released MESSAGE_HANDLER.ASM 11-21-2005 16:07:18 PAGE 21
LOC OBJECT CODE LINE SOURCE TEXT
VALUE
00596 ; @stacklevel /*/AFE.WriteRegister /*/AFE.updateColumnParity
00597 ; @registers /*/AFE.WriteRegister /*/AFE.updateColumnParity
00598 ; @calls AFE.WriteRegister /*/AFE.WriteRegister AFE.updateColumnParity /*/AFE.updateColumnParity
00599 ;
00600 ;
00601 ;*/
00602 AFE.setZTuningCap macro
00603 banksel AFE.Buffer
00604 movwf AFE.Buffer
00605 movf (AFE.ConfMap+3),w
00606 andlw B'11000000'
00607 iorwf AFE.Buffer,w
00608 movwf (AFE.ConfMap+3)
00609 movlw 0x03
00610 call AFE.WriteRegister
00611 AFE.updateColumnParity
00612 endm
00613
00614 ;/*
00615 ;
00616 ; This macro sets the attenuation for channel X.
00617 ; The input value must not exceed 15.
00618 ;
00619 ; @param w Half the value of the attenuation in dB
00620 ;
00621 ; @example
00622 ; movlw D'12'
00623 ; AFE.setXSensitivity
00624 ; @end-ex
00625 ; @ex-desc This sets the attenuation for channel X to 24dB
00626 ;
00627 ; @status Written
00628 ;
00629 ; @stacklevel /*/AFE.WriteRegister /*/AFE.updateColumnParity
00630 ; @registers /*/AFE.WriteRegister /*/AFE.updateColumnParity
00631 ; @calls AFE.WriteRegister /*/AFE.WriteRegister AFE.updateColumnParity /*/AFE.updateColumnParity
00632 ;
00633 ;
00634 ;*/
00635 AFE.setXSensitivity macro
00636 banksel AFE.Buffer
00637 movwf AFE.Buffer
00638 swapf AFE.Buffer,f
00639 movf (AFE.ConfMap+4),w
00640 andlw B'00001111'
00641 iorwf AFE.Buffer,w
00642 movwf (AFE.ConfMap+4)
00643 movlw 0x04
00644 call AFE.WriteRegister
00645 AFE.updateColumnParity
00646 endm
00647
00648 ;/*
MPASM 03.90.01 Released MESSAGE_HANDLER.ASM 11-21-2005 16:07:18 PAGE 22
LOC OBJECT CODE LINE SOURCE TEXT
VALUE
00649 ;
00650 ; This macro sets the attenuation for channel Y.
00651 ; The input value must not exceed 15.
00652 ;
00653 ; @param w Half the value of the attenuation in dB
00654 ;
00655 ; @example
00656 ; movlw D'12'
00657 ; AFE.setYSensitivity
00658 ; @end-ex
00659 ; @ex-desc This sets the attenuation for channel Y to 24dB
00660 ;
00661 ; @status Written
00662 ;
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -