16F88 clock configuration Melabs PicBasicPro

Status
Not open for further replies.

tgq

Full Member level 5
Joined
Jul 15, 2002
Messages
289
Helped
7
Reputation
14
Reaction score
4
Trophy points
1,298
Activity points
2,360
osccon 16f88 4mhz

Hi

I try to use PIC 16F88 with internal RC clock @8MHz but it seem not to work ???

What's wrong in my test code ?

DEFINE OSC 8 ' 8 MHz
OSCCON = %01110110 ' Clock configuration
OSCTUNE = %00000000
' PORTA / ADC CONFIGURATION
CMCON = %00000111 ' Disable analog comparators
ANSEL = %00000001 ' Set PORTA.0 to analog input, others to digital
ADCON0 = %11000001 ' Configure and turn on A/D Module.
ADCON1 = %10000000 ' Right Justify A/D result
Pause 500 ' Wait .5 second
loop:
high portB.0
pause 1
low portB.0
pause 1
goto loop
End

Thanks
 

pic basic pro reset

hi

as for as i know internal rc clock maximum working frequency is 4MHz
 

pic basic pro clock

Hi Fragrance
Extract from 16F88 datasheet p.3
• Internal oscillator block:
- 8 user selectable frequencies: 31 kHz,
125 kHz, 250 kHz, 500 kHz, 1 MHz, 2 MHz,
4 MHz, 8 MHz

Output oscillation isnt stable, PbP seems not to reset wdt when delay function are used, i will try to disable the dog
 

16f88 porta setup

Hi once again Fragrance
Yes the PBP doesnt reset the watchdog, i saw pulse trains and long stops with the scope. I disabled it while programming and now it works fine, internal OSC really is @8MHz
Great chip :lol:
 

Status
Not open for further replies.

Similar threads

Cookies are required to use this site. You must accept them to continue using the site. Learn more…