mirror of
https://github.com/gillham/logic_analyzer.git
synced 2026-05-07 00:01:09 +03:00
Compare commits
10 Commits
agla_megar
...
agla_v0_7
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
0f81002bde | ||
|
|
fb3aca55a0 | ||
|
|
851b7e0735 | ||
|
|
b1a43e57c7 | ||
|
|
1f418098b2 | ||
|
|
34aea7435d | ||
|
|
f51d0bbb96 | ||
|
|
3a6329775c | ||
|
|
3c69ec10a1 | ||
|
|
7173e83e14 |
2
README
2
README
@@ -51,5 +51,5 @@ Please try it out and report back.
|
|||||||
This master branch now supports Arduino 1.0 only.
|
This master branch now supports Arduino 1.0 only.
|
||||||
Checkout branch logic_analyzer_v0_5 for Arduino 22 support.
|
Checkout branch logic_analyzer_v0_5 for Arduino 22 support.
|
||||||
|
|
||||||
Release: v0.06 November 4, 2011.
|
Release: v0.07 February 8, 2013.
|
||||||
|
|
||||||
|
|||||||
@@ -25,7 +25,7 @@
|
|||||||
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
|
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
|
||||||
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||||
*
|
*
|
||||||
* $Id: logic_analyzer.pde,v 1.17 2011-08-04 02:31:01 gillham Exp $
|
* $Id: logic_analyzer.ino,v 1.21 2012/02/27 20:19:44 gillham Exp $
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
|
||||||
@@ -78,7 +78,7 @@
|
|||||||
* 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.06 November 4, 2011.
|
* Release: v0.07 February 8, 2013.
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
|
||||||
@@ -152,14 +152,14 @@ void debugdump(void);
|
|||||||
* ATmega2560: 7168 (or lower)
|
* ATmega2560: 7168 (or lower)
|
||||||
*/
|
*/
|
||||||
#if defined(__AVR_ATmega1280__) || defined(__AVR_ATmega2560__)
|
#if defined(__AVR_ATmega1280__) || defined(__AVR_ATmega2560__)
|
||||||
#define DEBUG_CAPTURE_SIZE 7168
|
#define DEBUG_CAPTURE_SIZE 7168
|
||||||
#define CAPTURE_SIZE 7168
|
#define CAPTURE_SIZE 7168
|
||||||
#elif defined(__AVR_ATmega328P__)
|
#elif defined(__AVR_ATmega328P__)
|
||||||
#define DEBUG_CAPTURE_SIZE 1024
|
#define DEBUG_CAPTURE_SIZE 1024
|
||||||
#define CAPTURE_SIZE 1024
|
#define CAPTURE_SIZE 1024
|
||||||
#else
|
#else
|
||||||
#define DEBUG_CAPTURE_SIZE 532
|
#define DEBUG_CAPTURE_SIZE 532
|
||||||
#define CAPTURE_SIZE 532
|
#define CAPTURE_SIZE 532
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#define DEBUG
|
#define DEBUG
|
||||||
@@ -682,6 +682,12 @@ void triggerMicro() {
|
|||||||
if (logicIndex >= readCount) {
|
if (logicIndex >= readCount) {
|
||||||
logicIndex = 0;
|
logicIndex = 0;
|
||||||
}
|
}
|
||||||
|
else {
|
||||||
|
/* pad the same number of cycles as the above assignment (needs verification) */
|
||||||
|
__asm__("nop\n\t""nop\n\t""nop\n\t""nop\n\t");
|
||||||
|
}
|
||||||
|
delayMicroseconds(delayTime - 3);
|
||||||
|
__asm__("nop\n\t""nop\n\t""nop\n\t""nop\n\t""nop\n\t");
|
||||||
/* PORTD = B10000000; */
|
/* PORTD = B10000000; */
|
||||||
}
|
}
|
||||||
PORTD = B00000000; /* debug timing measurement */
|
PORTD = B00000000; /* debug timing measurement */
|
||||||
@@ -693,7 +699,10 @@ void triggerMicro() {
|
|||||||
* This needs adjustment so that we have the right spacing between the
|
* This needs adjustment so that we have the right spacing between the
|
||||||
* before trigger samples and the after trigger samples.
|
* before trigger samples and the after trigger samples.
|
||||||
*/
|
*/
|
||||||
delayMicroseconds(delayTime);
|
delayMicroseconds(delayTime - 2);
|
||||||
|
__asm__("nop\n\t""nop\n\t""nop\n\t""nop\n\t");
|
||||||
|
__asm__("nop\n\t""nop\n\t""nop\n\t""nop\n\t");
|
||||||
|
__asm__("nop\n\t""nop\n\t""nop\n\t");
|
||||||
|
|
||||||
/* keep sampling for delayCount after trigger */
|
/* keep sampling for delayCount after trigger */
|
||||||
PORTD = B10000000; /* debug timing measurement */
|
PORTD = B10000000; /* debug timing measurement */
|
||||||
@@ -776,6 +785,14 @@ void get_metadata() {
|
|||||||
Serial.write('0');
|
Serial.write('0');
|
||||||
Serial.write((uint8_t)0x00);
|
Serial.write((uint8_t)0x00);
|
||||||
|
|
||||||
|
/* firmware version */
|
||||||
|
Serial.write((uint8_t)0x02);
|
||||||
|
Serial.write('0');
|
||||||
|
Serial.write('.');
|
||||||
|
Serial.write('0');
|
||||||
|
Serial.write('7');
|
||||||
|
Serial.write((uint8_t)0x00);
|
||||||
|
|
||||||
/* sample memory */
|
/* sample memory */
|
||||||
Serial.write((uint8_t)0x21);
|
Serial.write((uint8_t)0x21);
|
||||||
Serial.write((uint8_t)0x00);
|
Serial.write((uint8_t)0x00);
|
||||||
@@ -884,3 +901,6 @@ void debugdump() {
|
|||||||
#endif /* DEBUG */
|
#endif /* DEBUG */
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -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
|
||||||
@@ -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###
|
||||||
|
|||||||
@@ -7,7 +7,7 @@ device.description = Arduino Mega 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
|
||||||
@@ -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 = 1000
|
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)
|
# 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 = "AGLAMv0"
|
device.metadata.keys = "AGLAMv0"
|
||||||
|
|
||||||
# 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###
|
||||||
|
|||||||
Reference in New Issue
Block a user