Hallo Power User,
mein Compiler bleibt überal hängen! (F!) obwohl ich praktisch fast nichts mehr deklariert habe!
Hat bei jemanden schon irgend etwas funktioniert oder bin ich zu blöd? (eine ehrliche Antwort bitte)
program TB_4808_01;
{$NOSHADOW}
{ $WG} {global Warnings off}
Device = Mega4808, VCC=5.0;
Define_Fuses
// Override_Fuses;
NoteBook = A;
Supply = 5.0, 100;
LockBits0 = [LockB0, LockB2, LockB6, LockB7];
FuseBits0 = [];
FuseBits1 = [];
FuseBits2 = [FREQSEL1];
FuseBits3 = [];
FuseBits4 = [CRCSRC0, CRCSRC1];
FuseBits5 = [SUT0, SUT1, SUT2];
FuseBits6 = [];
FuseBits7 = [];
ProgMode = UPDI;
Import SysTick, SerPort, SerPort2, ADCPort; // SoftPWM F!, SPIdriver F!, I2Cport F!, BeepPort F!,
From System Import Float;
Define
SysTick = 10; {msec}
StackSize = $0064, iData;
FrameSize = $0064, iData;
SerPort = 9600, Stop1; {Baud, StopBits|Parity}
RxBuffer = 8, iData;
TxBuffer = 8, iData;
SerPort2 = 115200, Stop1; {Baud, StopBits|Parity}
RxBuffer2 = 8, iData;
TxBuffer2 = 8, iData;
ADCchans = 4, iData; ADC's noch nicht getestet!
ADCpresc = 64;
// I2Cport = PortF F!
// I2Cdat = 2;
// I2Cclk = 3;
// SoftPWMport = PortD; {use PortD for PWM output}
// SoftPWMtimer = Timer0, 10; {use timerx, PWM cycle time msec}
// SoftPWMres = 16; {PWM resolution is 16 points}
// SoftPWMchans = 1, 5; {x channels, bity is the first bit}
// SPIpresc = 0; F!
// SPIOrder = LSB;
// SPICPOL = 0;
// SPICPHA = 0;
// SPI_SS = true;
// BeepPort = PortD, 4; F!
Implementation
{$IDATA}
{--------------------------------------------------------------}
{ Type Declarations }
type
{---------------------------- F! -----------I2C(TWI) F!-----------------------}
{ Const Declarations }
BH1750 : byte = $23; // Helligkeits Sensor (LUX) ($E8
// -------------------------- F!---------------------------------------------------
WoDay : Array[0..6] of string[3]=('So.','Mo.','Di.','Mi.','Do.','Fr.','Sa.');
// -----------------------------------------------------------------------------
{ Var Declarations }
{$IDATA}
Sig [@PortA,6] : bit; // MINI Buzzer (D07)
// ---------------------------- ok! ---------------------------------------
bef, x,pu_f,vol,t_As,play,xi,count,com,n,aaf1,aaf2,sw14,sw58,m,ik : byte;
{--------------------------------------------------------------}
{ functions }
procedure InitPorts;
begin
PortA := %00111100; F!
end InitPorts;
{--------------------------------------------------------------}
{ Main Program }
{$IDATA}
begin
InitPorts;
EnableInts;
loop
endloop;
end TB_4808_01.
Überlauf beim Programmer Aufruf dsc >200 - erledigt 30 uralt Atmel beseitigt
Gruss
Rudi Ratlos ( T.Begle)
mein Compiler bleibt überal hängen! (F!) obwohl ich praktisch fast nichts mehr deklariert habe!
Hat bei jemanden schon irgend etwas funktioniert oder bin ich zu blöd? (eine ehrliche Antwort bitte)
program TB_4808_01;
{$NOSHADOW}
{ $WG} {global Warnings off}
Device = Mega4808, VCC=5.0;
Define_Fuses
// Override_Fuses;
NoteBook = A;
Supply = 5.0, 100;
LockBits0 = [LockB0, LockB2, LockB6, LockB7];
FuseBits0 = [];
FuseBits1 = [];
FuseBits2 = [FREQSEL1];
FuseBits3 = [];
FuseBits4 = [CRCSRC0, CRCSRC1];
FuseBits5 = [SUT0, SUT1, SUT2];
FuseBits6 = [];
FuseBits7 = [];
ProgMode = UPDI;
Import SysTick, SerPort, SerPort2, ADCPort; // SoftPWM F!, SPIdriver F!, I2Cport F!, BeepPort F!,
From System Import Float;
Define
SysTick = 10; {msec}
StackSize = $0064, iData;
FrameSize = $0064, iData;
SerPort = 9600, Stop1; {Baud, StopBits|Parity}
RxBuffer = 8, iData;
TxBuffer = 8, iData;
SerPort2 = 115200, Stop1; {Baud, StopBits|Parity}
RxBuffer2 = 8, iData;
TxBuffer2 = 8, iData;
ADCchans = 4, iData; ADC's noch nicht getestet!
ADCpresc = 64;
// I2Cport = PortF F!
// I2Cdat = 2;
// I2Cclk = 3;
// SoftPWMport = PortD; {use PortD for PWM output}
// SoftPWMtimer = Timer0, 10; {use timerx, PWM cycle time msec}
// SoftPWMres = 16; {PWM resolution is 16 points}
// SoftPWMchans = 1, 5; {x channels, bity is the first bit}
// SPIpresc = 0; F!
// SPIOrder = LSB;
// SPICPOL = 0;
// SPICPHA = 0;
// SPI_SS = true;
// BeepPort = PortD, 4; F!
Implementation
{$IDATA}
{--------------------------------------------------------------}
{ Type Declarations }
type
{---------------------------- F! -----------I2C(TWI) F!-----------------------}
{ Const Declarations }
BH1750 : byte = $23; // Helligkeits Sensor (LUX) ($E8
// -------------------------- F!---------------------------------------------------
WoDay : Array[0..6] of string[3]=('So.','Mo.','Di.','Mi.','Do.','Fr.','Sa.');
// -----------------------------------------------------------------------------
{ Var Declarations }
{$IDATA}
Sig [@PortA,6] : bit; // MINI Buzzer (D07)
// ---------------------------- ok! ---------------------------------------
bef, x,pu_f,vol,t_As,play,xi,count,com,n,aaf1,aaf2,sw14,sw58,m,ik : byte;
{--------------------------------------------------------------}
{ functions }
procedure InitPorts;
begin
PortA := %00111100; F!
end InitPorts;
{--------------------------------------------------------------}
{ Main Program }
{$IDATA}
begin
InitPorts;
EnableInts;
loop
endloop;
end TB_4808_01.
Überlauf beim Programmer Aufruf dsc >200 - erledigt 30 uralt Atmel beseitigt
Gruss
Rudi Ratlos ( T.Begle)