by rhyde » Thu Nov 18, 2010 12:16 am
Okay in my fumbling around I wrote a silly little program to test out my config. My conclusions are that as usual I am confused a bit. RLE does not work properly and neither does the Uart function. Any of these issues could be operator error on my part, but I am not sure. This scetch was loaded into a ardunio mini pro at 16mhz/5 volts and a snapshot taken. Once with all for banks selected and rle, and many times with only bank 4 and no rle. The latter method produces repeatable results that the uart tool does not work right on, too my understanding. The RLE has garbage in it. Only pins 31, 30, and 29 are connected to tx, rx, and pin 13. Ground is of course connected. Outside number is selected as is the auto size option.
void setup() {
Serial.begin(9600);
pinMode(13, OUTPUT);
}
int led=0;
void loop() {
delay(2);
digitalWrite(13, !led);
digitalWrite(13, led);
digitalWrite(13, !led);
digitalWrite(13, led);
digitalWrite(13, !led);
digitalWrite(13, led);
Serial.write(0xff);
delay(2);
digitalWrite(13, !led);
digitalWrite(13, led);
Serial.write('?');
delay(2);
digitalWrite(13, !led);
digitalWrite(13, led);
Serial.write(1);
delay(2);
digitalWrite(13, !led);
digitalWrite(13, led);
Serial.write(2);
delay(2);
digitalWrite(13, !led);
digitalWrite(13, led);
Serial.write(4);
delay(2);
digitalWrite(13, !led);
digitalWrite(13, led);
Serial.write(8);
delay(2);
if(!led){
digitalWrite(13, HIGH);
led=!led;
}else{
digitalWrite(13, LOW);
led=!led;
}
}
- Attachments
-
test.zip
- (10.57 KiB) Downloaded 136 times