Re: listening to rs485 serial port on BL4S200

"Mircea Neacsu [email protected] [rabbit-semi]" <[email protected]> Wed, 10 Aug 2016 23:43:50 -0400
Newsgroups gmane.comp.hardware.rabbit-semiconductor
Message-ID <[email protected]>
Hi Stev,
I will do that tomorrow morning. 

---
Mircea Neacsu
T: 514-694-7158
M: 514-591-0329
E: [email protected]

Sent in Morse code from my rotary phone


> On Aug 10, 2016, at 23:38, S Sutikno [email protected] [rabbit-semi] <[email protected]> wrote:
> 
> 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
>> 
> 
>