You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
…type instead of a generic IC_Module Type
The Count_Monitor will merely monitor the number of pulses sent by a PWM signal. Therefore, it can be a different, and simpler, type of Input Capture configuration and does not need to use the more complex IC_Module functions or data.
Changed PWM.c to use the Count_Monitor struct instead of the IC_Module struct. This means that when it recognizes a rising edge of a PWM, it merely increments or decrements a counter to show the position of the motor relative to the normal.
Input Capture Module #4 is used to monitor the number of pulses sent to the stepper motor via the PWM Module #2. This count is used to know when the user has moved the stepper too far in one direction and prevents further motion in that direction.
Fixed various issues (like changing Pin A2 unnecessarily and several incorrect if statements in the IC Module #4 Interrupt) that was causing the PIC to send inappropriate signals to the stepper motor, which caused it to malfunction.
Objectives, Functionality, and Plan for Completion to be determined.
The text was updated successfully, but these errors were encountered: