Page 1 of 1

PICDEM 2 Plus 4MHZ Canned Osillator or 2MHZ Onboard RC?

PostPosted: Sun Nov 15, 2020 7:44 pm
by CaliforniaSlacker
We want to port code for a 4MHZ delay to other PIC's.

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

Re: PICDEM 2 Plus 4MHZ Canned Osillator or 2MHZ Onboard RC?

PostPosted: Mon Nov 16, 2020 3:19 am
by ric
What PIC is on the PICDEM 2 Plus board?

Re: PICDEM 2 Plus 4MHZ Canned Osillator or 2MHZ Onboard RC?

PostPosted: Mon Nov 16, 2020 9:22 pm
by CaliforniaSlacker
Thanks Ric

Changed to a 16F818 with onboard 32khz oscillator.

It was the most direct way to just keep using code in PIC in Practice book.

Code has delays for 32khz.

Sort of a waste of a nice oscillator and onboard RC circuit.Maybe later.