Other Parts Discussed in Thread: SYSCONFIG, C2000WARE
Hi Champ,
I am asking for my customer. It is urgent, kindly help.
It is written in TRM about "Before changing a pin to an output, load the output latch with the value to be driven by writing that value to the GPySET, GPyCLEAR, or GPyDAT registers. "
While the initialized code gen from the SysConfig GUI, it doesn't follow with the statement.
There are few questions needed the expert to kindly comment :
(1). By default, all GPIO pins are inputs. Must it follow as TRM written, write the value first, then change the GPIO direction ?
(2). Continuing with the first question, if I opposite the sequence (change the GPIO direction to output first, then write the value), will it have any effect or difference with the sequence ? Since we especially have the description in the TRM. If there is any details with it, we could discuss it by mail.
(3). Why doesn't the code generated by SysConfig GUI match the statement in TRM?
Thanks and regards,
Johnny