Hello
maybe a very simple question, how do I have to program the PIC16F88 to use it without external clock ?
I just want to use its internal clock at 8 MHz - I found a C instruction osccon := 0x7E; to be set through a flowcode C Command.
But then - how can I test with the EB-006 Multiprogrammer in the internal clock mode ?
And what setting do I have to apply in the PicMicro Configuration Page of PPPv3 ?
Sorry for the maybe to easy question - but I'm a real newbie in PIC Programming
Best regards
PicNewbie
How to use internal clock on 16F88 ?
- Enamul
- Posts: 1772
- Joined: Mon Mar 05, 2012 11:34 pm
- Location: Nottingham, UK
- Has thanked: 271 times
- Been thanked: 814 times
- Contact:
Re: How to use internal clock on 16F88 ?
EB006 should work normally nothing to change..but need to use osccon as you mentioned in c code box in the beginning of code..and the attached config..But then - how can I test with the EB-006 Multiprogrammer in the internal clock mode ?
And what setting do I have to apply in the PicMicro Configuration Page of PPPv3 ?
- Attachments
-
- 88.PNG
- (27.23 KiB) Downloaded 2604 times
Re: How to use internal clock on 16F88 ?
Hallo again,
first of all thanks for this first tip - I got the device running correct in the EB-006 with the internal clock settings - at least I think its running on the internal clock, because the LED blinks even without the quarz on the EB-006 board
and this independent of RC or XTAL setting of the switch of the EB-006 board.
One more question about using the pic with his internal clock setting outside the EB-006 environment:
So now I took the chip out of the card and put it on a very simple circuit just putting
5V to pin 14
Gnd to pin 5
and I connected a Resistor (470 Ohm) to a LEDs Anode to pin 17 the LEDs Kathode to Gnd.
I expected that the LED would blink the same way as the EBlock EB004's LED was blinking in the EB006 environment - but surprise : nothing happens ... the LED is not activated or sometimes blinks just one time then nothing happens anymore ...
What do I do wrong ?
Is there a rule about other unused pin's (ground all unused pins or something like this ?)
Thanks for some more information for a pic newbie
Best regards
first of all thanks for this first tip - I got the device running correct in the EB-006 with the internal clock settings - at least I think its running on the internal clock, because the LED blinks even without the quarz on the EB-006 board
and this independent of RC or XTAL setting of the switch of the EB-006 board.
One more question about using the pic with his internal clock setting outside the EB-006 environment:
So now I took the chip out of the card and put it on a very simple circuit just putting
5V to pin 14
Gnd to pin 5
and I connected a Resistor (470 Ohm) to a LEDs Anode to pin 17 the LEDs Kathode to Gnd.
I expected that the LED would blink the same way as the EBlock EB004's LED was blinking in the EB006 environment - but surprise : nothing happens ... the LED is not activated or sometimes blinks just one time then nothing happens anymore ...
What do I do wrong ?
Is there a rule about other unused pin's (ground all unused pins or something like this ?)
Thanks for some more information for a pic newbie
Best regards
-
- Valued Contributor
- Posts: 2045
- Joined: Wed Aug 27, 2008 10:31 pm
- Location: Netherlands
- Has thanked: 553 times
- Been thanked: 1081 times
- Contact:
Re: How to use internal clock on 16F88 ?
You need to connect a pull-up to pin 4 (MCLR). In your current setup the PIC stays in reset. (An other option is to configure pin 4 to be input by setting 'RA5/MCLR Pin Function Select' to RA5 in the chip properties)
“Integrity is doing the right thing, even when no one is watching.”
― C.S. Lewis
― C.S. Lewis
- Enamul
- Posts: 1772
- Joined: Mon Mar 05, 2012 11:34 pm
- Location: Nottingham, UK
- Has thanked: 271 times
- Been thanked: 814 times
- Contact:
Re: How to use internal clock on 16F88 ?
Yes. You have to follow what karsing is saying.MCLR is active low reset pin for pic ic and pic remains at reset state if you don't pull it high.
Re: How to use internal clock on 16F88 ?
Thanks a lot - that was the little detail that I was missing ...