mirror of
https://github.com/gillham/logic_analyzer.git
synced 2026-05-01 23:53:02 +03:00
Fix sketch size for ATmega168
Automatically skip the inline2MHz sample rate on an ATmega168 based Arduino. 4MHz will still work fine and the sketch will fit (10kB instead of 16kB+)
This commit is contained in:
2
README
2
README
@@ -21,7 +21,7 @@ Pins 22-29 (Port A) are used by default.
|
|||||||
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: 4MHz (or lower)
|
Sampling rate: 4MHz (or lower) (no 2MHz on ATmega168)
|
||||||
Channel Groups: 0 (zero) only
|
Channel Groups: 0 (zero) only
|
||||||
Recording Size:
|
Recording Size:
|
||||||
ATmega168: 532 (or lower)
|
ATmega168: 532 (or lower)
|
||||||
|
|||||||
@@ -47,7 +47,7 @@
|
|||||||
* 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: 4MHz (or lower)
|
* Sampling rate: 4MHz (or lower) (no 2MHz on ATmega168)
|
||||||
* Channel Groups: 0 (zero) only
|
* Channel Groups: 0 (zero) only
|
||||||
* Recording Size:
|
* Recording Size:
|
||||||
* ATmega168: 532 (or lower)
|
* ATmega168: 532 (or lower)
|
||||||
@@ -299,7 +299,9 @@ void loop()
|
|||||||
}
|
}
|
||||||
else if (divider == 49) {
|
else if (divider == 49) {
|
||||||
/* 2.0MHz */
|
/* 2.0MHz */
|
||||||
|
#if defined(__AVR_ATmega168P__)
|
||||||
captureInline2mhz();
|
captureInline2mhz();
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
else if (useMicro) {
|
else if (useMicro) {
|
||||||
if (trigger && (delayTime != 1)) {
|
if (trigger && (delayTime != 1)) {
|
||||||
|
|||||||
Reference in New Issue
Block a user