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 8 matches
CCS Forum Index
Author Message
  Topic: Auto update Real time with Ds1302?
lambk89

Replies: 1
Views: 6311

PostForum: General CCS C Discussion   Posted: Sun Nov 29, 2015 3:31 am   Subject: Auto update Real time with Ds1302?
Hi All!
I use DS1302 to read time. But i want to auto update time when my circuit start but not setup time.
Please tell me can i do it?
Thanks?
  Topic: RTOS and Interrupt Timer, CCP2
lambk89

Replies: 7
Views: 14519

PostForum: General CCS C Discussion   Posted: Mon Sep 21, 2015 11:26 am   Subject: RTOS and Interrupt Timer, CCP2

setup_timer_1(T1_INTERNAL|T1_DIV_BY_8);
enable_interrupts(INT_TIMER1);
enable_interrupts(INT_CCP2);
enable_interrupts(GLOBAL);

The reason is because you don't have an interrupt routine for ...
  Topic: RTOS and Interrupt Timer, CCP2
lambk89

Replies: 7
Views: 14519

PostForum: General CCS C Discussion   Posted: Sun Sep 20, 2015 7:58 am   Subject: RTOS and Interrupt Timer, CCP2
but when i turn on Timer 2 then Interrupt ccp2 can't do.
I don't see any place in your code where you turn on Timer2.

Sorry! I write wrong. That's timer 1
  Topic: RTOS and Interrupt Timer, CCP2
lambk89

Replies: 7
Views: 14519

PostForum: General CCS C Discussion   Posted: Sun Sep 20, 2015 7:57 am   Subject: RTOS and Interrupt Timer, CCP2
There is also the old classic 'wrong line':

setup_spi(SPI_SS_DISABLED);

This _enables_ the SPI, with the slave select disabled.
The command to disable the SPI, is:

setup_spi(FALSE);
...
  Topic: RTOS and Interrupt Timer, CCP2
lambk89

Replies: 7
Views: 14519

PostForum: General CCS C Discussion   Posted: Sun Sep 20, 2015 7:55 am   Subject: RTOS and Interrupt Timer, CCP2
Sorry! That's timer 1 not timer 2.
  Topic: RTOS and Interrupt Timer, CCP2
lambk89

Replies: 7
Views: 14519

PostForum: General CCS C Discussion   Posted: Thu Sep 17, 2015 8:04 am   Subject: RTOS and Interrupt Timer, CCP2
Hi!
Can you help me?
I use RTOS and Interrupt Timer 1. When I turn off Timer 1 then ccp2 happen but when i turn on Timer 2 then Interrupt ccp2 can't do.
This is my code:

#include "E:\r ...
  Topic: RTOS and interrupt CCP2
lambk89

Replies: 0
Views: 5143

PostForum: General CCS C Discussion   Posted: Tue Aug 25, 2015 9:43 am   Subject: RTOS and interrupt CCP2
Please help me!
I want to use RTOS and interrupt CCP2 but i can't use it. Have you got document or example use it please help me?
Thanks!
  Topic: VS1011 + pic 18f4520
lambk89

Replies: 1
Views: 4159

PostForum: General CCS C Discussion   Posted: Sun Oct 21, 2012 3:31 am   Subject: VS1011 + pic 18f4520
I'm trying to test VS1011 with pic 18f4520 but not successful. I hope everyone help me.
Thank you very much!
 
Page 1 of 1
All times are GMT - 6 Hours
Jump to:  


Powered by phpBB © 2001, 2005 phpBB Group