Small PIC  cpu  using RS-485 with configurable IO