It all got to work so far..
begin
EEPROM_write($1,115200);
i:=0;
baudrate := EEPROM_read($1);
UART.Init(115200);
ModePortA(3,True); // WVW LED
repeat
inc(i);
if i = 10 then UART.WriteStrLn(IntToStr(100));
if i>10 then i:=1;
WritePortA(3, True); // WVW LED
delay_ms(15);
WritePortA(3, False); // WVW LED
delay_ms(15);
until false;
end.
A new problem, can somebody help me before i have to cancel my controller ?
Incase UART.WriteStrLn is used to send a string, everything works fine.
Incase UART.WriteStrLn is used to send a integer, it seems to stop, nothing appears in my UART terminal.
Anybody got a idea what i am doing wrong? What setting it migh be and where?
Dit not have this problems with the ATmega328, and now idea what corner i should search.
Greets, WvW
Incase you are all not able to awnser i am going to remove this topic then. Never know what to oversee
EDIT: using this to compile:
ppcrossavr -Tembedded -Wp%fpc_mcuname% -MObjFPC -vw-n-h- -Cpavr5 -Sg -Pavr -g -a -al -XPavr- -Sm -dF_CPU:=%frequency% %pasfilename% -O3
This all using the ATtiny841 !