samrajaf / pinguino32

Automatically exported from code.google.com/p/pinguino32
0 stars 1 forks source link

Patch for /branches/x.4/p32/include/pinguino/core/millis.c #37

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
There is a minor bug in the millis function for the mx220 function. The initial 
TMR2 value is correct but in the interrupt you must update this value with TMR2 
= 65535 - _tmr2, not with _tmr2. The impact is 5x on the millis impact, since 
the timer restarts to count from initial value to 65535, giving us the 1mS.  
The correction is in line 53.  

Original issue reported on code.google.com by fabio.malagas@gmail.com on 4 Feb 2013 at 10:16

Attachments:

GoogleCodeExporter commented 8 years ago

Original comment by rblanchot@gmail.com on 23 Apr 2013 at 8:47