#include "mc32p7511.inc"

        ORG     0X0000
        GOTO    START
          
         
START:       
        MOVAI   0XFd   ;P01输入不上拉
        MOVRA    OEP0
      
        MOVAI   0Xff
        MOVRA   OEP1        
        movai       0x01
        movra       ADCR0      ;内部参考3V                
        movai       0x05
        movra       ADCR1      ;测内参3V时要开AD ，输出至P01  P01要设为输入不上拉才能测内参 
        ;MOVAI   0X01;高频
        ;nop;MOVAI   0X06;低频
        ;;MOVAI   0X00
        ;nop;MOVRA   OSCM
        ;goto   LOOP
        ;fill 0xa5a5,0x300
LOOP:
         ;CLRWDT
         COMR   IOP0
         NOP
         GOTO   LOOP
         
         END