📄 e468.lst
字号:
557 000B C IOCB0 == 0X0B
558 000B C CNT1PR == 0X0B
559 C ;
560 C ; Counter 2 Preset Register
561 C ;
562 000C C IOCC0 == 0X0C
563 000C C CNT2PR == 0X0C
564 C ;
565 C ; High Pulse Width Timer Preset Register
566 C ;
567 000D C IOCD0 == 0X0D
568 000D C HPWTPR == 0X0D
569 C ;
570 C ; Low Pulse Width Timer Preset Register
571 C ;
572 000E C IOCE0 == 0X0E
573 000E C LPWTPR == 0X0E
574 C ;
575 C ; Interrupt Mask Register
576 C ;
577 000F C IOCF0 == 0X0F
578 000F C IMR == 0X0F
579 C ;
580 C ;{ ; "0" : Disable Interrupt.
581 C ; "1" : Enable Interrupt.
582 0080 C mICIE == 0x80 ; Pin Change Wake Up Interrupt Enable Bit
583 0040 C mLPWTE == 0x40 ; Low Pulse Width Timer Interrupt Enable Bit
584 0020 C mHPWTE == 0x20 ; High Pulse Width Timer Interrupt Enable Bit
585 0010 C mCNT2E == 0x10 ; Counter 2 Interrupt Enable Bit
586 0008 C mCNT1E == 0x08 ; Counter 2 Interrupt Enable Bit
587 0004 C mINT1E == 0x04 ; INT1 Interrupt Enable Bit
588 0002 C mINT0E == 0x02 ; INT0 Interrupt Enable Bit
589 0001 C mTCIE == 0x01 ; TCC Interrupt Enable Bit
590 C ;}
591 C ;
592 C ;==============================================================;
593 C ; Register IOC61~IOCF1 ;
594 C ; Must be Set Bit0 of R5 to "1" and use IOW and IOR Instruction;
595 C ;==============================================================;
596 C ;
597 C ; Wake up control Register and IROUT Sink Current Control
598 C ;
599 0006 C IOC61 == 0X06
600 0006 C WUCR == 0X06
601 C ;
602 C ;{
603 0080 C mIROCS == 0x80 ; IROUT/P5.7 Sink current Set Bit.
604 C ; "0" : Normal
605 C ; "1" : Double Current
606 C ; bit 6~4 not use
607 0008 C mWUE8HB == 0x08 ; P8.4~7 Pin Change Wake up Function.
608 C ; "0" : Enable
609 C ; "1" : Disable
610 0004 C mWUE8LB == 0x04 ; P8.0~3 Pin Change Wake up Function.
611 C ; "0" : Enable
612 C ; "1" : Disable
613 0002 C mWUE6HB == 0x02 ; P6.4~7 Pin Change Wake up Function.
614 C ; "0" : Enable
615 C ; "1" : Disable
616 0001 C mWUE6LB == 0x01 ; P6.0~3 Pin Change Wake up Function.
617 C ; "0" : Enable
618 C ; "1" : Disable
619 C ;}
620 C ;
621 C ; TCC Control Register and INT0 Edge Set
622 C ;
623 0007 C IOC71 == 0X07
624 0007 C TCCCR == 0X07
625 C ;
626 C ;{
627 0080 C mINT_EDGE == 0x80 ; INT0 Edge Select Bit.
628 C ; "0" : Rising Edge
629 C ; "1" : Falling Edge
630 0040 C mINT == 0x40 ; INT Enable Flag
631 0020 C mTS == 0x20 ; TCC Signal Source.
632 C ; "0" : Internal Instruction Cycle Clock
633 C ; "1" : Transition on TCC Pin.
634 0010 C mTE == 0x10 ; TCC Signal Edge Select bit.
635 C ; "0" : Rising Edge
636 C ; "1" : Falling Edge
637 0008 C mPSRE == 0x08 ; Prescaler Register Enable Bit.
638 C ; "0" : TCC Rate 1:1,
639 C ; "1" : Depend on Table
640 0004 C mTCCP2 == 0x04 ; TCC Prescaler Select Bit[2]
641 0002 C mTCCP1 == 0x02 ; TCC Prescaler Select Bit[1]
642 0001 C mTCCP0 == 0x01 ; TCC Prescaler Select Bit[0]
643 C ;
644 C ; |----|-----|-----|-----|----------|
645 C ; |PSRE|TCCP2|TCCP1|TCCP0| TCC rate |
646 C ; |----|-----|-----|-----|----------|
647 C ; | 0 | x | x | x | 1:1 |
648 C ; | 1 | 0 | 0 | 0 | 1:2 |
649 C ; | 1 | 0 | 0 | 1 | 1:4 |
650 C ; | 1 | 0 | 1 | 0 | 1:8 |
651 C ; | 1 | 0 | 1 | 1 | 1:16 |
652 C ; | 1 | 1 | 0 | 0 | 1:32 |
653 C ; | 1 | 1 | 0 | 1 | 1:64 |
654 C ; | 1 | 1 | 1 | 0 | 1:128 |
655 C ; | 1 | 1 | 1 | 1 | 1:256 |
656 C ; |----|-----|-----|-----|----------|
657 C ;}
658 C ;
659 C ; WDT(Watch Dog Timer) Control Register
660 C ;
661 0008 C IOC81 == 0x08
662 0008 C WDTCR == 0x08
663 C ;
664 C ;{
665 C ; bit 7~4 not use
666 0008 C mWDTE == 0x08 ; WDT Enable Bit."0":Disable,"1":Enable
667 0004 C mWDTP2 == 0x04 ; WDT Prescaler Select Bit[2]
668 0002 C mWDTP1 == 0x02 ; WDT Prescaler Select Bit[1]
669 0001 C mWDTP0 == 0x01 ; WDT Prescaler Select Bit[0]
670 C ;
671 C ; |-----|-----|-----|----------|
672 C ; |WDTP2|WDTP1|WDTP0| WDT rate |
673 C ; |-----|-----|-----|----------|
674 C ; | 0 | 0 | 0 | 1:1 |
675 C ; | 0 | 0 | 1 | 1:2 |
676 C ; | 0 | 1 | 0 | 1:4 |
677 C ; | 0 | 1 | 1 | 1:8 |
678 C ; | 1 | 0 | 0 | 1:16 |
679 C ; | 1 | 0 | 1 | 1:32 |
680 C ; | 1 | 1 | 0 | 1:64 |
681 C ; | 1 | 1 | 1 | 1:128 |
682 C ; |-----|-----|-----|----------|
683 C ;}
684 C ;
685 C ; Counter1 and Counter2 Control Register
686 C ;
687 0009 C IOC91 == 0x09
688 0009 C CNT12CR == 0x09
689 C ;
690 C ;{
691 0080 C mCNT2S == 0x80 ; Counter 2 Clock Source select bit.
692 C ; "0" : Fs (sub oscillator)
693 C ; "1" : Fm (main oscillator)
694 0040 C mCNT2P2 == 0x40 ; Counter 2 Prescaler Select Bit[2]
695 0020 C mCNT2P1 == 0x20 ; Counter 2 Prescaler Select Bit[1]
696 0010 C mCNT2P0 == 0x10 ; Counter 2 Prescaler Select Bit[0]
697 C ;
698 C ; |------|------|------|----------------|
699 C ; |CNT2P2|CNT2P1|CNT2P0| Counter2 Scaler|
700 C ; |------|------|------|----------------|
701 C ; | 0 | 0 | 0 | 1:2 |
702 C ; | 0 | 0 | 1 | 1:4 |
703 C ; | 0 | 1 | 0 | 1:8 |
704 C ; | 0 | 1 | 1 | 1:16 |
705 C ; | 1 | 0 | 0 | 1:32 |
706 C ; | 1 | 0 | 1 | 1:64 |
707 C ; | 1 | 1 | 0 | 1:128 |
708 C ; | 1 | 1 | 1 | 1:256 |
709 C ; |------|------|------|----------------|
710 C ;
711 0008 C mCNT1S == 0x08 ; Counter 1 Clock Source select bit.
712 C ; "0" : Fs (sub oscillator)
713 C ; "1" : Fm (main oscillator)
714 0004 C mCNT1P2 == 0x04 ; Counter 1 Prescaler Select Bit[2]
715 0002 C mCNT1P1 == 0x02 ; Counter 1 Prescaler Select Bit[1]
716 0001 C mCNT1P0 == 0x01 ; Counter 1 Prescaler Select Bit[0]
717 C ;
718 C ; |------|------|------|----------------|
719 C ; |CNT1P2|CNT1P1|CNT1P0| Counter1 Scaler|
720 C ; |------|------|------|----------------|
721 C ; | 0 | 0 | 0 | 1:2 |
722 C ; | 0 | 0 | 1 | 1:4 |
723 C ; | 0 | 1 | 0 | 1:8 |
724 C ; | 0 | 1 | 1 | 1:16 |
725 C ; | 1 | 0 | 0 | 1:32 |
726 C ; | 1 | 0 | 1 | 1:64 |
727 C ; | 1 | 1 | 0 | 1:128 |
728 C ; | 1 | 1 | 1 | 1:256 |
729 C ; |------|------|------|----------------|
730 C ;}
731 C ;
732 C ; High/Low Pulse Width Timer Control Register
733 C ;
734 000A C IOCA1 == 0x0A
735 000A C HLPWTCR == 0x0A
736 C ;
737 C ;{
738 0080 C mLPWTS == 0x80 ; Low Pulse Width Timer Clock Source select.
739 C ; "0" : Fs (sub oscillator)
740 C ; "1" : Fm (main oscillator)
741 0040 C mLPWTP2 == 0x40 ; Low Pulse Width Timer Prescaler Select Bit[2]
742 0020 C mLPWTP1 == 0x20 ; Low Pulse Width Timer Prescaler Select Bit[1]
743 0010 C mLPWTP0 == 0x10 ; Low Pulse Width Timer Prescaler Select Bit[0]
744 C ;
745 C ; |------|------|------|----------------|
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -