![NEC V850E/CA1 ATOMIC Скачать руководство пользователя страница 464](http://html.mh-extra.com/html/nec/v850e-ca1-atomic/v850e-ca1-atomic_preliminary-users-manual_249281464.webp)
464
Chapter 13
FCAN Interface Function
Preliminary User’s Manual U14913EE1V0UM00
13.5.2 Implementation
details
The event pointers are used to indicate the start of a command sequence that should be executed
whenever an event occurs. If ELISA detects an ERQ flag for a message buffer, it loads the related event
pointer. ELISA will then execute commands starting with the command that number given by the event
pointer. ELISA will end its processing when executing a command with the END flag set (1).
(1)
General flags and buffers
(a) Condition flag (CFLG)
ELISA contains an internal condition flag (CFLG), which is used for conditional execution of com-
mands. It is cleared whenever a new event script is processed. It is set when executing some spe-
cial commands (e.g. decrement counter, test bit). For each command conditional execution can be
selected. If conditional execution of a command is selected (by setting the COND flag in the com-
mand) the command is only executed if CFLG is set (1).
If no conditional execution is selected for a command, the execution of the command automatically
clears the CFLG flag (0).
(b) 64-bit temporary buffer
For temporary storage of data by the event scripts (e.g. counters are required or if a temporary sum
is calculated) a 64-bit temporary buffer is available within ELISA.
The 64-bit can either be used as 8-bit counters or as temporary 16-bit sums. The table below shows
how the 64-bit temporary buffer can be split:
Table 13-18: Format of 64-bit Temporary Buffer
The counters can be set or decremented by certain commands. If a decrement command is exe-
cuted on a counter already set to 0, nothing happens. If a decrement command is executed on a
counter not equal to 0, the counter will be decremented and the new value stored. If the value
becomes zero, the CFLG flag is set, otherwise the CFLG flag is cleared.
The 16-bit temporary sums can be used to add up to 16 bytes by command. As the resulting sum of
16 bytes can be only a 12-bit value the upper 4 bits are used to show the number of bytes added to
the buffer. If 16 bytes in total are added, the upper 4 bits become 0 again. The lower 12 bits are
used to store the total sum.
Table 13-19: Format of Temporary Sum
Bit7 to 0
Bit 15 to 8
Bit 23 to 16
Bit 31 to 24
Bit 39 to 32
Bit 47 to 40
Bit 55 to 48
Bit 63 to 56
Counter 0
Counter 1
Counter 2
Counter 3
Counter 4
Counter 5
Counter 6
Counter 7
Temporary sum 0
Temporary sum 1
Temporary sum 2
Temporary sum 3
Low byte
High byte
Low byte
High byte
Low byte
High byte
Low byte
High byte
Bit 15 to 12
Bit 11 to 8
Bit 7 to 4
Bit 3 to 0
No. of adds
Sum (12-bit)
High byte
Low byte
Содержание V850E/CA1 ATOMIC
Страница 6: ...6 Preliminary User s Manual U14913EE1V0UM00 MEMO ...
Страница 52: ...52 Preliminary User s Manual U14913EE1V0UM00 MEMO ...
Страница 144: ...144 Preliminary User s Manual U14913EE1V0UM00 MEMO ...
Страница 162: ...162 Preliminary User s Manual U14913EE1V0UM00 MEMO ...
Страница 224: ...224 Preliminary User s Manual U14913EE1V0UM00 MEMO ...
Страница 308: ...308 Preliminary User s Manual U14913EE1V0UM00 MEMO ...
Страница 512: ...512 Preliminary User s Manual U14913EE1V0UM00 MEMO ...
Страница 564: ...564 Preliminary User s Manual U14913EE1V0UM00 MEMO ...
Страница 566: ...566 Preliminary User s Manual U14913EE1V0UM00 MEMO ...
Страница 584: ...584 Preliminary User s Manual U14913EE1V0UM00 MEMO ...