rangerskm
Full Member level 4
- Joined
- Jan 23, 2013
- Messages
- 199
- Helped
- 0
- Reputation
- 2
- Reaction score
- 0
- Trophy points
- 1,296
- Activity points
- 2,663
Code:
#include"p16f73.inc"
org 0x00
bsf status,rp0
movlw 0xff
movwf trisa
clrf trisb
l1: Bcf status,rp0
movlw 0x05
movwf adcon0
btfsc adcon0,2
goto $-1
movf adres,0
movwf portb
goto l1
end
this may be an adc program explain the program with the help of the adc sfrs