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: WDT Sleep problem with loop
simat

Replies: 17
Views: 15898

PostForum: General CCS C Discussion   Posted: Wed Aug 27, 2008 5:40 am   Subject: WDT Sleep problem with loop
Thanks for the replies,

The problem turns out to be a possible problem with the STATUS register not being set correctly when returning from sleep. If I declare cycle and radiostatus as global vari ...
  Topic: WDT Sleep problem with loop
simat

Replies: 17
Views: 15898

PostForum: General CCS C Discussion   Posted: Thu Aug 07, 2008 1:20 pm   Subject: WDT Sleep problem with loop
I've just trimmed my code to the minimum as suggested by PCM Programmer and the WDT sleep function now works, I need to investigate this further.

Thanks. Embarassed
  Topic: WDT Sleep problem with loop
simat

Replies: 17
Views: 15898

PostForum: General CCS C Discussion   Posted: Thu Aug 07, 2008 10:11 am   Subject: WDT Sleep problem with loop
Hi, but surely m_bufferPtr will just overflow back to zero after hit 255 ?

Also m_buffer is 64 bytes large and we don't put that much data in each time, after the code is parse (not shown) we reset ...
  Topic: WDT Sleep problem with loop
simat

Replies: 17
Views: 15898

PostForum: General CCS C Discussion   Posted: Thu Aug 07, 2008 10:02 am   Subject: WDT Sleep problem with loop
derr I'm not being to bright am I, radiostatus is set to 2 in MAIN but I've missed that out, sorry.
  Topic: WDT Sleep problem with loop
simat

Replies: 17
Views: 15898

PostForum: General CCS C Discussion   Posted: Thu Aug 07, 2008 9:59 am   Subject: WDT Sleep problem with loop
cycle increments at near the bottom of the code.

I'm using the variable twice, for count up to enter the sleep section and then counting down to zero to exit the sleep section.
  Topic: WDT Sleep problem with loop
simat

Replies: 17
Views: 15898

PostForum: General CCS C Discussion   Posted: Thu Aug 07, 2008 9:45 am   Subject: WDT Sleep problem with loop
can a moderator please clean up this reply, the BBS has got a bit screwed and keeps telling me DEBUG MODE post failed.
  Topic: WDT Sleep problem with loop
simat

Replies: 17
Views: 15898

PostForum: General CCS C Discussion   Posted: Thu Aug 07, 2008 9:36 am   Subject: WDT Sleep problem with loop
Hi, heres some more code, compiler is 4.057


#include <16f88.h>
#include <string.h>

#fuses HS,WDT,NOPROTECT,PUT,NOBROWNOUT,NOLVP
#use delay(clock=20000000)
#use rs232( ...
  Topic: WDT Sleep problem with loop
simat

Replies: 17
Views: 15898

PostForum: General CCS C Discussion   Posted: Thu Aug 07, 2008 9:35 am   Subject: WDT Sleep problem with loop
Hi, heres some more code, compiler is 4.057


#include <16f88.h>
#include <string.h>

#fuses HS,WDT,NOPROTECT,PUT,NOBROWNOUT,NOLVP
#use delay(clock=20000000)
#use rs232( ...
  Topic: WDT Sleep problem with loop
simat

Replies: 17
Views: 15898

PostForum: General CCS C Discussion   Posted: Thu Aug 07, 2008 9:34 am   Subject: WDT Sleep problem with loop
Hi, heres some more code, compiler is 4.057


#include <16f88.h>
#include <string.h>

#fuses HS,WDT,NOPROTECT,PUT,NOBROWNOUT,NOLVP
#use delay(clock=20000000)
#use rs232( ...
  Topic: WDT Sleep problem with loop
simat

Replies: 17
Views: 15898

PostForum: General CCS C Discussion   Posted: Wed Aug 06, 2008 10:50 am   Subject: WDT Sleep problem with loop
Hi,

I'm having a weird problem, I think it may have something to do with a stack getting full, the code below prints 'POL' three times before getting stuck in a do while(true) loop used in MAIN (th ...
  Topic: Inverted RS232
simat

Replies: 4
Views: 6887

PostForum: General CCS C Discussion   Posted: Tue Feb 12, 2008 8:18 am   Subject: Inverted RS232
thanks for the replies, we'll use the H/W USART and invert the input as low power operation at the receiver isn't too critical.

Simon
http://www.simat.org.uk
  Topic: Inverted RS232
simat

Replies: 4
Views: 6887

PostForum: General CCS C Discussion   Posted: Tue Feb 12, 2008 6:59 am   Subject: Inverted RS232
If I use the 'INVERT' function should the ISR still fire ?

I'm receiving inverted data on B0 of a 16F628A (s/w USART), I need this to fire an interupt - read the data is, parse it and then send it ...
  Topic: Inverted RS232
simat

Replies: 4
Views: 6887

PostForum: General CCS C Discussion   Posted: Mon Feb 11, 2008 11:54 am   Subject: Inverted RS232
Hi,

Does anybody know if #use RS232 will support the INVERT function for receiving data ? , I know it works for transmission.. The data is going over a radio so I'm hoping not to have to use a H/W ...
  Topic: Dallas CRC 16 for DS2423 1-wire counter
simat

Replies: 3
Views: 9659

PostForum: General CCS C Discussion   Posted: Tue Feb 05, 2008 12:50 pm   Subject: Dallas CRC 16 for DS2423 1-wire counter
opted for the slightly slower version from Dallas Appnote 27

void docrc16 (int8 newbyte)
{
int crc_lo;
int crc_hi;

#byte STATUS = 0x03
#locate CNTR = 0xB8

...
  Topic: Dallas CRC 16 for DS2423 1-wire counter
simat

Replies: 3
Views: 9659

PostForum: General CCS C Discussion   Posted: Tue Feb 05, 2008 10:15 am   Subject: Dallas CRC 16 for DS2423 1-wire counter
Hi ckielstra,

Thanks for the reply, i've tried the routine with the #byte lines removed and manually setting the crc_lo and crc_hi just for a test and still get the same output.

If CRC16 = 0 and ...
 
Page 1 of 2 Goto page 1, 2  Next
All times are GMT - 6 Hours
Jump to:  


Powered by phpBB © 2001, 2005 phpBB Group