| ??? 06/24/02 17:08 Read: times |
#24813 - A/D port scan through polling in 87C552 |
hi
I am scanning ADC channel 2 through polling and when i try to scan the next, it scans the first one inspite of the maximum delay being given to the second scan. kindly help. srividya Here is the code, MAIN1: MOV ADCON,#02 ;CHANELL 2 SCANNING MOV A,ADCON ORL A,#08H ;SET BIT ADCS MOV ADCON,A BACK: MOV A,ADCON ANL A,#10H CJNE A,#00,ADC_SET JMP BACK ADC_SET: MOV A,ADCH MOV REG_RATE,A MOV ADCH,#00H CALL DELAY MOV ADCON,#03 ;CHANNEL 3 SCANNING MOV A,ADCON ORL A,#08H ;SET BIT ADCS MOV ADCON,A BACK1: MOV A,ADCON ANL A,#10H CJNE A,#00,ADC_SET1 JMP BACK1 ADC_SET1: MOV A,ADCH MOV REG_ITIME,A MOV ADCH,#00H CALL DELAY JMP MAIN1 |
| Topic | Author | Date |
| A/D port scan through polling in 87C552 | 01/01/70 00:00 | |
| RE: A/D port scan through polling in 87C552 | 01/01/70 00:00 | |
| RE: A/D port scan through polling in 87C552 | 01/01/70 00:00 | |
RE: A/D port scan through polling in 87C552 | 01/01/70 00:00 |



