hkBattousai
Advanced Member level 4
18f4550 internal oscillator
I'm quite new to PIC programming. This morning I designed my first PIC based circuit using an online tutorial which simply flashes a led.
The circuit used the internal oscillator of the PIC. But I want to use an external crystal oscillator.
I'm using MPLAB IDE 8.10, assembly language, and the the configuration part of my code is as below :
I think there has to be a modification in the last line, but I couldn't find out what to do after a long Google search.
Can somebody help me on this?
And I have one more thing to ask,
Assembly language is quite mind boggling when dealing with complicated projets. Sometimes I see people writing C code for PIC projects on the net. What IDE they use? Does MPLAB support PIC C? Please guide me.
Any help will be appreciated.
I'm quite new to PIC programming. This morning I designed my first PIC based circuit using an online tutorial which simply flashes a led.
The circuit used the internal oscillator of the PIC. But I want to use an external crystal oscillator.
I'm using MPLAB IDE 8.10, assembly language, and the the configuration part of my code is as below :
Code:
CONFIG WDT = OFF ; Disable watchdog timer
CONFIG MCLRE = ON ; MCLEAR Pin on
CONFIG DEBUG = ON ; Enable Debug Mode
CONFIG LVP = OFF ; Low-Voltage programming disabled (necessary for debugging)
CONFIG FOSC = INTOSCIO_EC ; Internal oscillator, port function on RA6
I think there has to be a modification in the last line, but I couldn't find out what to do after a long Google search.
Can somebody help me on this?
And I have one more thing to ask,
Assembly language is quite mind boggling when dealing with complicated projets. Sometimes I see people writing C code for PIC projects on the net. What IDE they use? Does MPLAB support PIC C? Please guide me.
Any help will be appreciated.