Home
Prox / RFID
Verichips
Ladder Logic
[interfacing] †
Tube Joints
Key Code From Photo
SolveSpace (3d CAD)
SketchFlat (2d CAD)
Photographs
Miscellany
Resume / Consulting
Contact Me

LDmicro Forum - internal oscillator 16f819

(you are viewing a thread; or go back to list of threads)

internal oscillator 16f819 (by Olivier)
I am working with a 16f819 chip, my program works if i use an external oscillator. If i use an internal one (changed config bits for internal one) it doesnt work, i have set 8mhz speed.
Do i need to add osccon parameter or it defaults to 8mhz.
I dissasemble the hex file and don't see any osccon parameter
i did test the hex file into IDE pic simulator and it does work
Fri Apr 10 2015, 11:05:27
(no subject) (by Olivier)
ok if i put 31.25khz speed in LDmicro it does work , but i need faster clock, i had to put 150 ms cycle time which is way too long
Fri Apr 10 2015, 11:42:33
(no subject) (by MGP)
You must save the hex file in the IDE, after selecting the INTROSC.
Can you post de original ldmicro hex-file.
Fri Apr 10 2015, 14:02:20
(no subject) (by Olivier)
hi here is the hex file from ldmicro with 8mhz (just a simple blinking light for test
)
Fri Apr 10 2015, 16:59:44, download attachment blink test.hex
(no subject) (by Olivier)
here the file after selecting internal osc into pic simulator ide
Fri Apr 10 2015, 17:00:59, download attachment blink3 test.hex
(no subject) (by MGP)
Try this one, the MCLR was marked as input.
I have the same results as you except this pin.
Maybe it works otherwise I don't know the solution. Sorry
Fri Apr 10 2015, 18:12:23, download attachment blinktest (B).hex
(no subject) (by Olivier)
i finally did it, i had to dissamble hex, add this coding into asm file
BCF STATUS,RP1
MOVLW 0x70
MOVWF OSCCON
then recompile it to hex and it now works!
Tue Apr 14 2015, 12:02:20, download attachment blink4 test.hex
(no subject) (by MGP)
Thanks for the solution, good work but complicated.
Tue Apr 14 2015, 12:39:34
(no subject) (by Ihor Nehrutsa)
Fri Feb 17 2017, 05:25:24
Post a reply to this comment:
Your Name:
Your Email:
Subject:
(no HTML tags; use plain text, and hit Enter for a line break)
Attached file (if you want, 5 MB max):