LMODE on G120

Does the LMODE pin on G120 works like LOW = USB, HIGH=COM ?

Correct

Edit: this was changed before releasing G120. It is USB = high (default with built in pull up)

Further, can pins P0_2 and P0_3 be used as GPIOs if LMODE = LOW (USB)?

Regards,
Synapsys

In theory yes but you should not use USB pins for GPIO purposes.

WouterH pointed this post out, this was changed before releasing G120. It is USB = high (default with built in pull up)

Damn!
This one just caught me - why would they go and change something like that??

Ours is a USB device, so normally should be in COM debug mode. In the EMX version I ran a diode from the “Right” button to pull down Mode when pressed, so the end-user can hold the button during boot to start in USB debug mode without opening the box.

Our first batch of G120 boards have this too. Now I’ll have to redesign with an extra transistor to invert the Mode line.