I/O Viewer not showing Input States.

Go To Last Post
8 posts / 0 new
Author
Message
#1
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Hello,

 

I want to use I/O Viewer to monitor I/O signals on my board.

 

I'm using a ATmega328PB and have Studio connected to the hardware using a Power Debugger in DebugWire mode.

 

I have the program stopped and can click on Output Port bits to turn LED's and a Beeper ON/ OFF.

 

However, the state of External switches does not show up on the Input ports, automatically.

If an external switch is active and I click on an Input Bit Block, I can see the state change. 

The bit does not change back when the switch is not active unless I click on the Input Bit Block again.

 

Is this how it's supposed to work or am I doing something wrong? 

 

Thanks for your help,

Paul

 

 

 

 

This topic has a solution.

You never know where life is going to take you; sit back and enjoy the ride!

Last Edited: Thu. Jul 1, 2021 - 10:33 PM
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Whats a Power Debugger?  Never heard of it.

 

Jim

I would rather attempt something great and fail, than attempt nothing and succeed - Fortune Cookie

 

"The critical shortage here is not stuff, but time." - Johan Ekdahl

 

"Step N is required before you can do step N+1!" - ka7ehk

 

"If you want a career with a known path - become an undertaker. Dead people don't sue!" - Kartman

"Why is there a "Highway to Hell" and only a "Stairway to Heaven"? A prediction of the expected traffic load?"  - Lee "theusch"

 

Speak sweetly. It makes your words easier to digest when at a later date you have to eat them ;-)  - Source Unknown

Please Read: Code-of-Conduct

Atmel Studio6.2/AS7, DipTrace, Quartus, MPLAB, RSLogix user

This reply has been marked as the solution. 
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

PaulieT wrote:
Is this how it's supposed to work or am I doing something wrong? 
The input bits are just displayed at the moment execution stops - they are not "live" so if you apply a signal while the debugger is in the stopped state you won't see them flickering on and off. But the display should be updated each time you stop. So if you single step just one opcode after some external change to the inputs then the new state should update after the single step finishes. If there's some point where you want to see several input changes in sequence perhaps code a number of NOPs and step then one at a time.

 

(Studio 4 used to have some kind of "animate" feature in the debugger where it would slowly do steps (perhaps 10 per second or something?) so in that it might have been possible to see almost "live" updates of changing inputs but I don't believe this feature carried over to Studio 5/6/7).

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

Thanks for the answer. It is working as you explained.

 

Regards,

Paul

 

You never know where life is going to take you; sit back and enjoy the ride!

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

I’d still like to know what aPower Debugger is…..

 

jim

I would rather attempt something great and fail, than attempt nothing and succeed - Fortune Cookie

 

"The critical shortage here is not stuff, but time." - Johan Ekdahl

 

"Step N is required before you can do step N+1!" - ka7ehk

 

"If you want a career with a known path - become an undertaker. Dead people don't sue!" - Kartman

"Why is there a "Highway to Hell" and only a "Stairway to Heaven"? A prediction of the expected traffic load?"  - Lee "theusch"

 

Speak sweetly. It makes your words easier to digest when at a later date you have to eat them ;-)  - Source Unknown

Please Read: Code-of-Conduct

Atmel Studio6.2/AS7, DipTrace, Quartus, MPLAB, RSLogix user

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

I think it's an OLDER Atmel debugger from memory, came before JTAG Mk2??

 

edit seems to be available still https://www.microchip.com/develo...

 

...or not and expensive https://www.microchipdirect.com/...

John Samperi

Ampertronics Pty. Ltd.

https://www.ampertronics.com.au

* Electronic Design * Custom Products * Contract Assembly

Last Edited: Thu. Jul 1, 2021 - 10:42 PM
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Hi Jim,

 

The Microchip Power Debugger is a development tool for debugging and programming AVR microcontrollers, just like the Atmel ICE. 

In addition the Power Debugger has two independent current sensing channels for measuring and optimizing the power consumption of a design.

The Power Debugger also includes a virtual COM port and Data Gateway Interface channels for streaming application data.

 

It's on the Microchip website and is a great product. 

 

Paul

You never know where life is going to take you; sit back and enjoy the ride!

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

PaulieT wrote:
It's on the Microchip website and is a great product. 

 

Oh, THAT thing.  YEah, for $229.00 I'll pass.

 

Jim

I would rather attempt something great and fail, than attempt nothing and succeed - Fortune Cookie

 

"The critical shortage here is not stuff, but time." - Johan Ekdahl

 

"Step N is required before you can do step N+1!" - ka7ehk

 

"If you want a career with a known path - become an undertaker. Dead people don't sue!" - Kartman

"Why is there a "Highway to Hell" and only a "Stairway to Heaven"? A prediction of the expected traffic load?"  - Lee "theusch"

 

Speak sweetly. It makes your words easier to digest when at a later date you have to eat them ;-)  - Source Unknown

Please Read: Code-of-Conduct

Atmel Studio6.2/AS7, DipTrace, Quartus, MPLAB, RSLogix user