mirror of
https://github.com/gillham/logic_analyzer.git
synced 2026-05-06 23:20:13 +03:00
Compare commits
30 Commits
agla_v0_3
...
aglan_alph
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
1b9c3e7314 | ||
|
|
17d2a1a15f | ||
|
|
0a40fdb2ac | ||
|
|
1f7eb0aecd | ||
|
|
dc3d85abf7 | ||
|
|
240ebc134c | ||
|
|
396a3ccfa5 | ||
|
|
864ae2c826 | ||
|
|
445dac179c | ||
|
|
0f81002bde | ||
|
|
fb3aca55a0 | ||
|
|
851b7e0735 | ||
|
|
b1a43e57c7 | ||
|
|
1f418098b2 | ||
|
|
34aea7435d | ||
|
|
f51d0bbb96 | ||
|
|
3a6329775c | ||
|
|
3c69ec10a1 | ||
|
|
7173e83e14 | ||
|
|
5ec7aa1b51 | ||
|
|
ebbc1fb945 | ||
|
|
bc32e9fde6 | ||
|
|
6396054c16 | ||
|
|
d8cd29d86a | ||
|
|
cedcd4b685 | ||
|
|
6ebd1c5b06 | ||
|
|
9f688ff112 | ||
|
|
035873cc81 | ||
|
|
6a05cd22ea | ||
|
|
c923ff1a0c |
27
README
27
README
@@ -1,6 +1,9 @@
|
|||||||
SUMP compatible logic analyzer for Arduino
|
SUMP compatible logic analyzer for Arduino
|
||||||
==========================================
|
==========================================
|
||||||
|
|
||||||
|
NOTE: NOTE: v0.09 switches the channels BACK to pins 8-13 for trigger reliability.
|
||||||
|
Please report any issues. Uncomment USE_PORTD for pins 2-7.
|
||||||
|
|
||||||
This Arduino sketch implements a SUMP protocol compatible with the standard
|
This Arduino sketch implements a SUMP protocol compatible with the standard
|
||||||
SUMP client as well as the alternative client from here:
|
SUMP client as well as the alternative client from here:
|
||||||
http://www.lxtreme.nl/ols/
|
http://www.lxtreme.nl/ols/
|
||||||
@@ -12,19 +15,34 @@ crystal oscillator pins.
|
|||||||
Uncomment CHAN5 below if you want to use the LED pin as an input and have
|
Uncomment CHAN5 below if you want to use the LED pin as an input and have
|
||||||
6 channels.
|
6 channels.
|
||||||
|
|
||||||
|
On the Arduino Mega board 8 channels are supported and 7k of samples.
|
||||||
|
Pins 22-29 (Port A) are used by default, you can change the 'CHANPIN' below
|
||||||
|
if something else works better for you.
|
||||||
|
|
||||||
NOTE:
|
NOTE:
|
||||||
|
If you are using the original SUMP client, or using the alternative client
|
||||||
|
without the device profiles, then you will get a "device not found" error.
|
||||||
You must DISABLE the Arduino auto reset feature to use this logic analyzer
|
You must DISABLE the Arduino auto reset feature to use this logic analyzer
|
||||||
code. There are various methods to do this, some boards have a jumper,
|
code. There are various methods to do this, some boards have a jumper,
|
||||||
others require you to cut a trace. You may also install a *precisely*
|
others require you to cut a trace. You may also install a *precisely*
|
||||||
120 Ohm resistor between the reset & 5V piins. Make sure it is really
|
120 Ohm resistor between the reset & 5V piins. Make sure it is really
|
||||||
120 Ohm or you may damage your board.
|
120 Ohm or you may damage your board. It is much easier to use the
|
||||||
|
alternative SUMP client referenced above.
|
||||||
|
|
||||||
|
The device profiles should be included with this code. Copy them to the
|
||||||
|
'plugins' directory of the client. The location varies depending on the
|
||||||
|
platform, but on the mac it is here by default:
|
||||||
|
/Applications/LogicSniffer.app/Contents/Resources/Java/plugins
|
||||||
|
|
||||||
To use this with the original or alternative SUMP clients,
|
To use this with the original or alternative SUMP clients,
|
||||||
use these settings:
|
use these settings:
|
||||||
|
|
||||||
Sampling rate: 1MHz (or lower)
|
Sampling rate: 1MHz (or lower)
|
||||||
Channel Groups: 0 (zero) only
|
Channel Groups: 0 (zero) only
|
||||||
Recording Size: 1024 (or lower)
|
Recording Size:
|
||||||
|
ATmega168: 532 (or lower)
|
||||||
|
ATmega328: 1024 (or lower)
|
||||||
|
ATmega2560: 7168 (or lower)
|
||||||
Noise Filter: doesn't matter
|
Noise Filter: doesn't matter
|
||||||
RLE: disabled (unchecked)
|
RLE: disabled (unchecked)
|
||||||
|
|
||||||
@@ -33,5 +51,8 @@ below 1MHz. 1MHz works for a basic busy wait trigger that doesn't store
|
|||||||
until after the trigger fires.
|
until after the trigger fires.
|
||||||
Please try it out and report back.
|
Please try it out and report back.
|
||||||
|
|
||||||
Release: v0.03 March 7, 2011.
|
This master branch now supports Arduino 1.0 only.
|
||||||
|
Checkout branch logic_analyzer_v0_5 for Arduino 22 support.
|
||||||
|
|
||||||
|
Release: v0.09 June 22, 2013.
|
||||||
|
|
||||||
|
|||||||
File diff suppressed because it is too large
Load Diff
@@ -7,7 +7,7 @@ device.description = Arduino Generic Logic Analyzer
|
|||||||
# The device interface, SERIAL only
|
# The device interface, SERIAL only
|
||||||
device.interface = SERIAL
|
device.interface = SERIAL
|
||||||
# The device's native clockspeed, in Hertz.
|
# The device's native clockspeed, in Hertz.
|
||||||
device.clockspeed = 100000000
|
device.clockspeed = 16000000
|
||||||
# Whether or not double-data-rate is supported by the device (also known as the "demux"-mode).
|
# Whether or not double-data-rate is supported by the device (also known as the "demux"-mode).
|
||||||
device.supports_ddr = false
|
device.supports_ddr = false
|
||||||
# Supported sample rates in Hertz, separated by comma's
|
# Supported sample rates in Hertz, separated by comma's
|
||||||
@@ -19,7 +19,7 @@ device.capturesizes = 64, 128, 256, 512, 1024
|
|||||||
# Whether or not the noise filter is supported
|
# Whether or not the noise filter is supported
|
||||||
device.feature.noisefilter = false
|
device.feature.noisefilter = false
|
||||||
# Whether or not Run-Length encoding is supported
|
# Whether or not Run-Length encoding is supported
|
||||||
device.feature.rle = false
|
device.feature.rle = true
|
||||||
# Whether or not a testing mode is supported
|
# Whether or not a testing mode is supported
|
||||||
device.feature.testmode = false
|
device.feature.testmode = false
|
||||||
# Whether or not triggers are supported
|
# Whether or not triggers are supported
|
||||||
@@ -30,7 +30,7 @@ device.trigger.stages = 1
|
|||||||
device.trigger.complex = false
|
device.trigger.complex = false
|
||||||
|
|
||||||
# The total number of channels usable for capturing
|
# The total number of channels usable for capturing
|
||||||
device.channel.count = 5
|
device.channel.count = 6
|
||||||
# The number of channels groups, together with the channel count determines the channels per group
|
# The number of channels groups, together with the channel count determines the channels per group
|
||||||
device.channel.groups = 1
|
device.channel.groups = 1
|
||||||
# Whether the capture size is limited by the enabled channel groups
|
# Whether the capture size is limited by the enabled channel groups
|
||||||
@@ -39,13 +39,15 @@ device.capturesize.bound = false
|
|||||||
device.channel.numberingschemes = DEFAULT
|
device.channel.numberingschemes = DEFAULT
|
||||||
|
|
||||||
# Is a delay after opening the port and device detection needed? (0 = no delay, >0 = delay in milliseconds)
|
# Is a delay after opening the port and device detection needed? (0 = no delay, >0 = delay in milliseconds)
|
||||||
device.open.portdelay = 500
|
device.open.portdelay = 1500
|
||||||
|
# The receive timeout for the device (in milliseconds, 100 = default, <=0 = no timeout)
|
||||||
|
device.receive.timeout = 100
|
||||||
# Does the device need a high or low DTR-line to operate correctly? (high = true, low = false)
|
# Does the device need a high or low DTR-line to operate correctly? (high = true, low = false)
|
||||||
device.open.portdtr = true
|
device.open.portdtr = true
|
||||||
# Which metadata keys correspond to this device profile? Value is a comma-separated list of (double quoted) names...
|
# Which metadata keys correspond to this device profile? Value is a comma-separated list of (double quoted) names...
|
||||||
device.metadata.keys = "AGLAv0"
|
device.metadata.keys = "AGLAv0"
|
||||||
|
|
||||||
# In which order are samples sent back from the device? true = last sample first, false = first sample first
|
# In which order are samples sent back from the device? false = last sample first, true = first sample first
|
||||||
device.samples.reverseOrder = false
|
device.samples.reverseOrder = true
|
||||||
|
|
||||||
###EOF###
|
###EOF###
|
||||||
|
|||||||
53
ols.profile-aglam.cfg
Normal file
53
ols.profile-aglam.cfg
Normal file
@@ -0,0 +1,53 @@
|
|||||||
|
# Configuration for Arduino Mega Logic Analyzer profile
|
||||||
|
|
||||||
|
# The short (single word) type of the device described in this profile
|
||||||
|
device.type = AGLAM
|
||||||
|
# A longer description of the device
|
||||||
|
device.description = Arduino Mega Logic Analyzer
|
||||||
|
# The device interface, SERIAL only
|
||||||
|
device.interface = SERIAL
|
||||||
|
# The device's native clockspeed, in Hertz.
|
||||||
|
device.clockspeed = 16000000
|
||||||
|
# Whether or not double-data-rate is supported by the device (also known as the "demux"-mode).
|
||||||
|
device.supports_ddr = false
|
||||||
|
# Supported sample rates in Hertz, separated by comma's
|
||||||
|
device.samplerates = 10, 20, 50, 100, 200, 500, 1000, 2000, 5000, 10000, 20000, 50000, 100000, 200000, 500000, 1000000
|
||||||
|
# What capture clocks are supported
|
||||||
|
device.captureclock = INTERNAL
|
||||||
|
# The supported capture sizes, in bytes
|
||||||
|
device.capturesizes = 64, 128, 256, 512, 1024, 2048, 4096, 7168
|
||||||
|
# Whether or not the noise filter is supported
|
||||||
|
device.feature.noisefilter = false
|
||||||
|
# Whether or not Run-Length encoding is supported
|
||||||
|
device.feature.rle = false
|
||||||
|
# Whether or not a testing mode is supported
|
||||||
|
device.feature.testmode = false
|
||||||
|
# Whether or not triggers are supported
|
||||||
|
device.feature.triggers = true
|
||||||
|
# The number of trigger stages
|
||||||
|
device.trigger.stages = 1
|
||||||
|
# Whether or not "complex" triggers are supported
|
||||||
|
device.trigger.complex = false
|
||||||
|
|
||||||
|
# The total number of channels usable for capturing
|
||||||
|
device.channel.count = 8
|
||||||
|
# The number of channels groups, together with the channel count determines the channels per group
|
||||||
|
device.channel.groups = 1
|
||||||
|
# Whether the capture size is limited by the enabled channel groups
|
||||||
|
device.capturesize.bound = false
|
||||||
|
# Which numbering does the device support
|
||||||
|
device.channel.numberingschemes = DEFAULT
|
||||||
|
|
||||||
|
# Is a delay after opening the port and device detection needed? (0 = no delay, >0 = delay in milliseconds)
|
||||||
|
device.open.portdelay = 2000
|
||||||
|
# The receive timeout for the device (in milliseconds, 100 = default, <=0 = no timeout)
|
||||||
|
device.receive.timeout = 100
|
||||||
|
# Does the device need a high or low DTR-line to operate correctly? (high = true, low = false)
|
||||||
|
device.open.portdtr = true
|
||||||
|
# Which metadata keys correspond to this device profile? Value is a comma-separated list of (double quoted) names...
|
||||||
|
device.metadata.keys = "AGLAMv0"
|
||||||
|
|
||||||
|
# In which order are samples sent back from the device? false = last sample first, true = first sample first
|
||||||
|
device.samples.reverseOrder = true
|
||||||
|
|
||||||
|
###EOF###
|
||||||
Reference in New Issue
Block a user