Re: listening to rs485 serial port on BL4S200
| Newsgroups | gmane.comp.hardware.rabbit-semiconductor |
|---|---|
| Message-ID | <CAPWahUcscWyVkcruaYp+-RPQKcyiO2Kcf6cGO4zj_ryrKrfH_g@mail.gmail.com> |
Hi Mircea, Can you share your code for modbus master. Thanks. Stev On Thu, Aug 11, 2016 at 10:34 AM, [email protected] [rabbit-semi] < [email protected]> wrote: > > > 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 > >