pic 18f4520

Status
Not open for further replies.

Goos_E

New Member
I tried to connect a pic 18f4520. I get it to program, but it won't run. I want to use the internal oscilator. How do setup the pic 18 ide to use the internal oscilator.
 
I tried to connect a pic 18f4520. I get it to program, but it won't run. I want to use the internal oscilator. How do setup the pic 18 ide to use the internal oscilator.

hi,
In Oshonsoft Options/Configuration

E
 

Attachments

  • AAesp04.gif
    32.7 KB · Views: 464
  • AAesp06.gif
    19.5 KB · Views: 406
Mij code is as follows,

Code:
Define CONFIG1L = 0x00
Define CONFIG1H = 0x08
Define CONFIG2L = 0x19
Define CONFIG2H = 0x1e
Define CONFIG3L = 0x00
Define CONFIG3H = 0x87
Define CONFIG4L = 0x81
Define CONFIG4H = 0x00
Define CONFIG5L = 0x0f
Define CONFIG5H = 0xc0
Define CONFIG6L = 0x0f
Define CONFIG6H = 0xe0
Define CONFIG7L = 0x0f
Define CONFIG7H = 0x40
TRISD = 0

main:
PORTD = 255
WaitMs 1000
PORTD = 0
WaitMs 1000

Goto main]
 
Status
Not open for further replies.
Cookies are required to use this site. You must accept them to continue using the site. Learn more…