kranenborg
Senior Member
Hello,
I really like the HSERIN use of the scratchpad memory in order to allow the reception of a number of bytes. In particular the background serial receive option allows flexible, variable-sized dataframes to be used, in particular if the message length itself is included in the dataframe.
What I feel is lacking a bit is a similar flexiible approach for HSEROUT, since the current implementation of this command requires you to specify the number of bytes as a named list. This makes handling of variable-sized somewhat awkward; either you specify a single command with the maximum size and possibly send a lot of dummy bytes, or you use an if-then-else structure with a number of HSEROUT commands with different parameters list lengths in order to simulate to some extent variable sized message sending.
What I would really appreciate is the functional companion of the "HSERIN spaddress, count" command, namely "HSEROUT spaddress, count" (where count can be a variable, of course). This option would allow a process to first construct a message of any size in the scratchpad memory with starting address spaddres and then another, independent process could send this variable-sized message with a single command. This would allow really flexible high-speed transmission as well as efficient coding.
Would there be some spare bytes of flash memory, for example in the future 20X2 , to implement this functional extension?
Best regards,
Jurjen
I really like the HSERIN use of the scratchpad memory in order to allow the reception of a number of bytes. In particular the background serial receive option allows flexible, variable-sized dataframes to be used, in particular if the message length itself is included in the dataframe.
What I feel is lacking a bit is a similar flexiible approach for HSEROUT, since the current implementation of this command requires you to specify the number of bytes as a named list. This makes handling of variable-sized somewhat awkward; either you specify a single command with the maximum size and possibly send a lot of dummy bytes, or you use an if-then-else structure with a number of HSEROUT commands with different parameters list lengths in order to simulate to some extent variable sized message sending.
What I would really appreciate is the functional companion of the "HSERIN spaddress, count" command, namely "HSEROUT spaddress, count" (where count can be a variable, of course). This option would allow a process to first construct a message of any size in the scratchpad memory with starting address spaddres and then another, independent process could send this variable-sized message with a single command. This would allow really flexible high-speed transmission as well as efficient coding.
Would there be some spare bytes of flash memory, for example in the future 20X2 , to implement this functional extension?
Best regards,
Jurjen
Last edited: