Gast
#1105234
#include "p30fxxxx.h"
_FOSC( CSW_FSCM_OFF & XT_PLL4 );
_FWDT( WDT_OFF );
_FBORPOR( PBOR_OFF & BORV_45 & MCLR_EN );
_FGS( CODE_PROT_OFF );
int main(void)
{
char *sptr;
OSCCON=0x3300; /* Select Primary Oscillator */
/* Set up I/O Port */
ADPCFG=0xFFFF; /* Analog ports as Digital I/O */
TRISB=0x0000; /* Port B output Data as well as serial
port */
LATB=0xFFFF; /* Initial Value of 0 */
while(1)
{
LATB=0xFFFF;
}
}
So ich will einfach nur PORTB auf High setzten, im Simulator macht er
das aber wenn ich das Programm auf den Controller brenne sind alle
Ausgänge auf LOW!!!!
hhhmmmm KP