Tour flows » History » Version 7

Txinto Vaz, 11/13/2014 04:43 PM

1 6 Txinto Vaz
h1. Flows
2 1 Txinto Vaz
3 7 Txinto Vaz
A flow is a [[magnitude]] (logical or physical) "flowing" through the system.  Examples are:
4 7 Txinto Vaz
5 7 Txinto Vaz
* The voltage sensed by an ADC in an MCU pin.
6 7 Txinto Vaz
* The voltage through a connector pin.
7 7 Txinto Vaz
* The signal that enables the CAN transceiver.
8 7 Txinto Vaz
* An internal data of the Microcontroller.
9 7 Txinto Vaz
* A CAN signal.
10 7 Txinto Vaz
...
11 7 Txinto Vaz
12 7 Txinto Vaz
The flow is described by:
13 7 Txinto Vaz
14 7 Txinto Vaz
|_.Property|_.Description|_.Required?|
15 7 Txinto Vaz
|name| Name of the flow| (v) |
16 7 Txinto Vaz
|type| [[Flow Type|Type]] of the flow| (v) |
17 7 Txinto Vaz
|primary flow direction| Describes the primary [[direction of the flow]].  A flow can be used in many parts of the system with different directions, but this is the global "intention" of the flow towards the system | (x) |
18 1 Txinto Vaz
19 1 Txinto Vaz
We can see a flow that is representing a digital input of the system: the ignition button of the car.
20 1 Txinto Vaz
21 1 Txinto Vaz
http://ucanca.gatatac.org/flows/34-in-but-ignition
22 1 Txinto Vaz
23 1 Txinto Vaz
{{iframe(http://ucanca.gatatac.org/flows/34-in-but-ignition,1024,400,yes)}}
24 1 Txinto Vaz
25 1 Txinto Vaz
In this web page we can see:
26 1 Txinto Vaz
27 1 Txinto Vaz
* Flow properties:
28 1 Txinto Vaz
** Type (in this case is a DIO - digital input output -).
29 1 Txinto Vaz
* SubSystem flows: the subsystems that are using the flow.  In this example we can read:
30 1 Txinto Vaz
** The CU subsystem (CU is the abbreviation of ControlUnit in this project) is using it as an input located the first pin of its J3 connector.
31 5 Txinto Vaz
** The CU_micro subsystem (it is actually the microcontroller inside the ControlUnit system) is using it as an input located in the pin 11 of its {{fn(PINOUT, microcontrollers do not have different connectors, we usually use a virtual PINOUT connector that groups all the inputs and outputs.  Sometimes we make a partition of the real pinout, f.i. FUNCTIONAL pins and MCUSUPPORT pins for functonal I/O and support I/O like the oscillator, the power or the ADC reference of a microcontroller)}} connector.
32 1 Txinto Vaz
** The CU_micro_lights subsystem (actually a functional software module called LIGHTS inside the microcontroller software) is using it as pin {{fn(7,when dealing with software modules, this number is irrelevant)}} of its {{fn(DRE,Data Runtime Environment, another virtual connector that represents the pool of sofware variables shared by all the software modules as an internal bus)}} connector.
33 3 Txinto Vaz
* The automatically generated source code.  If a flow is relevant to software it normally has a software data variable inside the DRE.  Here we can see how that variable will be declared and how will be acquired or synthesized.  We will review how this is done later in this tour.
34 3 Txinto Vaz
* The automatically generated {{fn(calibration configuration code,uCANca does not include the calibration module yet, as it has been implemented as standalone tool and still have to be merged into uCANca.  See the roadmap at http://gatatac.org/projects/ucanca/roadmap)}}.
35 4 Txinto Vaz
36 4 Txinto Vaz
In the next chapter we will visit a subsystem.