Gast
#934648
#define _PIC18xxx
#include <p18f4685.h>
#include <delays.h>
//#include <usart.h>
//#include <adc.h>
void main(void)
{
ADCON1 = 0x0F;
// 76543210
TRISB = 0x11001111;
PORTB = 0;
LATB = 0;
while(1)
{
// 76543210
LATB = 0b00100000;
Delay10KTCYx(100);
LATB = 0b00010000;
Delay10KTCYx(100);
}
}
das is der gesamte quelltext
port 5 funktioniert, am 4er wird nichts ausgegeben und ich finde einfach
keine lösung im netz :|
wobei das kann an der falschen fragestellung liegen, eventuell wisst ihr
was?