vector.com|Contact
Search tips

apple banana
Find rows that contain at least one of the two words.

+apple +juice
Find rows that contain both words.

+apple macintosh
Find rows that contain the word 'apple', but rank rows higher if they also contain 'macintosh'.

+apple -macintosh
Find rows that contain the word 'apple' but not 'macintosh'.

+apple ~macintosh
Find rows that contain the word 'apple', but if the row also contains the word 'macintosh', rate it lower than if row does not. This is "softer" than a search for '+apple -macintosh', for which the presence of 'macintosh' causes the row not to be returned at all.

+apple +(>turnover >strudel)
Find rows that contain the words 'apple' and 'turnover', or 'apple' and 'strudel' (in any order), but rank 'apple turnover' higher than 'apple strudel'.

apple*
Find rows that contain words such as 'apple', 'apples', 'applesauce', or 'applet'.

"some words"
Find rows that contain the exact phrase 'some words' (for example, rows that contain 'some words of wisdom' but not "some noise words").

By continuing to use this site you agree to the use of cookies. For more information and to find out how to change this click here. Accept Cookies
Please enable cookies in your browser for this website.
Search:
Advanced search

VH6501 Segment Length Calculation

Last updated: 2020-01-08
Question:

How can I calculate the segment length for VH6501 disturbance interface based on CAN bit rate?

Answer:

Example calculation for CAN bus bit rate of 500 kbit/s:

1 FPGA tick of the VH6501 Hardware takes 6.25 ns (nanoseconds), which leads with a bit rate of 500 kbit/s to a bit time of 2 µs:

Bit time calculation:
bit time = 1 / bit rate = 1 / 500 kbit/s = 0.002 ms = 2µs

Segment length calculation:
Segment length = bit length / tick length = 2 µs / 6.25 ns = 2000 ns / 6.25 ns = 320

The segment length in VH6501 is 320 given a bit rate of 500 kbit/s.

In CAPL this can be implemented as follows:
result = sequence.AppendToSequence(320, 'R');   // AppendToSequence(word segmentLength, char segmentValue);

Note:

The above calculation is applicable only for VH6501 CAN disturbance interface.

 
Article Options
2020-01-08
Views: 37
Rate this article:  
Also listed in