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

(instructions, reset, WDT, specifications...) PIC12F6xx, PIC16Fxxx, PIC16F6x, PIC16F7x

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

Postby CaliforniaSlacker » Sun Nov 15, 2020 7:44 pm

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
CaliforniaSlacker
 
Posts: 21
Joined: Mon Feb 19, 2018 8:01 am

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

Postby ric » Mon Nov 16, 2020 3:19 am

What PIC is on the PICDEM 2 Plus board?
Latest test project, an LED matrix display made from one reel of addressable LEDs. here
User avatar
ric
Verified identity
 
Posts: 659
Joined: Sat May 24, 2014 2:35 pm
Location: Melbourne, Australia
PIC experience: Professional 5+ years with MCHP products

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

Postby CaliforniaSlacker » Mon Nov 16, 2020 9:22 pm

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.
CaliforniaSlacker
 
Posts: 21
Joined: Mon Feb 19, 2018 8:01 am


Return to 14-Bit Core

Who is online

Users browsing this forum: No registered users and 5 guests

cron