>
>> Hello Benjamin,
>>
>> Using a delay loop counting a non-volatile variable is asking for
>> trouble.
>> This code has no side effects and can be completely removed by compiler
>> optimizations. And with an F340 running twice as fast as as an F300 the
>> delay won't be the same either.
>>
>> A proper solution is to check the TI flag before starting every
>> transmit.
>>
>> Maarten
>
> Yeah, these examples aren't the best, they are just meant to produce a
> binary that can be loaded on the mcu. When I started I found nothing for
> the C8051F and sdcc. Anyway regarding my problem I am willing to do my
> homework if someone else can look into the issue if there actually is one.
>
> MvH
> Benjamin Larsson

Hi Benjamin.

That's the trouble with a lot of the examples that you can find on the
internet. That they only happened to 'work' for the author at the moment
of testing.

But if you have any questions, post them here or on the SiLabs forum and
answers will come.

Maarten
(vanmierlo at the SiLabs forum)

------------------------------------------------------------------------------
_______________________________________________
Sdcc-user mailing list
Sdcc-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/sdcc-user

Reply via email to