Hallo,
ich hab jetzt mein Testprogramm noch erweitert, jetzt werden auch alle ADCs als I/Os definiert und auf high gesetzt:
Code:
#include "RP6ControlLib.h"
int main(void)
{
initRP6Control();
initLCD();
showScreenLCD("Roboterkran:","Testprogramm");
DDRD |= IO_PD5;
DDRD |= IO_PD6;
DDRC |= IO_PC2;
DDRC |= IO_PC3;
DDRC |= IO_PC4;
DDRC |= IO_PC7;
DDRC |= IO_PC5;
DDRC |= IO_PC6;
DDRA |= ADC2;
DDRA |= ADC3;
DDRA |= ADC4;
DDRA |= ADC5;
DDRA |= ADC6;
DDRA |= ADC7;
PORTD |= IO_PD5;
PORTD |= IO_PD6;
PORTC |= IO_PC2;
PORTC |= IO_PC3;
PORTC |= IO_PC4;
PORTC |= IO_PC7;
PORTC |= IO_PC5;
PORTC |= IO_PC6;
PORTA |= ADC2;
PORTA |= ADC3;
PORTA |= ADC4;
PORTA |= ADC5;
PORTA |= ADC6;
PORTA |= ADC7;
while(1);
return 0;
}
Dann habe ich wieder die anliegende Spannung gemessen - bei allen ADCs ziemlich genau 5V.
Wenn's nicht JTAG ist, was könnte dann die Fehlfunktion - nur auf PORTC wohlgemerkt - verursachen?
lg
Michi
Lesezeichen