Yep, I figured it probably have something to do with that.
Strange thing is that the code has been working fine with MCS for over 10 years but now it doesn't. So I've messed something up.
This could be due to your code and how the two terminals work. MCS will send the data when you click 'send', or when you hit 'Enter' if you have the transmit window setting 'Transmit on carriage...
MCP23017@400KHz , using a pic16 @32mhz can do that easily using mssp module
using I2CREAD command. @32 mHz the cmd will do 166KHz at best, even at 64 MHz it will not reach 400kHz
Published on - 2nd July 2010 16:12
Number of Views: 7877
I have been thinking for a while, how to put togeter a simple microstepper controller without using a ready made commercial driver.
At the end, I came up with this simple project capable to drive unipolar stepper motor in three different modes
FULL STEP
HALF STEP
MICRO STEP
The Pic micro used in this work is a Pic 16F628 a powerfull small micro with PWM capability. With this MCU plus a 74HC04 and a74HC86 the controller will produce 20 microsteps out of a nominal motor step.
An additional improvement of this controller, is the capability to accept travel commands of 24 Bits, wich gives to the user the possibility to send positioning profile of over 16 millions steps.
Controller accept commands via TTL serial port @ 9600,n,8,1 and return an (Ack) once the positioning profile has been completed.
Download the zipped MicroStepper.zip file which contains schematic + software + user manual
Also attached is a simple stepper controller example called Stepper_MK2.zip
Re: hserout issues on the 18F26K83
Yep, I figured it probably have something to do with that.
HenrikOlsson Today, 15:13Strange thing is that the code has been working fine with MCS for over 10 years but now it doesn't. So I've messed something up.