EmbeddedRelated.com
Forums
The 2024 Embedded Online Conference

Crossworks - Can I watch a GPIO Port?

Started by Micah Stevens May 27, 2005
Hi Paul, or anyone else that knows:

I found it handy from time to time in IAR to set a watch on a GPIO port, P2IN 
for example, and I'm wondering if there's a way to do this in
crossworks 
besides monitoring a memory location in the memory window. Not a deal 
breaker, but it would be convenient for me to do this in the same window with 
some other variables. 

Thanks!
-Micah

Beginning Microcontrollers with the MSP430

Hi Micah,

Just use Registers window. (there's 4 of them).
When you click on the little arrow thingie on top left, you can
select/deselect all resources on the current MCU, including
P1 ... P6

-- Kris

> Hi Paul, or anyone else that knows:
>
> I found it handy from time to time in IAR to set a watch on a GPIO port,
P2IN
> for example, and I'm wondering if
there's a way to do this in crossworks
> besides monitoring a memory location in the memory window. Not a deal
> breaker, but it would be convenient for me to do this in the same window
with
> some other variables.
>
> Thanks!
> -Micah


Micah Stevens wrote:
> Hi Paul, or anyone else that knows:
> 
> I found it handy from time to time in IAR to set a watch on a GPIO port,
P2IN 
> for example, and I'm wondering if there's a way to do this in
crossworks 
> besides monitoring a memory location in the memory window. Not a deal 
> breaker, but it would be convenient for me to do this in the same window
with 
> some other variables. 
> 
> Thanks!
> -Micah

Hello Micah,

I asked the same question a while back and there are two ways to do it: 
use the "Registers" window and click on the "Groups" button
and select 
which registers you wish to view; select "View Memory Map" from the 
project explorer context menu, right click on the P2IN register in the 
memory map editor and select "Watch".

Hope this helps!

Greg
=========================================================Greg Maki              
    PHONE: 239-772-9067
Technocean, Inc.            FAX:   815-572-8279
820 N.E. 24th Lane          email to: gmaki@gmak...
Unit 112                    http://www.technocean.com
Cape Coral, FL 33909
==========================================================
Hi Micah,

> I asked the same question a while back and there
are two ways to do it: 
> use the "Registers" window and click on the "Groups"
button and select 
> which registers you wish to view; select "View Memory Map" from
the 
> project explorer context menu, right click on the P2IN register in the 
> memory map editor and select "Watch".
> 
> Hope this helps!
> 
> Greg

Also, BTW, you might be aware that you can change displayed radix, and on an
individual basis, not just a whole window content.
In this case if you eg. right click on P2IN in the used Register Window,
you can display its value in Binary/Octal/Dec/Hex.. etc.

Also note that you can edit the Memory map file and turn it into an even
further customized entry, eg. bit fields if you want (with names of certain
bits),
although that's mostly already done for you.
(You can display the memory map by selecting the project in Project Explorer,
right click, and select "View Memory Map". )
This map displays all MCU resources in a graphical tree manner.
Very handly also when used in conjuntion with Properties window to see the
absolute/raw address etc. info like Size, Start address, Start address symbol, 
Size symbol, Name and End address.
The properties displayed adjust as you click on different things on the graphics
of the Memory map window and so on.

Lastly, there is also the (extended) data tips that auto-display while in Debug
as you hover over them in your source window. (also globals etc)
You can access this by :
Tools -> Options -> Dbugger -> general 
and you can enable/disable extended data tips in ASCII / Dec / Binary / Hex etc
etc.
You can also set the array element display stuff, max size of array display,
prompt size,
float format and so on...

-- Kris





Thanks for the tips, I'll take a look at the memory map file.. looks like 
something I could make use of. 


On Friday 27 May 2005 12:53 pm, microbit wrote:
> Hi Micah,
>
>  > I asked the same question a while back and there are two ways to do
it:
>  > use the "Registers" window and click on the
"Groups" button and select
>  > which registers you wish to view; select "View Memory Map"
from the
>  > project explorer context menu, right click on the P2IN register in
the
>  > memory map editor and select "Watch".
>  >
>  > Hope this helps!
>  >
>  > Greg
>
>  Also, BTW, you might be aware that you can change displayed radix, and on
> an individual basis, not just a whole window content.
>  In this case if you eg. right click on P2IN in the used Register Window,
>  you can display its value in Binary/Octal/Dec/Hex.. etc.
>
>  Also note that you can edit the Memory map file and turn it into an even
>  further customized entry, eg. bit fields if you want (with names of
> certain bits), although that's mostly already done for you.
>  (You can display the memory map by selecting the project in Project
> Explorer, right click, and select "View Memory Map". )
>  This map displays all MCU resources in a graphical tree manner.
>  Very handly also when used in conjuntion with Properties window to see the
>  absolute/raw address etc. info like Size, Start address, Start address
> symbol, Size symbol, Name and End address.
>  The properties displayed adjust as you click on different things on the
> graphics of the Memory map window and so on.
>
>  Lastly, there is also the (extended) data tips that auto-display while in
> Debug as you hover over them in your source window. (also globals etc)
>  You can access this by :
>  Tools -> Options -> Dbugger -> general
>  and you can enable/disable extended data tips in ASCII / Dec / Binary /
> Hex etc etc. You can also set the array element display stuff, max size of
> array display, prompt size, float format and so on...
>
>  -- Kris
>
>
>  
>
>
>
>  .
>
>
>
>
>
> .


Great tip on the editor, I gotta check that out some more. Thanks!

On Friday 27 May 2005 12:35 pm, Greg Maki wrote:
> Micah Stevens wrote:
>  > Hi Paul, or anyone else that knows:
>  >
>  > I found it handy from time to time in IAR to set a watch on a GPIO
port,
>  > P2IN for example, and I'm wondering if there's a way to do
this in
>  > crossworks besides monitoring a memory location in the memory window.
>  > Not a deal breaker, but it would be convenient for me to do this in
the
>  > same window with some other variables.
>  >
>  > Thanks!
>  > -Micah
>
>  Hello Micah,
>
>  I asked the same question a while back and there are two ways to do it:
>  use the "Registers" window and click on the "Groups"
button and select
>  which registers you wish to view; select "View Memory Map" from
the
>  project explorer context menu, right click on the P2IN register in the
>  memory map editor and select "Watch".
>
>  Hope this helps!
>
>  Greg
>  =========================================================>  Greg
Maki PHONE: 239-772-9067
>  Technocean, Inc. FAX: 815-572-8279
>  820 N.E. 24th Lane email to: gmaki@gmak...
>  Unit 112 http://www.technocean.com
>  Cape Coral, FL 33909
>  ==========================================================>
>
>  .
>
>
>
>
>
> .


The 2024 Embedded Online Conference