Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
use millis.c for 1 msec T2 interrupt
02-01-2012, 04:17 AM,
#1
use millis.c for 1 msec T2 interrupt
A way i have found searching INT_MILLISEC and looking in pinguino folders.
i found INT_MILLISEC in interrupt.c of p8 folder so i suppose that the OnTimer.pde work for pic18xxx.
then i try tu use just builded routines.
Thanks to regis blanchot and jean-pierre mandon and all others.
arturo


Attached Files
.pdf   use millis.c for 1 msec T2 interrupt .pdf (Size: 38.26 KB / Downloads: 11)
Reply
02-01-2012, 12:55 PM,
#2
RE: use millis.c for 1 msec T2 interrupt
You're right, OnTimer functions are available only for 8-bit.
You don't need to call millis_init(); it will be automatically done by the IDE within main32.c


(02-01-2012, 04:17 AM)arturo.tramontini Wrote: A way i have found searching INT_MILLISEC and looking in pinguino folders.
i found INT_MILLISEC in interrupt.c of p8 folder so i suppose that the OnTimer.pde work for pic18xxx.
then i try tu use just builded routines.
Thanks to regis blanchot and jean-pierre mandon and all others.
arturo

It is easier to complain than it is to do, but it is better to do than it is to complain.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)