Interrupt:syntax error

Discussion about projects that used PIC Microcontroller, Hardware Interface, Programming Algorithm and etc......

Interrupt:syntax error

Postby hokelvin66 » Mon Jan 27, 2014 9:25 pm

i was making 4 digit 7 segment multiplexer using PIC18F2550 using C18-compiler.However i had faced a problem that my "void interrupt isr (void)" encounter "c:45:error:syntax error" and the other code was fine.What is the problem? :cry:
Attachments
4 digit 7 segment multiplxer.rar
(1.48 KiB) Downloaded 225 times
hokelvin66
Novice
 
Posts: 22
Joined: Mon Jan 14, 2013 7:49 pm

Re: Interrupt:syntax error

Postby ober » Tue Jan 28, 2014 2:13 pm

Do check the C18 C compiler User's Manual. In PIC18F, there is high and low priority interrupt, so should be two interrupt functions.
Ober Choo
Cytron Technologies Sdn Bhd
www.cytron.com.my
User avatar
ober
Moderator
 
Posts: 1486
Joined: Wed Apr 15, 2009 1:03 pm


Return to PIC Microcontroller

Who is online

Users browsing this forum: No registered users and 2 guests