examples/gene_SYNC_HCS12/readme.txt
author etisserant
Thu, 18 May 2006 21:56:59 +0200
changeset 17 c432930b62c2
parent 0 4472ee7c6c3e
child 54 a2ca09ac1523
permissions -rw-r--r--
Re-orginized led and nvram related code, for generic target.
0
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
     1
Generator of Canopen SYNC message (cobid = 0x80)
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
     2
---------------------------------------------
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
     3
francis.dupin@inrets.fr
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
     4
27 Janv 2005
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
     5
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
     6
Node for Microcontroler MC9S12DP256 
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
     7
on board  T-board (http://www.elektronikladen.de
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
     8
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
     9
=============
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
    10
Node N° 0x03
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
    11
=============
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
    12
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
    13
This node generate only the SYNC signal.
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
    14
(cob-id : 0x80)
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
    15
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
    16
To test this node
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
    17
-----------------
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
    18
Reset it :
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
    19
It is sending :
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
    20
cobid : 0x703
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
    21
data : 00
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
    22
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
    23
 1 - Wants to generate SYNC every 10 milliseconds
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
    24
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
    25
1a - put the value (4 bytes) : 0x00002710 in its dictionary 
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
    26
index 0x1006, subindex 0x00 :
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
    27
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
    28
CAN message (SDO) : 
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
    29
cobid : 0x603
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
    30
data : 23 06 10 00 10 27 00 00
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
    31
(put 23 to transmit a data of 4 bytes
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
    32
     27                       3 bytes
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
    33
     2B                       2 bytes
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
    34
     2F                       1 byte
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
    35
)
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
    36
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
    37
The node is responding :
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
    38
cobid : 0x583
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
    39
data : 60 06 10 00 00 00 00 00
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
    40
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
    41
1b - put the value (4 bytes) : 0x40000080 at index 0x1005, subindex 0x00
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
    42
to start the SYNC : 
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
    43
cobid : 0x603
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
    44
data : 23 05 10 00 80 00 00 40
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
    45
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
    46
The node is responding :
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
    47
cobid : 0x583
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
    48
data : 60 05 10 00 00 00 00 00
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
    49
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
    50
 2 - Put the node in operational mode
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
    51
CAN message (NMT) :
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
    52
cobid : 0x00
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
    53
data : 01 03
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
    54
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
    55
The node is sending the SYNC every 10 ms
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
    56
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
    57
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
    58
Nota
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
    59
-----
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
    60
To stop the SYNC : 2 methods
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
    61
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
    62
1 - put 0x00000000 at index 1006 subindex 0
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
    63
2 - put 0x00000080 at index 1005 subindex 0 
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
    64
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
    65
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
    66
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
    67
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
    68