Pages: [1]   Go Down
Author Topic: Can miso and mosi pins be used on ATTiny84 without interfering with arduinoISP?  (Read 587 times)
0 Members and 1 Guest are viewing this topic.
Offline Offline
Full Member
***
Karma: 1
Posts: 127
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

I want to use 3 of the 4 pwm pins on an ATTiny84 however miso and mosi are both pwm pins, will using either as pwm pins interfere with programming the chip?
Logged

Sweden
Offline Offline
Sr. Member
****
Karma: 13
Posts: 257
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

I want to use 3 of the 4 pwm pins on an ATTiny84 however miso and mosi are both pwm pins, will using either as pwm pins interfere with programming the chip?

Shouldn't..
Logged

Leeds, UK
Offline Offline
Edison Member
*
Karma: 78
Posts: 1719
Once the magic blue smoke is released, it won't go back in!
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Nope. When the ISP takes over, it pulls the Reset pin low to do programming. In this state, all the pins (apart from MISO) are forced to high-impedance inputs.
Logged

~Tom~

Offline Offline
Full Member
***
Karma: 1
Posts: 127
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

BUT what pin is it using to tell the 84 to reset? mosi, clk, or miso?  It has to use ONE of them to initiate the reset smiley  I was reading over the datasheets and it would seem the clock pin would actually be the trigger for turning ISP on?  If that is the case then mosi and miso are both usable PWM streams, otherwise if it uses mosi pin then how would it send a reset command if a PWM stream was coming out of it? smiley
Logged

Leeds, UK
Offline Offline
Edison Member
*
Karma: 78
Posts: 1719
Once the magic blue smoke is released, it won't go back in!
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

it uses the Reset pin. (Pin4 on the IC, aka PB3). Basically if you hold the reset pin low, you can use SPI to program the flash memory, which is why if you disable the reset pin, you can no longer use ISP.
« Last Edit: August 20, 2012, 02:02:11 pm by Tom Carpenter » Logged

~Tom~

Offline Offline
Full Member
***
Karma: 1
Posts: 127
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Hrm... AH YES you are right, the reset pin goes to the UNO, I forgot about that in the wiring!  Awesome.
Logged

Pages: [1]   Go Up
Jump to: