Выполняю простое действие - запись 1 в порт.
Но на выходе порта получаю 1В.
Что не так? Ниже привожу код.
#include <p18f1320.h>
#include <timers.h>
#include <stdlib.h>
#define conf1l 0xFF
#define conf1h 0xF2
#define conf2l 0x00
#define conf2h 0x00
#define conf3l 0x00
#define conf3h 0x80
#define conf4l 0x04
#define conf4h 0xFF
#define conf5l 0x03
#define conf5h 0xC0
#define conf6l 0x03
#define conf6h 0xE0
#define conf7l 0x03
#define conf7h 0x40
#pragma romdata CONFIG
_CONFIG_DECL(conf1h,conf2l,conf2h,conf3l,conf3h,conf4l,conf5l,conf5h,conf6l,conf
6h,conf7l,conf7h);
#pragma romdata
void init_io(void)
{
ADCON1=0x7f;
TRISA=0;
}
void main()
{
init_io();
do
{
PORTAbits.RA1=1;
LATAbits.LATA1=1;
}
while(1);
}
Заранее списибо.