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 6 matches
CCS Forum Index
Author Message
  Topic: help with timer1 pic18f452
goussepi

Replies: 14
Views: 19014

PostForum: General CCS C Discussion   Posted: Fri Jan 13, 2006 5:14 am   Subject: help with timer1 pic18f452
I'am using mplab 7.30b.
Sorry i don't understand this :

If you want to read TMR1H you will have to add reads of TMR1L to your code.

Ok so what the view/"special function register" is displaying ...
  Topic: help with timer1 pic18f452
goussepi

Replies: 14
Views: 19014

PostForum: General CCS C Discussion   Posted: Thu Jan 12, 2006 1:18 pm   Subject: help with timer1 pic18f452
I won't have access to labs until tomorrow and this must be an mplab bug , no 16bit register are simulated right. I have also checked the TxCON registers, they'r all fine.
  Topic: help with timer1 pic18f452
goussepi

Replies: 14
Views: 19014

PostForum: General CCS C Discussion   Posted: Thu Jan 12, 2006 4:10 am   Subject: help with timer1 pic18f452
Ok thanks, i'm going to work on this.
  Topic: help with timer1 pic18f452
goussepi

Replies: 14
Views: 19014

PostForum: General CCS C Discussion   Posted: Thu Jan 12, 2006 3:55 am   Subject: help with timer1 pic18f452
Even with this safer code i still have the problem.

#include<18f452.h>
#use delay (clock = 20000000)
int32 z;
#int_timer1
void tmr1_isr()
{
z=0;
}

void ma ...
  Topic: help with timer1 pic18f452
goussepi

Replies: 14
Views: 19014

PostForum: General CCS C Discussion   Posted: Thu Jan 12, 2006 1:46 am   Subject: help with timer1 pic18f452
I know this sound weird but it's exactly what it does , the transition is 0x00ff->0x0000, i tried to force the register TMR1H to 0xFF and the result is 0xffff->0xff00, i tried to set a divisor, ...
  Topic: help with timer1 pic18f452
goussepi

Replies: 14
Views: 19014

PostForum: General CCS C Discussion   Posted: Wed Jan 11, 2006 2:47 pm   Subject: help with timer1 pic18f452
There is my problem, the isr is run every time TMR1L reaches 255, is this normal ? i'd like it to be run only when it reaches 65535.

#include<18f452.h>
#use delay (clock = 20000000) ...
 
Page 1 of 1
All times are GMT - 6 Hours
Jump to:  


Powered by phpBB © 2001, 2005 phpBB Group