|
BC02 has internal resistors which can be configured to either pull-up or pull-down mode when the pins are used for input. This is controlled by the value written to the output register using PioSet. The resistors pull-down if the value is zero, and pull-up otherwise, so the following fragment sets pins 1 and 2 to inputs with pin 1 configured to pull-up and pin 2 configured to pull-down.
PioSet(2|4, 2);
PioSetDir(2|4, 0);
E-mail: info@telesys.ru