Welcome Guest ( Login | Register )



All times are UTC - 7 hours [ DST ]



Post new topic Reply to topic  [ 2 posts ] 
Author Message
 Post subject: Accessing bits in popup tags using aliases
PostPosted: Tue Mar 29, 2016 12:46 am 

Joined: Tue Mar 29, 2016 12:39 am
Posts: 1

Offline
Hi
Is it possible to read bits in an integer tag via alias in a popup window to be used for dynamics? This seems to be possible when you access tags directly from "the tag list" and using an expression. But the expression button isn't available when I choose an alias tag instead of a real tag from the tag list.

How is with actions? Is it possible to set a bit in a tag using expressions in some way? I can't seem to find where in the action tab it's possible?


 Profile  
 
 Post subject: Re: Accessing bits in popup tags using aliases
PostPosted: Mon Apr 30, 2018 4:04 am 

Joined: Mon Apr 30, 2018 3:55 am
Posts: 1

Offline
The mikroC PRO for 8051 lets in you to get entry to individual bits of 8-bit variables. It also supports sbit and bit information types.

Lets use the Enable All Interrupts Bit (EA) for example. This bit is defined within the definition file of the precise MCU as :

const sign up unsigned quick int EA = 7;
sbit EA_bit at IE.B7;
To get entry to this bit on your code through its name, you can write some thing like this:

// Clear Enable All Interrupts Bit
IE.EA = zero;

In this way, if EA bit modifications its position inside the sign in, you are certain that the correct bit might be affected.
But, if EA bit is not positioned inside the precise register, you could get errors.
Refer https://essayservices.org/ if anybody needs any kind of writing help.


 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

All times are UTC - 7 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron