Electronic – PIC 16F57 and T0CKI pin

microcontrollerpicremote control

I've been working on a remote control made out of a PIC 16F57.
The PIC will wake up on every keypress, send the IR code and go back to sleep.

the remote is working fine, unfortunately I forgot to tie the T0CKI pin to either Vdd or Vss so it's floating. On some remote I can see that the power consumption is quite high even when in sleep mode so I think is due to this floating pin.
Even the datasheet says clearly that to reduce power consumption when in sleep mode the T0CKI pin should be tied to Vss or Vdd.

Is there a way to "disable" that pin or change something in the registers in order to prevent (or minimize) that high power consumption without modifying the schematic?

The problem is experienced only on some remotes, not all of them

Best Answer

Unfortunately with T0CLK there is no way in software to connect it to anything because it is an input only pin. You will need an old fashioned hardware solution to fix the problem.

Note that the datasheet specifically says on page 9 - "Must be tied to VSS or VDD, if not in use, to reduce current consumption."