Hallo,
ich habe das Erweiterungsmodul jetzt ganz vom Roboter getrennt, ich habe alles abgesteckt.
Beim Messen erhalte ich wieder die im ersten Beitrag des Threads bereits erwähnten Ergebnisse.
Im Programm habe ich einfach alle I/O-Ports (außer den ADCs) auf high gesetzt, um dann zu messen:
Code:
#include "RP6ControlLib.h"
int main(void)
{
initRP6Control();
DDRD |= IO_PD5;
DDRD |= IO_PD6;
DDRC |= IO_PC2;
DDRC |= IO_PC3;
DDRC |= IO_PC4;
DDRC |= IO_PC7;
DDRC |= IO_PC5;
DDRC |= IO_PC6;
PORTD |= IO_PD5;
PORTD |= IO_PD6;
PORTC |= IO_PC2;
PORTC |= IO_PC3;
PORTC |= IO_PC4;
PORTC |= IO_PC7;
PORTC |= IO_PC5;
PORTC |= IO_PC6;
while(1);
return 0;
}
lg
Michi
Lesezeichen