Hi, I have a small IRQ-handler, using PIC16F84 TMR0 and RB0 interrupts, implemented in MPLAB-C, i don't think there willl be any problems in compiling with HITECH, since it is ANSI-C. If you want I can search my files and mail it to you. It should get you started.... You can easily have a mainloop, since the pic jumps to the __INT() function when an interrupt occurs. Look in your 16c84.h file. Regards Henrik. -----Oprindelig meddelelse----- Fra: netQ (German) [SMTP:netquake@INNOCENT.COM] Sendt: 29. maj 1999 12:59 Til: PICLIST@MITVMA.MIT.EDU Emne: Interrupt vector in HitechC Hello! I've been checking HitechC demo and I'm afraid led.c is not enough as an example for beginners. I would be very happy if anybody could tell me how should I code my external interrupt routine under this language (I mean, can I have a main program loop, and apart from that a different piece of code that should be executed when an interrupt is detected?) Thank you very much! P.S: *Any* C code example is welcome. ------------------------------------ netQ http://virtuaweb.com/picprog "Home of amateur PIC programmers..." -----BEGIN PGP PUBLIC KEY BLOCK----- Version: 2.6.2 mQCNAzV38BkAAAEEALfWv9j3f+tZ+z2IW+2o9Ebx4bUGnHjHPqIe0a6yVKawaeV/ Y4I6L2/A0ddbVMG8+qJ0MvHNkr3DzYkpW+hTl9zAzXkKBdZ3GA5bbvot7entl/O2 YDtRWUV730koxBo5iFFUbJH5kbmkox+h3znj34zPnZNWzNaqOAwol3wABfBNAAUT tBxOZXRRIDxuZXRxdWFrZUBpbm5vY2VudC5jb20+ =0bVU -----END PGP PUBLIC KEY BLOCK-----