Want to keep loops small.
Should we use the 4MHZ oscillator or the 2MHZ one?
We have code from our PIC in Practice lesson book.It is for 4MHZ.
Here is the delay code.It is all bunched together because it is copied from a .PDF. Sorry!
- Code: Select all
;P1 SECOND DELAY
DELAYP1 MOVLW .10
MOVWF COUNT
TIMEC CALL DELAY
DECFSZ COUNT
GOTO TIMEC
RETLW 0