Hi Melanie,
Thanks for the explanation. Indeed I had no choice but to scatter my bus around because some of my port bits are for dedicated hardware and since the pins have special features (like hardware interrupt, HUART, HPWM, etc) I had no choice but to scatter them about.
My worry is that I did try the following:
Myword Var word
Myword.0=PortA.3
Myword.1=PortB.7
...
Myword.15=PortC.4
But when I write the following statement it does not transfer the configuration to the port:
newdata var word
Newdata = 1234
Myword = Newdata
I would assume it would transfer the bit pattering from "newdata" to "myword" which would then output the bits on the associated ports.
It seems too simple of a problem and at the back of my head I have a feeling that I'm missing something very fundamental which does not allow the program to work.
Many thanks,
Osiris
Bookmarks