pic16f1829 external oscillator
-
- Posts: 2
- http://meble-kuchenne.info.pl
- Joined: Thu Dec 10, 2020 3:04 pm
pic16f1829 external oscillator
good evening, my apologies if im being stupid here but im having trouble with the pic16f1829 ic using an external 19.6608mhz crystal and oscillator. the code im using is just a basic count and display, with a delay of 1 sec. the problem i am having is that the delay is far to long to be a second delay. if i change to internal oscillator the count is pretty accurate using 16mhz internal frequency. if i look at the config settings when selecting external it is saying to use pin ra7 for clkin which does not actually exist on this ic. i am connecting circuit using the clkin pin from datasheet which is pin ra5. it is the same for pic16f1828. i am using flowcode v8.
-
- Valued Contributor
- Posts: 1528
- Joined: Thu Dec 03, 2020 10:57 am
- Has thanked: 353 times
- Been thanked: 549 times
Re: pic16f1829 external oscillator
Hi
No, not a stupid question. FC does seem to think the pins are RA7 instead of RA5 in v8.
FCv10 does have the correct pins. Have you considered upgrading yet? I don't think v8 is still officially supported and if so may be near end of life
Is there a reason you can't use the internal oscillator feature? If you can't you should be able to use a C-Block at the very start of your program to configure the chip correctly. I don't have the datasheet to hand so can't check what needs to be set.
Regards
No, not a stupid question. FC does seem to think the pins are RA7 instead of RA5 in v8.
FCv10 does have the correct pins. Have you considered upgrading yet? I don't think v8 is still officially supported and if so may be near end of life
Is there a reason you can't use the internal oscillator feature? If you can't you should be able to use a C-Block at the very start of your program to configure the chip correctly. I don't have the datasheet to hand so can't check what needs to be set.
Regards
Re: pic16f1829 external oscillator
thank you for you reply, i just wanted accuracy to be honest hence using 19.6608mhz to generate the 1 sec delay. i will look into changing the pins over with c block. i have not used fc for a while so was not planning on upgrading yet just to use this ic.
cheers
darren
cheers
darren