News:

PROTON pic BASIC Compilers for PIC, PIC24, dsPIC33

Main Menu

A thought about using Wait()

Started by Yasin, May 19, 2022, 10:55 AM

Previous topic - Next topic

Yasin

Dear Les. It is a feature that we use frequently in serial communication. I think it works very well. But it only handles constant value input. Is it possible to give a variable to this function?. So being able to pee variables at mcu runtime can be very advantageous. The user does not have to use the Wait() statement repeatedly with the function he will write. I thought it would save mcu memory. Probably adding this is a roundabout way. what do you think?

top204

I'll take a look at the Wait modifier and see what I can do in future updates. However, a better method would be to use a procedure to receive data and examine each byte received in a loop until whatever is required is received.

I always use that type of method and do not use the modifiers because I then have more control of what is allowed in.