Alternating Hserin/Hserout and Serin/Serout

manie

Senior Member
Along the lines of a different thread, can you run either hard serial OR normal serial (on different pin) in the same program ?

I am thinking along the lines of a HARD serial routine and NORMAL serial routine where you switch on Serial IN/Serial OUT for a specific pin and then switch it off again. When switching it off, you restore Hsersetup to be "ON" ???

Possible ??
 

Technical

Technical Support
Staff member
Yes, in real life this is fine, serin and hserin can both be used.

The only thing you can't do in simulation is background hserin and serin at exactly the same time, this is because there is only 1 input (the simulated terminal) and so it can only put the data into one place at a time.

You can always use hserout and serout at the same time.
 

BeanieBots

Moderator
I'm not 100% sure what your question is but you can use hserin/out on the dedicated hardware pins as well as serin/serout on other pins at the same time.
No need to switch it on & off. It's when you try to mix it up on the same pins that it gets a little messy.
(not sure what the simulator would make of doing that though)
Was that what you wanted to know?
 

manie

Senior Member
@ BB and Technical -

Thanks for the responses. BB, Technical answered it, I just wanted to know if you can use BOTH serial comms in the same program, NOT using simulation etc.

Thanks, question answered.........
 
Top