I tried decreasing the frequency and still nothing changed. The motor only runs when I'm at speed2, speed3 and speed4. At speed0, it does stop but only having a problem with speed1. Speed1 is only functioning when I move from speed2 to speed1. I was thinking giving it a boost for 0.6 s could have helped it move in case it didn't have enough momentum to run but to no avail.
Anyways, from the result of my testing on a scooter dc motor(24V), the result I got instead was that in speed1 it did not run at all, speed2 it was barely running and speed3 and speed4 was working fine. Discussed it with my lecturer and it was decided to change the duty cycle range to 70% to 100% in steps of 10%. Though I haven't seen the result of the change as I ran out of time but will keep you posted.
About the ECCP1CON, I've looked into it before but have no idea how to do the programming for it and the control needed to connect it to a H bridge. Looked for the asm codes for it but mostly had them in C format. Sadly, I only know how to program in assembly language since I just started learning this 2 months ago.