Author Topic: Attiny85 in Circuit Programming Issue  (Read 1035 times)

0 Members and 1 Guest are viewing this topic.

Offline vitormhenriqueTopic starter

  • Supporter
  • ****
  • Posts: 23
Attiny85 in Circuit Programming Issue
« on: July 09, 2018, 07:07:15 pm »
Hello Everyone,

I'm designing a small PCB to help a friend, it would basically be a buzzer for his drone that would function as a normal buzzer when it's connected to power, but on a event of loss of power it would beep at defined intervals to help him find his drone.

I have the schematic attached.

One problem that I'm fighting now is that if I populate the PCB the Attiny85 refuses to be programmed. I troubleshooted the issue with the Li-ion battery charger on the board (MCP73831) and could even reproduce the issue one a breadboard.

I don't understand why I'm having this issue, the ISP header has a power supply that should be different from the +5V and the +Bat voltage supply.

Does anyone has an idea of why is this happening? I can just put a solder jump on the board, and leave if disconnected before programming, but I really want to understand what is going on.

Thank you very much for any lead,

Vitor Henrique
 

Online IconicPCB

  • Super Contributor
  • ***
  • Posts: 1564
  • Country: au
Re: Attiny85 in Circuit Programming Issue
« Reply #1 on: July 09, 2018, 10:34:33 pm »
Your MOSI line is held at +5V constantly.
The lines coming from the programing header need to be isolated from the rest of the circuit  ( typically using a resistor such that the programmer has a chance to drive the programing lines .

So disconnect your MOSI line from +5V or put a resistor from +5V to MOSI and you will be able to program the the micro.
 

Offline vitormhenriqueTopic starter

  • Supporter
  • ****
  • Posts: 23
Re: Attiny85 in Circuit Programming Issue
« Reply #2 on: July 09, 2018, 11:34:26 pm »
That is not it, there are diodes preventing the VCC voltage to backfeed to the +5V and +Bat voltages.

Tha a look on the top of the schematics, I'm 100% sure that the issue is with the MCP73831, when I take it out of the PCB it works, whenI solder it back it stop programing the Attiny85.

I just don't understand why.  |O
 

Online IconicPCB

  • Super Contributor
  • ***
  • Posts: 1564
  • Country: au
Re: Attiny85 in Circuit Programming Issue
« Reply #3 on: July 10, 2018, 01:40:22 am »
Mosi is connected to +5V directly.

Mosi is also connected to the battery charger directly

Programmer CAN NOT drive battery charger..

Shove a resistor between mosi and +5V this will reduce LOADING on programer mosi signal and allow it to program the processor rather than power up charger.
 

Offline vitormhenriqueTopic starter

  • Supporter
  • ****
  • Posts: 23
Re: Attiny85 in Circuit Programming Issue
« Reply #4 on: July 10, 2018, 01:59:49 am »
Ahhhh! got it! now it makes sense! I'll try that! thanks!
 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf