CCS C Software and Maintenance Offers
FAQFAQ   FAQForum Help   FAQOfficial CCS Support   SearchSearch  RegisterRegister 

ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

CCS does not monitor this forum on a regular basis.

Please do not post bug reports on this forum. Send them to CCS Technical Support

int32 problem

 
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion
View previous topic :: View next topic  
Author Message
muiratinas



Joined: 13 Oct 2010
Posts: 16

View user's profile Send private message

int32 problem
PostPosted: Sat Jun 11, 2011 2:55 am     Reply with quote

When I define
Code:
int32 message=25646842;

message is shown as

Code:
message =   22266

in simulation.(Proteus)

My complier version 4.14.
Ttelmah



Joined: 11 Mar 2010
Posts: 19513

View user's profile Send private message

PostPosted: Sat Jun 11, 2011 3:35 am     Reply with quote

Proteus setting. You have it set to show an int16.

Best Wishes
muiratinas



Joined: 13 Oct 2010
Posts: 16

View user's profile Send private message

PostPosted: Mon Jun 13, 2011 1:12 am     Reply with quote

I cannot find the setting :/ can you describe
Ttelmah



Joined: 11 Mar 2010
Posts: 19513

View user's profile Send private message

PostPosted: Mon Jun 13, 2011 2:09 am     Reply with quote

This is not a Proteus support forum....

Second, use something else. I have the full Proteus professional package, but do not use the PIC debugging, finding it fails more often than it works.

Select the variable in the watch window. Right click. Change the data size to 32bits.

Best Wishes
temtronic



Joined: 01 Jul 2010
Posts: 9226
Location: Greensville,Ontario

View user's profile Send private message

PostPosted: Mon Jun 13, 2011 5:21 am     Reply with quote

Simulation is NOT the REAL World !

Get rid of Proteus, it is full of bugs,errors and other 'weird' stuff that will never work right.

NONE of the schematics presented here by Proteus users will ever work yet Proteus says 'no problem'.It's all in the details yet some items are so obvious.
muiratinas



Joined: 13 Oct 2010
Posts: 16

View user's profile Send private message

PostPosted: Mon Jun 13, 2011 5:40 am     Reply with quote

I have just tested the communication between microcontrollers with simulation and I am really happy with it.
I solved the problem thanks for help.
Display posts from previous:   
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
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 vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group