// CAPACITY TEST
#include <SoftwareSerial.h>
// SET THE PROPER N VALUE
// N<=1857: Last Valid Result
// 1858<=N<=1953: Last Observable Output - Single Char
// PC=0x0444. [AVR MEMORY] Writing to memory location 0x0948 outside of memory size 0x0900. [UP0]
// 1954<=N<=1955: Last Observable Output - Flood
// Invalid opcode 0xFFFF at PC=0xA402
// PC=0x0444. [AVR MEMORY] Writing to memory location 0x0948 outside of memory size 0x0900. [UP0]
// 1956<=N: No Output
// Invalid opcode 0xFFFF at PC=0xA402
#define N 1857
void setup()
{
Serial.begin(38400);while (!Serial){;}
byte a[N+1]={0xFF,0xFF,0xFF,0xFF};
char si[3];
Serial.print("[");
for (int i1=0;i1<=N-1&&a[i1]!=0;i1++){
sprintf(si,"%02X",a[i1]);
Serial.print(si);
}
Serial.print("]");
}
void loop(){}
// CAPACITY TEST
#include <SoftwareSerial.h>
// SET THE PROPER N VALUE
// N<=1857: Last Valid Result
// 1858<=N<=1953: Last Observable Output - Single Char
// PC=0x0444. [AVR MEMORY] Writing to memory location 0x0948 outside of memory size 0x0900. [UP0]
// 1954<=N<=1955: Last Observable Output - Flood
// Invalid opcode 0xFFFF at PC=0xA402
// PC=0x0444. [AVR MEMORY] Writing to memory location 0x0948 outside of memory size 0x0900. [UP0]
// 1956<=N: No Output
// Invalid opcode 0xFFFF at PC=0xA402
#define N 1857
void setup()
{
Serial.begin(38400);while (!Serial){;}
byte a[N+1]={0xFF,0xFF,0xFF,0xFF};
char si[3];
Serial.print("[");
for (int i1=0;i1<=N-1&&a[i1]!=0;i1++){
sprintf(si,"%02X",a[i1]);
Serial.print(si);
}
Serial.print("]");
}
void loop(){}