Obi_X
New Member
I've been looking for any functional examples of code in C18 that will generate a simple PWM type signal that I can connect an oscilloscope to and observe...
I am using a PIC18F4550.
I've tried countless things that are 'supposed' to work, but I must be missing something in the theory, can anyone give me a functional piece of C18 code that I can measure on an o'scope? The end result I'm after is to control a stepper motor, so something with about a 20ms period and a 1.5ms DutyCycle.
I can't believe it is this difficult, must have enjoyed the weekend to much and sacrificed those brain cells
Thanks!
I am using a PIC18F4550.
I've tried countless things that are 'supposed' to work, but I must be missing something in the theory, can anyone give me a functional piece of C18 code that I can measure on an o'scope? The end result I'm after is to control a stepper motor, so something with about a 20ms period and a 1.5ms DutyCycle.
I can't believe it is this difficult, must have enjoyed the weekend to much and sacrificed those brain cells
Thanks!