UPDI pin as an analog input

Go To Last Post
63 posts / 0 new

Pages

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 1

I just took a fast look at the thread...anyhow, its possible to use the UPDI pin as a digital input without the need to change FUSE settings and/or to change anything (e.g. 12V pulse). The pin will function perfectly as a digital input and also as UPDI. then my suggestion would be:

 

- Sure you have in your application another pin that you use as a digital input, then switch that pin to the UPDI pin and use the analog pin in the place of your old digital pin (if it has ADC capability).

- The problem you may face that even if you use the UPDI pin as analog you will not be able to debug it and see what is going on in this pin.

 

We have already discussed this issue here multiple times.

Take a look at:

https://www.avrfreaks.net/commen...

and also:

https://www.avrfreaks.net/commen...

and:

https://www.avrfreaks.net/commen...

 

Follow the thread to get an idea..

Regards,

Moe

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 1

Moe123 wrote:

I just took a fast look at the thread...anyhow,

 

May be if you had a slow look around you may have noticed I want to use it as an analog input.

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

windoze_killa wrote:

Moe123 wrote:

I just took a fast look at the thread...anyhow,

 

May be if you had a slow look around you may have noticed I want to use it as an analog input.

 

Yes and my fast look answered ur question. if you use it as ANALOG input, you will loose the UPDI capability and only with 12V signal you can get it back...try to take a fast look next time before jumping..

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

you will loose the UPDI capability and only with 12V signal you can get it back.

This was already discussed in post #6, the OP has already purchased a programmer for that task but it may not have been delivered yet.

John Samperi

Ampertronics Pty. Ltd.

www.ampertronics.com.au

* Electronic Design * Custom Products * Contract Assembly

Last Edited: Thu. Sep 10, 2020 - 06:38 AM
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 1

Chill out guys...its an answer. or is too hot these days in Australia ?

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Moe123 wrote:
The pin will function perfectly as a digital input and also as UPDI

 

First, its remarkable that the UPDI pin can be used as a digital input without changing the fuse.

Thanks for this observation I not found in data-sheet. I just checked it with a Tiny1614. By the way, an "UPDI" pullup is included inside.

 

But of course that's not a clean way of working. A hardwired level on the pin making the UPDI function impossible- 

this means that detachable plug contacts are required in any case. Nobody can rule out that the UPDI-Unit does not influence the pin-level.

There is certainly a reason why newer controllers like Mega4809 or AVR128Dx have got their own, undivided function UPDI pin.

 

Therefore always the first step: Choose the controller whose pins are guaranteed to be sufficient for your project.

 

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

GermanFranz wrote:
First, its remarkable that the UPDI pin can be used as a digital input without changing the fuse.

 

Yes, both the UPDI unit and the Port unit are listening on the same pin. In general the datasheet doesn't say anything about those cases, what happens when you enable several peripherals on the same port?

Especially if they are using it as output, I guess one of the peripherals "wins" and takes control, but the priorities for this are nowhere to be found on the datasheet.

 

For example, on the tiny1614 one could direct an output from TCA0, the output from TCB0 and an output from TCD0 all to the same pin PA5, so what happens?

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Instead of using an ATtiny3217, wound the ATmega3208 in a 32 pin package give you more i/o so the UPDI would be free for programming?

 

Jim

 

 

(Possum Lodge oath) Quando omni flunkus, moritati.

"I thought growing old would take longer"

 

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

ki0bk wrote:

Instead of using an ATtiny3217, wound the ATmega3208 in a 32 pin package give you more i/o so the UPDI would be free for programming?

 

Jim

 

 

Read post #38.

 

I only have 4 external pins to use, it is not the number of pins on the chip. +12V, GND, digital out and analog in.

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

is too hot these days in Australia ?

We are sitting at about 10 deg in Sydney at the moment, in Cairns, where the lucky OP lives is about 19 deg but a forecast 30 deg today.

John Samperi

Ampertronics Pty. Ltd.

www.ampertronics.com.au

* Electronic Design * Custom Products * Contract Assembly

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

And loving it. Haven't worn a jumper in 2 years.

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

I have only been there once about 11 years ago, it was January and never seen so much rain in my life! Love to go but Ms pallid chook doesn't want us.

John Samperi

Ampertronics Pty. Ltd.

www.ampertronics.com.au

* Electronic Design * Custom Products * Contract Assembly

Pages