> 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 ------------------------------------------------------------------------------ _______________________________________________ Sdcc-user mailing list Sdcc-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/sdcc-user