Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

AURIX™ Forum Discussions

André
Level 1
First question asked Welcome!
Level 1

Hi all,

Can some explain me the behaviour of the TC264 when:

sub d1, d2 with d2 > d1

For e.g

d1 = 0xA

d2 = 0xFFFFFF00

The result is 0x10A, but why?

BR,

André

0 Likes
1 Solution
MoD
Employee
50 solutions authored 100 sign-ins 25 solutions authored
Employee

d1 = 0xA = 10
d2 = 0xFFFFFF00 = -256

0x10A = 266 = 10 - (-256) = 10 + 256

View solution in original post

0 Likes
1 Reply
MoD
Employee
50 solutions authored 100 sign-ins 25 solutions authored
Employee

d1 = 0xA = 10
d2 = 0xFFFFFF00 = -256

0x10A = 266 = 10 - (-256) = 10 + 256

0 Likes