mirror of
https://github.com/gillham/logic_analyzer.git
synced 2026-05-06 05:45:28 +03:00
Compare commits
10 Commits
agla_v0_14
...
agla_v0_15
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
a426e85f0d | ||
|
|
b919640c7e | ||
|
|
636df223a4 | ||
|
|
57b1f18900 | ||
|
|
4f7f86f6d4 | ||
|
|
bd1fbe504e | ||
|
|
cfacce1758 | ||
|
|
11b8b5bbda | ||
|
|
4233770315 | ||
|
|
1e3f0696af |
37
Makefile
37
Makefile
@@ -1,19 +1,24 @@
|
||||
#
|
||||
# Makefile for an Arduino based logic analyzer using the 'arduino-core'
|
||||
# package and makefiles.
|
||||
# Makefile for an Arduino based logic analyzer using the arduino-cli
|
||||
#
|
||||
# $Id: Makefile,v 1.3 2011-03-07 02:47:26 gillham Exp $
|
||||
|
||||
TARGET = logic_analyzer
|
||||
FQBN = arduino:avr:diecimila
|
||||
SERIAL = /dev/ttyUSB*
|
||||
|
||||
|
||||
all:
|
||||
@echo ""
|
||||
@echo "---> run 'make build' to compile for Arduino Duemilanove"
|
||||
@echo "---> run 'make upload' to upload to /dev/ttyUSB*"
|
||||
@echo ""
|
||||
|
||||
build:
|
||||
arduino-cli compile --fqbn $(FQBN) $(TARGET)
|
||||
|
||||
upload:
|
||||
arduino-cli upload --fqbn $(FQBN) --port $(SERIAL) $(TARGET)
|
||||
|
||||
#
|
||||
# end-of-file
|
||||
#
|
||||
ARDUINO_DIR = /usr/share/arduino
|
||||
|
||||
TARGET = logic_analyzer
|
||||
ARDUINO_LIBS =
|
||||
|
||||
MCU = atmega328p
|
||||
F_CPU = 16000000
|
||||
ARDUINO_PORT = /dev/ttyUSB*
|
||||
AVRDUDE_ARD_BAUDRATE = 57600
|
||||
AVRDUDE_ARD_PROGRAMMER = arduino
|
||||
|
||||
include /usr/share/arduino/Arduino.mk
|
||||
|
||||
|
||||
23
README
23
README
@@ -7,6 +7,9 @@ SUMP client as well as the alternative client from here:
|
||||
|
||||
The alternative client version is highly recommended. Download version
|
||||
"ols-0.9.7" or newer for built-in device profiles.
|
||||
NOTE: The latest officially released version of ols (0.9.7.2) does not work
|
||||
with modern Java runtimes. You will need to build it yourself.
|
||||
Follow the build instructions here: https://github.com/jawi/ols
|
||||
|
||||
This SUMP protocol compatible logic analyzer for the Arduino board supports
|
||||
5 channels consisting of digital pins 8-12, which are the first 5 bits (0-4)
|
||||
@@ -47,6 +50,24 @@ is generally only useful for development, while the DEBUG_MENU option is
|
||||
good for troubleshooting when the logic_analyzer sketch isn't working for you.
|
||||
Both are disabled by default to conserve RAM for improved stability.
|
||||
|
||||
CLI compiling
|
||||
=============
|
||||
|
||||
If you want to use the 'arduino-mk' package (on Debian for example ) to compile
|
||||
this using the Makefile, you'll need to make a couple of changes since the
|
||||
Makefile only supports a single .ino file. Basically you just need to append
|
||||
the other two files to the main .ino and then remove them.
|
||||
|
||||
$ cat logic_analyzer_inline_4mhz.ino >> logic_analyzer.ino
|
||||
$ cat logic_analyzer_inline_2mhz.ino >> logic_analyzer.ino
|
||||
$ rm logic_analyzer_inline_4mhz.ino logic_analyzer_inline_2mhz.ino
|
||||
$ make
|
||||
|
||||
This will make GIT unhappy so if you need to revert it to run 'git pull' do
|
||||
this:
|
||||
$ git reset --hard origin/master
|
||||
|
||||
|
||||
Older Notes
|
||||
===========================================================================
|
||||
NOTE: With v0.11 you can now sample at 4MHz & 2MHz rates in addition to the
|
||||
@@ -80,5 +101,5 @@ NOTE: This master branch now supports Arduino 1.0 only.
|
||||
Checkout branch logic_analyzer_v0_5 for Arduino 22 support.
|
||||
|
||||
|
||||
Release: v0.14 December 16, 2015.
|
||||
Release: v0.15 December 21, 2021.
|
||||
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
*
|
||||
* SUMP Protocol Implementation for Arduino boards.
|
||||
*
|
||||
* Copyright (c) 2011,2012,2013,2014,2015 Andrew Gillham
|
||||
* Copyright (c) 2011,2012,2013,2014,2015,2016,2017,2018,2019,2020,2021 Andrew Gillham
|
||||
* All rights reserved.
|
||||
*
|
||||
* Redistribution and use in source and binary forms, with or without
|
||||
@@ -62,7 +62,7 @@
|
||||
* until after the trigger fires.
|
||||
* Please try it out and report back.
|
||||
*
|
||||
* Release: v0.14 December 16, 2015.
|
||||
* Release: v0.15 December 21, 2021.
|
||||
*
|
||||
*/
|
||||
|
||||
@@ -82,7 +82,8 @@ void get_metadata(void);
|
||||
void debugprint(void);
|
||||
void debugdump(void);
|
||||
void prettydump(void);
|
||||
|
||||
void captureInline4mhz(void);
|
||||
void captureInline2mhz(void);
|
||||
|
||||
/*
|
||||
* Should we use PORTD or PORTB? (default is PORTB)
|
||||
@@ -155,6 +156,9 @@ void prettydump(void);
|
||||
#if defined(__AVR_ATmega1280__) || defined(__AVR_ATmega2560__)
|
||||
#define DEBUG_CAPTURE_SIZE 7168
|
||||
#define CAPTURE_SIZE 7168
|
||||
#elif defined(__AVR_ATmega32U4__)
|
||||
#define DEBUG_CAPTURE_SIZE 2048
|
||||
#define CAPTURE_SIZE 2048
|
||||
#elif defined(__AVR_ATmega328P__)
|
||||
#define DEBUG_CAPTURE_SIZE 1024
|
||||
#define CAPTURE_SIZE 1024
|
||||
@@ -467,7 +471,7 @@ void loop()
|
||||
* This runs a sample capture at 500KHz.
|
||||
* delayTime = 2ms for 500KHz.
|
||||
*/
|
||||
delayTime = 1;
|
||||
delayTime = 2;
|
||||
captureMicro();
|
||||
Serial.println("");
|
||||
Serial.println("500KHz capture done.");
|
||||
@@ -945,7 +949,7 @@ void get_metadata() {
|
||||
Serial.write('0');
|
||||
Serial.write('.');
|
||||
Serial.write('1');
|
||||
Serial.write('3');
|
||||
Serial.write('5');
|
||||
Serial.write((uint8_t)0x00);
|
||||
|
||||
/* sample memory */
|
||||
@@ -2,7 +2,7 @@
|
||||
*
|
||||
* SUMP Protocol Implementation for Arduino boards.
|
||||
*
|
||||
* Copyright (c) 2011,2012,2013,2014,2015 Andrew Gillham
|
||||
* Copyright (c) 2011,2012,2013,2014,2015,2016,2017,2018,2019,2020,2021 Andrew Gillham
|
||||
* All rights reserved.
|
||||
*
|
||||
* Redistribution and use in source and binary forms, with or without
|
||||
@@ -2,7 +2,7 @@
|
||||
*
|
||||
* SUMP Protocol Implementation for Arduino boards.
|
||||
*
|
||||
* Copyright (c) 2011,2012,2013,2014,2015 Andrew Gillham
|
||||
* Copyright (c) 2011,2012,2013,2014,2015,2016,2017,2018,2019,2020,2021 Andrew Gillham
|
||||
* All rights reserved.
|
||||
*
|
||||
* Redistribution and use in source and binary forms, with or without
|
||||
24
logic_analyzer_leonardo/Makefile
Normal file
24
logic_analyzer_leonardo/Makefile
Normal file
@@ -0,0 +1,24 @@
|
||||
#
|
||||
# Makefile for an Arduino based logic analyzer using the arduino-cli
|
||||
#
|
||||
|
||||
TARGET = logic_analyzer_leonardo
|
||||
FQBN = arduino:avr:leonardo
|
||||
SERIAL = /dev/ttyUSB*
|
||||
|
||||
|
||||
all:
|
||||
@echo ""
|
||||
@echo "---> run 'make build' to compile for Arduino Leonardo"
|
||||
@echo "---> run 'make upload' to upload to /dev/ttyUSB*"
|
||||
@echo ""
|
||||
|
||||
build:
|
||||
arduino-cli compile --fqbn $(FQBN) $(TARGET)
|
||||
|
||||
upload:
|
||||
arduino-cli upload --fqbn $(FQBN) --port $(SERIAL) $(TARGET)
|
||||
|
||||
#
|
||||
# end-of-file
|
||||
#
|
||||
14456
logic_analyzer_leonardo/logic_analyzer_inline_2mhz.ino
Normal file
14456
logic_analyzer_leonardo/logic_analyzer_inline_2mhz.ino
Normal file
File diff suppressed because it is too large
Load Diff
14456
logic_analyzer_leonardo/logic_analyzer_inline_4mhz.ino
Normal file
14456
logic_analyzer_leonardo/logic_analyzer_inline_4mhz.ino
Normal file
File diff suppressed because it is too large
Load Diff
1052
logic_analyzer_leonardo/logic_analyzer_leonardo.ino
Normal file
1052
logic_analyzer_leonardo/logic_analyzer_leonardo.ino
Normal file
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user