]> rtime.felk.cvut.cz Git - fpga/pwm.git/blob - README
Wave_table initialization data format modified.
[fpga/pwm.git] / README
1 //==============================================================================
2 // DUAL-PORT RAM MAPPING
3 //==============================================================================
4 // This memory is an interface to the master MCU. Here is brief memory map
5
6
7 // b'0000xxxx' - general registers of 1 axis
8 // b'0001ppxx' - registers of all phases (pp - phase number)
9
10 // address line width for 1 axis is 5 bits
11
12 0x00 : MCC enable flags
13 0x01 : IRC
14 0x02 : IRC base
15 0x03 : IRC max
16 0x04 : Angle
17 0x05 : Action
18 0x06 : Min PWM
19 0x07 : reserved (Angle scale)
20 0x08 : reserved (Scaled Angle)
21 0x09 : reserved (Table base)
22 0x0A : reserved (P2 offset)
23 0x0B : reserved (P3 offset)
24 0x0C : reserved (Table index mask)
25 0x0D : reserved (PWM PID - P)
26 0x0E : reserved (PWM PID - I)
27 0x0F : reserved (PWM PID - D)
28
29 // Phase 1
30 0x10 : Phase1
31 0x11 : PWM1   // PWMx = Phasex * Action
32
33 // Phase 2
34 0x14 : Phase2
35 0x15 : PWM2
36
37 // Phase 3
38 0x18 : Phase3
39 0x19 : PWM3
40
41
42 //==============================================================================
43 // MOTION-CONTROL-CHAIN COMPONENTS
44 //==============================================================================
45 // Positions of all units in MCC. Each unit handle specific task. They can be
46 // enable/disabled by 0x00 register (MCC enable flags) - bits correspond to
47 // indexes in this table.
48
49  0 : IRC dump
50  1 : ICR angle decoder
51  2 : Vector generator
52  3 : Reference value generator (PWM value)
53  4 : reserved (PID controller)
54  5 : PWM dump
55