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...
Atom058 Today, 13:23looks like it wants MSB first..... mode 1 on shiftout ???
amgen Today, 03:36Yes, 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...
Atom058 Yesterday, 14:11Hmm...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!
CuriousOne Yesterday, 05:01Well, 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...
THANKS! Good catch and yes, I feel stupid. I will give this a try and let you know if that was it! Jeff
Atom058 - 13th May 2025, 20:52Looks like you're shifting out $1180 divided by 16, truncated to 8 bits, so $22. That's not what you want, is it?
Be careful with / vs \ ;-)
Likely no direct drop-in with those exact specs. Consider lower speed, external clock, or other PIC families (needs PCB change).
WonderNom - 13th May 2025, 10:35
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.
...