Difference between revisions of "RockyLogic Ant18e"

From sigrok
Jump to navigation Jump to search
m
(→‎Protocol: More protocol info.)
Line 29: Line 29:
This mode lets the host receive the status of all probes immediately. It's used by the original software to animate the "pins" display when a proper acquisition is not running.
This mode lets the host receive the status of all probes immediately. It's used by the original software to animate the "pins" display when a proper acquisition is not running.


The host sends the two-byte command '''0x19 0x92''', and receives in return 18 bytes containing the state of all probes. Each byte has the information for one probe, encoded as follows:
The host sends a two-byte command (Ant18e: '''0x19 0x92''', Ant8: '''0x19 0x88'''). The second bytes seems to have bit 7 always set to 1, and (some of) the remaining bits (6..0) encode the number of bytes/probes to get (18 for Ant18e, 8 for Ant8).


* Bits 7-3: the probe ID, from 0 to 17 (shift right 3 bits)
The host then receives in return a number of bytes (Ant18e: '''18 bytes''', Ant8: '''8 bytes''') containing the state of all probes. Each byte has the information for one probe, encoded as follows:
* Bits 2-0: ''change count -- number of logic state changes on the probe since last sampling''
 
* Bits 7-3: The probe ID (Ant18e: 0-17, Ant8: 0-7); shift right 3 bits.
* Bit 2: If 1/high, this means a falling edge occured on the respective probe(?)
* Bit 1: If 1/high, this means a rising edge occured on the respective(?)
* Bit 0: The state of the respective signal (0: low, 1: high).
 
Example on Ant8:
* Host sends: 0x19 0x88
* Host receives (for example):
** 0x00 0x10 0x20 0x30 0x40 0x50 0x60 0x70 (all 8 probes are low)
** 0x00 0x13 0x20 0x30 0x40 0x50 0x60 0x70 (probe 1 went from low to high == rising edge)
** 0x00 0x11 0x20 0x30 0x40 0x50 0x60 0x70 (probe 1 is high, and was high before too)
** 0x00 0x14 0x20 0x30 0x40 0x50 0x60 0x70 (probe 1 went from high to low == falling edge)
** 0x00 0x10 0x20 0x30 0x40 0x50 0x60 0x70 (probe 1 is low, and was low before too)

Revision as of 00:04, 17 December 2011

RockyLogic Ant18e

The RockyLogic Ant18e is a 1GHz logic analyzer. It has 18 probes and is powered via USB.

See RockyLogic_Ant18e/Info for more details (such as lsusb -vvv output) about the device.

Components

  • Xilinx XC3S200 (FPGA)
  • Xilinx XC9572XL (CPLD)
  • FTDI FT245RL (USB FIFO device)
  • IDT 501MLF (clock multiplier)
  • 25MHz crystal

Status

Support for this device is currently being worked on.

Protocol

The protocol for Ant8 / Ant16 / Ant18e seems to be very similar, so this section documents all variants.

Since the device uses an FTDI chip for USB communication with the host, the common endpoint configuration for devices like this is used: endpoint 1 for device-to-host communication, and endpoint 2 for host-to-device.

Quick sample mode

This mode lets the host receive the status of all probes immediately. It's used by the original software to animate the "pins" display when a proper acquisition is not running.

The host sends a two-byte command (Ant18e: 0x19 0x92, Ant8: 0x19 0x88). The second bytes seems to have bit 7 always set to 1, and (some of) the remaining bits (6..0) encode the number of bytes/probes to get (18 for Ant18e, 8 for Ant8).

The host then receives in return a number of bytes (Ant18e: 18 bytes, Ant8: 8 bytes) containing the state of all probes. Each byte has the information for one probe, encoded as follows:

  • Bits 7-3: The probe ID (Ant18e: 0-17, Ant8: 0-7); shift right 3 bits.
  • Bit 2: If 1/high, this means a falling edge occured on the respective probe(?)
  • Bit 1: If 1/high, this means a rising edge occured on the respective(?)
  • Bit 0: The state of the respective signal (0: low, 1: high).

Example on Ant8:

  • Host sends: 0x19 0x88
  • Host receives (for example):
    • 0x00 0x10 0x20 0x30 0x40 0x50 0x60 0x70 (all 8 probes are low)
    • 0x00 0x13 0x20 0x30 0x40 0x50 0x60 0x70 (probe 1 went from low to high == rising edge)
    • 0x00 0x11 0x20 0x30 0x40 0x50 0x60 0x70 (probe 1 is high, and was high before too)
    • 0x00 0x14 0x20 0x30 0x40 0x50 0x60 0x70 (probe 1 went from high to low == falling edge)
    • 0x00 0x10 0x20 0x30 0x40 0x50 0x60 0x70 (probe 1 is low, and was low before too)