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

Search found 16 matches
CCS Forum Index
Author Message
  Topic: word address or byte address?
santosh.manicka

Replies: 8
Views: 10852

PostForum: General CCS C Discussion   Posted: Fri Aug 15, 2008 10:13 am   Subject: word address or byte address?
Thank you for the suggestions. I wrote the following piece and concluded that successive addresses(int32 values) refer to the successive bytes and not words.

int8 i;
int16 j;
...
  Topic: word address or byte address?
santosh.manicka

Replies: 8
Views: 10852

PostForum: General CCS C Discussion   Posted: Thu Aug 14, 2008 2:52 pm   Subject: word address or byte address?
I had mentioned the data type in my first post...may be I didn't emphasize enough on that.

In my example, address in int32.
So, address++ will increment it by 1, I understand. The function where I ...
  Topic: word address or byte address?
santosh.manicka

Replies: 8
Views: 10852

PostForum: General CCS C Discussion   Posted: Thu Aug 14, 2008 2:00 pm   Subject: word address or byte address?
Well, assume that 'address' is a word-address. For instance,

address = 0x0000; //address points to the 0th byte
int8 data = 1; //&data points to 1 byte
write_program_memory(address, &data ...
  Topic: word address or byte address?
santosh.manicka

Replies: 8
Views: 10852

PostForum: General CCS C Discussion   Posted: Thu Aug 14, 2008 1:16 pm   Subject: word address or byte address?
I am using a PIC18F6722 and PCW compiler.
In the function, write_program_memory( address, dataptr, count );
is 'address' a word-address or a byte-address?

I know it's an int32 and table read/writ ...
  Topic: MCLR reset due to programming logic?
santosh.manicka

Replies: 25
Views: 34667

PostForum: General CCS C Discussion   Posted: Wed Aug 13, 2008 12:30 pm   Subject: MCLR reset due to programming logic?
Sorry abt the earlier post.
Try this link again, please - http://www.esnips.com/doc/4a4ba99e-1e0c-483a-b746-240a131e6e4e/CircuitDiagram-updated

If you scroll down a bit, there is an option to down ...
  Topic: MCLR reset due to programming logic?
santosh.manicka

Replies: 25
Views: 34667

PostForum: General CCS C Discussion   Posted: Wed Aug 13, 2008 11:30 am   Subject: MCLR reset due to programming logic?
I have the updated circuit diagram here - http://www.esnips.com/doc/db317828-81a9-4281-94f6-7f5ae4736656/CircuitDiagram-updated

Can anyone help me figure out what could be wrong with the motor enab ...
  Topic: MCLR reset due to programming logic?
santosh.manicka

Replies: 25
Views: 34667

PostForum: General CCS C Discussion   Posted: Wed Aug 13, 2008 11:05 am   Subject: MCLR reset due to programming logic?
Yes, by disabling the motor, the problems don't occur. Even then the program reset just once but that was found to be due to the usage of the math function 'pow'. When I replaced it with atan and cos, ...
  Topic: MCLR reset due to programming logic?
santosh.manicka

Replies: 25
Views: 34667

PostForum: General CCS C Discussion   Posted: Tue Aug 12, 2008 10:06 am   Subject: MCLR reset due to programming logic?
I haven't checked that yet...but I found something else interesting. My code has the following #defines-
#define PROFILE_DATA_SIZE 1024*8
#define FLASH_DATA_SIZE (PROFILE_DATA_SIZE+1024)
#def ...
  Topic: MCLR reset due to programming logic?
santosh.manicka

Replies: 25
Views: 34667

PostForum: General CCS C Discussion   Posted: Mon Aug 11, 2008 12:43 pm   Subject: MCLR reset due to programming logic?
Thanks a ton!!

#FUSES NOWDT //No Watch Dog Timer
//#FUSES WDT128 //Watch Dog Timer uses 1:128 Postscale
//#FUSES H4 //High speed osc wit ...
  Topic: MCLR reset due to programming logic?
santosh.manicka

Replies: 25
Views: 34667

PostForum: General CCS C Discussion   Posted: Mon Aug 11, 2008 12:32 pm   Subject: MCLR reset due to programming logic?
Thank you for the suggestions!

None of the problems I mentioned earlier seem to occur when I comment out certain parts of the code (small sections though) that contain math operations like sqrt, po ...
  Topic: MCLR reset due to programming logic?
santosh.manicka

Replies: 25
Views: 34667

PostForum: General CCS C Discussion   Posted: Mon Aug 11, 2008 11:25 am   Subject: MCLR reset due to programming logic?
Another update -
The brownout seems to occur if there is a #fuses NOMCLR.
If the MCLR is enabled, only MCLR reset seems to occur and not brownout.
If the brownout is also disabled, then there seem ...
  Topic: MCLR reset due to programming logic?
santosh.manicka

Replies: 25
Views: 34667

PostForum: General CCS C Discussion   Posted: Mon Aug 11, 2008 10:56 am   Subject: MCLR reset due to programming logic?
The compiler version if 4.074
Here is an link to the circuit diagram-
http://www.esnips.com/doc/199b3da5-89b6-4ecf-ba33-6fb9a7f4736e/CircuitDiagram

Sorry, I couldn't figure out a way to post the ...
  Topic: MCLR reset due to programming logic?
santosh.manicka

Replies: 25
Views: 34667

PostForum: General CCS C Discussion   Posted: Mon Aug 11, 2008 10:08 am   Subject: MCLR reset due to programming logic?
The compiler version is 4.
The programmer is connected to the pin.
I actually used to run the program with the programmer connected to it. After I removed the programmer, the MCLR reset does not se ...
  Topic: MCLR reset due to programming logic?
santosh.manicka

Replies: 25
Views: 34667

PostForum: General CCS C Discussion   Posted: Mon Aug 11, 2008 9:52 am   Subject: MCLR reset due to programming logic?
Thank you for the reply.

I am an electronics naivete. So, I am not able to reply to a lot of questions you have asked. Right now I am trying to find if there COULD BE anything wrong with the softwa ...
  Topic: MCLR reset due to programming logic?
santosh.manicka

Replies: 25
Views: 34667

PostForum: General CCS C Discussion   Posted: Mon Aug 11, 2008 8:54 am   Subject: MCLR reset due to programming logic?
Just a follow-up .... I added another frpintf statement to display the values of a couple variables on the serial port and the program reset due to brownout!!
 
Page 1 of 2 Goto page 1, 2  Next
All times are GMT - 6 Hours
Jump to:  


Powered by phpBB © 2001, 2005 phpBB Group