mirror of
https://github.com/gillham/logic_analyzer.git
synced 2026-05-06 05:45:28 +03:00
Compare commits
7 Commits
agla_megar
...
agla_v0_6
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
b1a43e57c7 | ||
|
|
1f418098b2 | ||
|
|
34aea7435d | ||
|
|
f51d0bbb96 | ||
|
|
3a6329775c | ||
|
|
3c69ec10a1 | ||
|
|
7173e83e14 |
@@ -25,7 +25,7 @@
|
||||
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
|
||||
* 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 $
|
||||
*
|
||||
*/
|
||||
|
||||
@@ -152,14 +152,14 @@ void debugdump(void);
|
||||
* ATmega2560: 7168 (or lower)
|
||||
*/
|
||||
#if defined(__AVR_ATmega1280__) || defined(__AVR_ATmega2560__)
|
||||
#define DEBUG_CAPTURE_SIZE 7168
|
||||
#define CAPTURE_SIZE 7168
|
||||
#define DEBUG_CAPTURE_SIZE 7168
|
||||
#define CAPTURE_SIZE 7168
|
||||
#elif defined(__AVR_ATmega328P__)
|
||||
#define DEBUG_CAPTURE_SIZE 1024
|
||||
#define CAPTURE_SIZE 1024
|
||||
#define DEBUG_CAPTURE_SIZE 1024
|
||||
#define CAPTURE_SIZE 1024
|
||||
#else
|
||||
#define DEBUG_CAPTURE_SIZE 532
|
||||
#define CAPTURE_SIZE 532
|
||||
#define DEBUG_CAPTURE_SIZE 532
|
||||
#define CAPTURE_SIZE 532
|
||||
#endif
|
||||
|
||||
#define DEBUG
|
||||
@@ -682,6 +682,12 @@ void triggerMicro() {
|
||||
if (logicIndex >= readCount) {
|
||||
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 = B00000000; /* debug timing measurement */
|
||||
@@ -693,7 +699,10 @@ void triggerMicro() {
|
||||
* This needs adjustment so that we have the right spacing between the
|
||||
* 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 */
|
||||
PORTD = B10000000; /* debug timing measurement */
|
||||
@@ -884,3 +893,6 @@ void debugdump() {
|
||||
#endif /* DEBUG */
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -7,7 +7,7 @@ device.description = Arduino Generic Logic Analyzer
|
||||
# The device interface, SERIAL only
|
||||
device.interface = SERIAL
|
||||
# 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).
|
||||
device.supports_ddr = false
|
||||
# Supported sample rates in Hertz, separated by comma's
|
||||
@@ -39,13 +39,15 @@ device.capturesize.bound = false
|
||||
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 = 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)
|
||||
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 = "AGLAv0"
|
||||
|
||||
# In which order are samples sent back from the device? true = last sample first, false = first sample first
|
||||
device.samples.reverseOrder = false
|
||||
# In which order are samples sent back from the device? false = last sample first, true = first sample first
|
||||
device.samples.reverseOrder = true
|
||||
|
||||
###EOF###
|
||||
|
||||
@@ -7,7 +7,7 @@ device.description = Arduino Mega Logic Analyzer
|
||||
# The device interface, SERIAL only
|
||||
device.interface = SERIAL
|
||||
# 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).
|
||||
device.supports_ddr = false
|
||||
# Supported sample rates in Hertz, separated by comma's
|
||||
@@ -39,13 +39,15 @@ device.capturesize.bound = false
|
||||
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 = 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)
|
||||
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? true = last sample first, false = first sample first
|
||||
device.samples.reverseOrder = false
|
||||
# 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