Hi, thx for your suggestion
but I need to test that in the vendor command
or in the interrupt routine?
In Interrupt Service Routine.
but it's not clear how the uC manages the communication.
In RX I HAVE NOT problem.... because it's clear... for each BYTE I've an interrupt,
and I'll store the byte in a buffer and when the buffer will be complete I'll have my payload
(eventually I'll introduce a preamble and CRC...)
But If I want to transmit a payload received by a Vendor Command
why I need to use the Interrupt?
It has no sense for me.
So with your example I need to write n>0in a correspondig vendor Command to trigger the interrupt?
And only in the interrupt routine I'll write with SBUF=something?
I'm going to study this examples.
Thx for you help!!!