Re: Could someone please explain this?




"vic" <news@xxxxxxxxxxxxx> wrote in message
news:44f594a8$0$17154$626a54ce@xxxxxxxxxxxxxxx
Michael wrote:
Hi,

I'm writing a program that interfaces with a device on the serial port
and in the documentation it says the folowing:
3.1.1. Header:Code.



The Header:Code combination is configured thus:



Header: 7 6 5 4 3 2 1 0

< Number of Dims> 1 F/A E/S



Where:



Number of Dims is a value between 0 and 22 identifying the number of dims
to be transmitted (22 is equivalent to 100%)



Bit 2 is always set to '1' to ensure that the interface is able to
maintain synchronization.



F/A defines whether the following byte is a function (1) or address (0).



E/S defines whether the following byte is an extended transmission (1) or
a standard transmission (0).







Could someone please explain what "Number of Dims is a value between 0
and 22 identifying the number of dims to be transmitted (22 is equivalent
to 100%)" means?

A link to the documentation:
http://www.marmitek.com/en/software/PROTOCOL.DOC (Bottom of page 2)

Thanks,

Michael



It means bits 7 through 4 form a 5-bit number to be interpreted as the
"dim" value. The value would be : (header & 0xF8) >> 3

There is probably some kind of linear interpolation where 22 means 100%
and 11 50%.

vic

Thanks Vic


.



Relevant Pages

  • Re: Could someone please explain this?
    ... I'm writing a program that interfaces with a device on the serial port and in the documentation it says the folowing: ... Number of Dims is a value between 0 and 22 identifying the number of dims to be transmitted ... E/S defines whether the following byte is an extended transmission or a standard transmission. ...
    (sci.electronics.basics)
  • Could someone please explain this?
    ... I'm writing a program that interfaces with a device on the serial port and ... Number of Dims is a value between 0 and 22 identifying the number of dims to ... standard transmission. ... A link to the documentation: ...
    (sci.electronics.basics)
  • Ethernet over Kernel Sockets
    ... some network cards doesn't have a 'eth' interface under linux. ... Because of that I'm developing a net_device based driver which doesn't transmit and receive directly through a real network card but through UDP kernel sockets. ... The current state is that all works stable but I've bad transmission rates and bad ping times. ... So the eth1 interfaces are based on sockets which use the eth0 interfaces for the communication. ...
    (Linux-Kernel)
  • Re: A very quick, informal survey
    ... > order or sequence of data transmission is important. ... This is why most programmers don't write good end-user documentation, ...
    (comp.programming)
  • Re: Ethernet over Kernel Sockets
    ... some network cards doesn't have a 'eth' ... the eth0 interfaces for the communication. ... if I measure the transmission between 192.168.0.1 ... only get ~1msec (PingPong) and only about ~400Mbit/s. ...
    (Linux-Kernel)