The invincibility code for Star Wars Battlefront is entered as:
Up, Up, Up, Left, Down, Down, Down, Up, P, Up, Left, Right.
Input it during gameplay to activate the effect.