Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
PIC 18F4520 [solved]
#4
Hello,

You could manage the config bits in code or in MPLAB or else but you must
only do the config in one place (or exactly know what you're doing).

How do you configure the 32MHz internal oscillator, see ยง2.6.4 of the device datasheet,
I think you could not do this only with config bits.

I would add the following code in ds30loader.asm

Code:
; Set internal oscillator to 8MHz with PLL
movlw    b'01110000'    
movwf    OSCCON
bsf        OSCTUNE, PLLEN

Find attached a screenshot of the config bits.
Could you make a try with theses config bits and the previous piece off code added to "ds30loader.asm".

Hope this helps.

Lotusx



Attached Files Thumbnail(s)
   
Reply


Messages In This Thread
PIC 18F4520 [solved] - by nicorosen - 2010-10-26, 02:08:23
RE: PIC 18F4520 - by Lotusx - 2010-10-26, 08:43:15
RE: PIC 18F4520 - by nicorosen - 2010-11-01, 22:22:33
RE: PIC 18F4520 - by Lotusx - 2010-11-02, 10:52:58
RE: PIC 18F4520 - by Erixk - 2011-02-10, 19:28:52
RE: PIC 18F4520 - by nicorosen - 2010-11-17, 22:15:58
RE: PIC 18F4520 - by Lotusx - 2010-11-17, 22:49:21
RE: PIC 18F4520 - by DaxMAC - 2016-03-08, 16:52:55
RE: PIC 18F4520 - by LMS_EE - 2010-11-22, 16:50:11
RE: PIC 18F4520 - by Mikael Gustavsson - 2010-11-22, 22:22:01

Forum Jump:


Users browsing this thread: 1 Guest(s)