Continue to Site

Welcome to our site!

Electro Tech is an online community (with over 170,000 members) who enjoy talking about and building electronic circuits, projects and gadgets. To participate you need to register. Registration is free. Click here to register now.

  • Welcome to our site! Electro Tech is an online community (with over 170,000 members) who enjoy talking about and building electronic circuits, projects and gadgets. To participate you need to register. Registration is free. Click here to register now.

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
    AAesp04.gif
    32.7 KB · Views: 455
  • AAesp06.gif
    AAesp06.gif
    19.5 KB · Views: 395
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]
 
Thanks ericgibbs for your post i got it working now. Now it is time to go exploring.
OK. Please go, but do not forget...! :p
 

Attachments

  • index.jpg
    index.jpg
    4.3 KB · Views: 383
Status
Not open for further replies.

Latest threads

New Articles From Microcontroller Tips

Back
Top