Accessing bits in popup tags using aliases

Discussion of application development using iX Developer, including but not limited to getting started, using the functions tab, properties, objects and installation.
Post Reply
Vilohemmet
Posts: 1
Joined: Tue Mar 29, 2016 12:39 am

Accessing bits in popup tags using aliases

Post by Vilohemmet »

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?

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

Re: Accessing bits in popup tags using aliases

Post by KurtBanta »

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.

Post Reply