Amgen - Thanks for your input. Yes, I have tried both Mode 0 and 1 with no luck. I have also tried reversing the SCS pin (low, shiftout, high as opposed to high, shiftout, low) and nothing there...
Yes, I did set ADCON1 and no, I have not used a scope on this yet. Here is the entire code. I am simply trying to initialize the driver and run a stepper back and forth with 2 LEDs that indicate...
Hmm...PortA...have you disabled the analog functions (ADCON1 and CMCON registers, I believe)?
Have you verified (logic analyzer or scope) that the expected data does appears on the pins?
Yes, I already started re-designing the PCB, and discovered that there's an error in datasheet - PIC18F66K80 actually has 52 IO pins, not 54, as stated in the beginning of datasheet!
Well, While that was a problem, it was not THE problem. Still no movement. I tried both mode 1 and mode 0 for the SHIFTOUT methods, also, to no avail.
Here is a snip of the circuit board design...
Two Button detect for long press same time
Hi all,
Gevo Today, 14:52I have on a panel two capacitive buttons, Fan (three steps) and Light control (three steps)
Short press -> Fan step_1, press -> Step_2 press -> Step_3. Same with te Light button.
...