Hi Melanie. I am the newest guy I think on this forum. I do not even
know how to ask questions. So do not blame me.
I am working now on PIC 18F2455. At first step I try "Led_blinkig" stuff.
Tried this code with 16F628. Compiled it and loaded. It worked. By the way
I use ELNEC programmer to load hex files.
There is a problem with compiling the same code for 18F2455. The error
message I receive is "Error in parameter 18F2455". I couldn't find anywhere
the solution of this problem.
Your help will be appreciated.
The code is:
DEFINE OSC 4
main:
TRISA.0 = 0 ' PORTA.0 is output
PORTA.0 = 1 ' Turn ON diode on PORTA.0
PAUSE 1000 ' Wait for 1 second
PORTA.0 = 0 ' Turn OFF diode on PORTA.0
PAUSE 1000 ' Wait for 1 second
GOTO main ' Endless loop
end


Reply With Quote

Bookmarks