Hello Ondra
I would look into Finite State Machine design. This should help you to design an effiecient program depending on received values. Also try to keep timeouts to a minimum. Eg if no data is available then do not wait for it. Maybe you could also add an interrupt for the hardware reception. This way your software can always be moitoring the bit banged input and as soon as a byte is received on the UART an interrupt is triggered with processes that byte.
NVM and DAC
- Benj
- Matrix Staff
- Posts: 15312
- Joined: Mon Oct 16, 2006 10:48 am
- Location: Matrix TS Ltd
- Has thanked: 4803 times
- Been thanked: 4314 times
- Contact:
Re: NVM and DAC
Regards Ben Rowland - MatrixTSL
Flowcode Product Page - Flowcode Help Wiki - Flowcode Examples - Flowcode Blog - Flowcode Course - My YouTube Channel
Flowcode Product Page - Flowcode Help Wiki - Flowcode Examples - Flowcode Blog - Flowcode Course - My YouTube Channel
Re: NVM and DAC
Thanks Benj. It looks a bit much for me right now. I'll work with what I have until I get pressed.
You've been a big help, thanks for your time and patients on this one.
Ondra
You've been a big help, thanks for your time and patients on this one.
Ondra