1
\$\begingroup\$

We are using ATtiny25 IC micro controller interfaced with I2C based Capacitive Sensor IS31SE5104.

Schematics

ATtiny25(U1) is programmed with (J1) ISP header (SPI pins used), ATtiny I2C pins are multiplexed with ISP pins as per datasheet and same pins planning to use for interfacing IS31SE5104 (U2).

Is it correct approach? Can we use same ATtiny pins for ISP as well as I2C based sensor IS31SE5104?

Please someone guide, Thanks in advance.

\$\endgroup\$
3
  • \$\begingroup\$ Yes, it is possible. What will be the default state of pins after reset? \$\endgroup\$
    – User323693
    Dec 21, 2016 at 7:12
  • \$\begingroup\$ SDA & SCL will be I2C pins, INTB is input pin (default - High) and low when touch detected, SDB is output pin (default-High) and required low for power down mode. \$\endgroup\$ Dec 21, 2016 at 7:19
  • \$\begingroup\$ If I use internal crystal of ATtiny25, can I use XTAL1 and XTAL2 pins for other purpose? \$\endgroup\$ Dec 24, 2016 at 6:48

2 Answers 2

1
\$\begingroup\$

There is a guide for that from Atmel - AVR042. Look especially at section 4.1.1 .

\$\endgroup\$
1
\$\begingroup\$

ISP pins

As Umar already pointed out, you can use them for other purposes

XTAL1, XTAL2

You can use those also for other purposes if you don't have an external oscillator (see page 60 of the datasheet)

\$\endgroup\$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.