I found this helpful site last night. It shows the code and the related capacitor value;
Sorry, it was 00h30(I think) when I made my last post, and had to go to bed. Let me know how it’s going…
OK I"m back. So for this circuit to work I have to turn off the pull up resistor in code right?
Don’t have to turn it off, the added resistor just helps it pull up. So you can turn it off, if you want, but you don’t have to.
Ok I tried it off - It didn’t work. Tried it on. Eurkea! it works!
This is both good and bad. Good that it works, bad because I don’t have 3 100nF capacitors, I only have 2. Will have to wait weeks for another.
Can I use a 1uF capacitor with a 1K resistor instead?
So, the X axis runs to the limit switch, stops then reverses. Success!
New Problem: Heat! The little chip in the center there is getting so hot I can smell the hot air when I stand over it. The solution: The fan!
So the solution only works for 1 axis. When I hook up the circuit for the Y axis I get a double event on the interrupt and erratic behavior on the motor (as before). I don’t have optical isolators. Is there a way that will work for multiple axis?
I’ll try to program the 3 analog inputs to check the voltages.
Did you duplicate the whole circuit for every axis?
There must be one resistor and one capacitor for every axis…
I did it for the 2 axis which were connected at the time. I made 2 circuits; one for the x and one for the y. When testing the movement of the y, it gave the strange behavior (it seemed to be like an oscillation)
Ok I Implemented the Analog in function and it seems to work for the x axis. Now testing on all axis!
(Being a bit verbose on the statues today)
So the CNC moves on the X and Y axis just fine to and from each limit/home switch. The Z axis is giving problems; it seems that it’s a bit to heavy to move.
Does the threaded rod turn freely? It should have amazing power…
It turns freely; I can’t stall it. It’s not that fast since the program isn’t complete as yet. Also I’ve noticed a problem in trying to run all 3 steppers and I think that it may be not enough power. I may switch to the ATX PSU. Wanted to do a video but the thing is so slow I’m wondering if to do a time lapse in stead 
I also saw in my setup that using a threaded rod is slow, but it is also powerful, which is what you need for this…
But if everything runs smoothly then the Z axis must be REALLY heavy for it not to move… 
Yes actually it is very heavy. I think that the Y and Z axis is heavier than the base with the X axis. I think that it’s a power problem because I used to be able to move the Z axis. It is only when I try to move all 3 axis that I get the weird behavior. And I can’t even get to show you all a video because I can’t get the video of the SD card.
I want to write as little code in RLP as possible because I have no good way of debugging said code. Is there any code snippet that will demo on how to read from an analog register?
This project reads audio data via RLP and has the companion .NETMF project:
Here is a youtube link of the machine moving.
[url]- YouTube
When doing RLP programming you basically have to read the datasheet to find out the register addresses to read and write values and you’re all set?
With that in mind, then how do I access the 16 bit timers?