Posted on May 17, 2011 at 10:18Hi All, Can any one explain how to compute numbers for MCOMP. I know these number relates to MTIM via the prescalar (MPRSR) but no matter which way I try I can not compute the same numbers that are in the 'Table 40. St...
Posted on May 17, 2011 at 10:18Hi, I have a 2 pole BLDC motor that is to be driven sensorless in voltage mode, closed loop with a target speed of 35000. Working the math gets me: Rpm = 35000 nP = 2 Fm = 1/Rpm = 583 Hz Fe = Fm * nP = 1166.6 Hz Te = 1...
Posted on May 17, 2011 at 10:18Tanio, here's my code, this I'm sure this sets port D as floating input. ; make port all floating input LD A,#0xff LD 0x09,A ; set output latches high CLR 0x0a ; set as all inputs DDDR CLR 0x0b ; clear DDOR after this ...
Posted on May 17, 2011 at 10:18Hi all, device: 2FMC2S5T6 when I attempt to change MPWME I get PDDR change as well! I go to page 1 ; set up MCONF LD A,#0x02 LD 0x53,A ;set MPWE = PWMV - debug off - 2.5uS LD A,#0x20 LD 0x52,A in registers 0x52 I s...