Hallo elektonik Freunde
Ich beschäftige mich gerade mit dem 16F887 und frag mich wo der Hund
liegt, weil ich den RB5 nicht als input hinbekomme?
Habt ihr vielleicht eine Ahung was ich falsch mache?
meine config:
#include <xc.h>
// CONFIG
#pragma config1 |= 0b.1000.0000.1101.0111 //Seite 210/212
#pragma config CP = OFF // FLASH Program Memory Code Protection
//1 = Analog input, 0 = Digital I/O
#pragma ANSEL |= 0b.0000.0000 //ANS7 - 0 Seite 39
#pragma ANSELH |= 0b.xx00.0000 //ANS13 - 8 Seite 39
#pragma PIE1 |= 0b.0000.0000 //PERIPHERAL INTERRUPT
#pragma config BOREN = OFF // Brown-out Reset Enable bit
#define in3 PORTBbits.RB5 //pin 38
TRISBbits.TRISB5 = 1;
mfg Andreas
Antwort schreiben
Bitte melde dich an, um einen Beitrag zu schreiben.