Skip to content

Commit 2201316

Browse files
author
Alec Miller
committed
MPAE-4022: more explanation
1 parent 00a6cb2 commit 2201316

File tree

1 file changed

+13
-5
lines changed

1 file changed

+13
-5
lines changed

readme.md

Lines changed: 13 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,11 @@ This is a general overview of the application. A more complete explanation can
1818

1919
Numerically Controlled Oscillators are a peripheral which work by creating
2020
an output frequency which is a precise fraction of the input frequency.
21+
This frequency is a function of two values, the input frequency, and the
22+
value of the increment register of the NCO.
2123
This project makes use of three NCOs, a master NCO which determines overall speed,
22-
and a slave NCO for each axis which determines the proportion of speed,
23-
as shown below.
24+
and a slave NCO for each axis which determines the proportion of speed in each
25+
axis, set up as shown below.
2426

2527
![CNC Overview](images/cnc.png)
2628

@@ -31,11 +33,17 @@ the distance.
3133

3234
Additionally, because both frequencies are a function of the master
3335
frequency, if the master frequency is doubled, the speed in both axes will be
34-
doubled, while maintaining the same proportion (e.g X will still be going twice
36+
doubled, while maintaining the same proportion (e.g. X will still be going twice
3537
as fast as Y, and will therefore still cover twice the distance).
3638

37-
By counting the number of output pulses of the master NCO, the distance
38-
travelled by each slave NCO is known. In short, this is because if the master
39+
Direct Memory Address (DMA) is a module which can copy data from one memory
40+
location to another when triggered. Acceleration of the machine can be achieved
41+
by using the DMA to gradually increase or decrease the value in the increment
42+
register of the NCO, resulting in the frequency of the master NCO, and therefore
43+
the speed of movement in the two axes, increasing or decreasing proportionally.
44+
45+
The distance travelled in each direction can be known by counting the number of
46+
pulses from the master NCO. In short, this is because if the master
3947
NCO has produced the requisite number of output ticks, the two slave NCOs have
4048
moved the steppers in both axes the correct distance.
4149

0 commit comments

Comments
 (0)