Re: listening to rs485 serial port on BL4S200

"[email protected] [rabbit-semi]" <[email protected]> 10 Aug 2016 20:34:45 -0700
Newsgroups gmane.comp.hardware.rabbit-semiconductor
Message-ID <[email protected]>
Hi Tom,

You are right: he will have to build a small FSM in the the interrupt handler and that can notify the non-interrupt code when a message is waiting. Presumably it will also discard all traffic that is not destined to that slave (each slave has an address) and issue notifications only for properly addressed messages.

It has to be however a fairly smart piece of code as it must time intervals shorter than the standard Rabbit "tick" (1/1024 sec). A possibility is to use one of the Rabbit timers.

Cheers,
Mircea