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 27 matches
CCS Forum Index
Author Message
  Topic: 12F1822 Simple Interrupt_On_change does not work
norman_tan

Replies: 14
Views: 32188

PostForum: General CCS C Discussion   Posted: Sun Dec 01, 2019 9:05 pm   Subject: 12F1822 Simple Interrupt_On_change does not work
but, I shoud give a fixed period pulse with on PA5, and interrput happens only in the period of PA5 is high
Launch_ON;
delay_us(8);
Launch_OFF;
  Topic: 12F1822 Simple Interrupt_On_change does not work
norman_tan

Replies: 14
Views: 32188

PostForum: General CCS C Discussion   Posted: Sun Dec 01, 2019 7:34 pm   Subject: 12F1822 Simple Interrupt_On_change does not work
Dear PCM Programmer and Ttelmah,
I am very regret that I met an issue as below,
pulse width on PA5 changed to unnormal 19us(interrupt happens on PA2) form normal 9us(no interrupt on PA2)!!!!
and ...
  Topic: 12F1822 Simple Interrupt_On_change does not work
norman_tan

Replies: 14
Views: 32188

PostForum: General CCS C Discussion   Posted: Sat Oct 19, 2019 9:09 pm   Subject: 12F1822 Simple Interrupt_On_change does not work
Dear PCM Programmer and Ttelmah,
Additional remarks as below:
When I changed "setup_ccp1(CCP_PWM); " to "setup_ccp1(CCP_PWM|CCP1_A5); ", PWM generated on RA5 now, it works!

T ...
  Topic: 12F1822 Simple Interrupt_On_change does not work
norman_tan

Replies: 14
Views: 32188

PostForum: General CCS C Discussion   Posted: Sat Oct 19, 2019 8:45 pm   Subject: 12F1822 Simple Interrupt_On_change does not work
Dear PCM Programmer and Ttelmah,
I tried the PWM function just now according to your history posts as below:
http://www.ccsinfo.com/forum/viewtopic.php?t=46496&highlight=pic12f1822
http://www. ...
  Topic: 12F1822 Simple Interrupt_On_change does not work
norman_tan

Replies: 14
Views: 32188

PostForum: General CCS C Discussion   Posted: Sat Oct 19, 2019 8:11 pm   Subject: 12F1822 Simple Interrupt_On_change does not work
Dear PCM Programmer and Ttelmah,

Thanks for your kindly reply!

According to advice from email of CCS support, I added command line "if(bit_test(input_a(),2))" in codes, it works well n ...
  Topic: 12F1822 Simple Interrupt_On_change does not work
norman_tan

Replies: 14
Views: 32188

PostForum: General CCS C Discussion   Posted: Sat Oct 19, 2019 1:47 am   Subject: INT_TIMER1 will disable INT_RA function in PIC12F1822?
Dear PCM programmer,
I read your codes here and change pin_RA3 to pin_RA2, it also works well, very good.
And I add codes of INT_TIMER1(it also works well without enable INT_RA), then I find INT_RA ...
  Topic: How to let "sfr P0= 0x80;" command line pass compi
norman_tan

Replies: 6
Views: 15867

PostForum: General CCS C Discussion   Posted: Thu Mar 15, 2018 8:17 pm   Subject: How to let "sfr P0= 0x80;" command line pass compi
Dear temtronic,

I have a copy of "dpc31_hardware_description_v25.pdf".

but I do not know how to attach it here Sad

How about telling me your email address?

Norman
  Topic: How to let "sfr P0= 0x80;" command line pass compi
norman_tan

Replies: 6
Views: 15867

PostForum: General CCS C Discussion   Posted: Thu Mar 15, 2018 2:42 am   Subject: How to let "sfr P0= 0x80;" command line pass compi
Hi all,

Siemens answered as below:
when you use an external processor all codes of the C31 can be removed.

That is cooool.

Thanks!

Norman
  Topic: How to let "sfr P0= 0x80;" command line pass compi
norman_tan

Replies: 6
Views: 15867

PostForum: General CCS C Discussion   Posted: Thu Mar 15, 2018 1:30 am   Subject: How to let "sfr P0= 0x80;" command line pass compi
Dear Ttelmah and Temtronic,

Both your said are good ideas, Thanks a lot!

In this OLD C31 project (I want to integrate it into my current CCS project), the Profibus chip (Siemens chip DPC31) incl ...
  Topic: How to let "sfr P0= 0x80;" command line pass compi
norman_tan

Replies: 6
Views: 15867

PostForum: General CCS C Discussion   Posted: Wed Mar 14, 2018 3:00 am   Subject: How to let "sfr P0= 0x80;" command line pass compi
Hi All,
I am integrating an old 51 project into my current CCS project, during compiling I have met many many Errors. and CCS support have given me much help. I am very thankful to them. they are gre ...
  Topic: Compiling Error131: Macro is defined recursively
norman_tan

Replies: 3
Views: 11801

PostForum: General CCS C Discussion   Posted: Wed Mar 14, 2018 12:29 am   Subject: Compiling Error131: Macro is defined recursively
Hi Ttelmah,

CCS told me add command line "#case" at the start of the program will solve this problem!
I have tried it, CCS is right.

Thanks a lot!
  Topic: Compiling Error131: Macro is defined recursively
norman_tan

Replies: 3
Views: 11801

PostForum: General CCS C Discussion   Posted: Tue Mar 13, 2018 1:48 am   Subject: Compiling Error131: Macro is defined recursively
Hi All,
Has anybody ever met compiling Error131: Macro is defined recursively?
and how to solve this question if you met it before?

In my codes:
#define PBC_INT_DATA_ATTR

#define PBC_EXTERN_ ...
  Topic: How to use the Parallel Master Port in PIC18F87J11?
norman_tan

Replies: 17
Views: 37801

PostForum: General CCS C Discussion   Posted: Mon Dec 18, 2017 12:43 am   Subject: How to use the Parallel Master Port in PIC18F87J11?
Dear Ttelmah, RF_Developer and PCM programmer,
I finally can control the PMP(Master Mode 2, for 18s I used the original method, for 24s I used functions as SETUP_PMP) well now after studying the man ...
  Topic: How to use the Parallel Master Port in PIC18F87J11?
norman_tan

Replies: 17
Views: 37801

PostForum: General CCS C Discussion   Posted: Sun Dec 17, 2017 3:23 am   Subject: How to use the Parallel Master Port in PIC18F87J11?
Dear Ttelmah,
I also set the address as you showed in earlier post. It was real easy. Thanks!
There are still many uncertain factors in 18F family for PMP functions in CCS. I am hesitating whether I ...
  Topic: How to use the Parallel Master Port in PIC18F87J11?
norman_tan

Replies: 17
Views: 37801

PostForum: General CCS C Discussion   Posted: Sat Dec 16, 2017 9:44 pm   Subject: How to use the Parallel Master Port in PIC18F87J11?
Dear Ttelmah,
setup_psp() in 18F87J11.h is: _bif void setup_psp(int32 mode);
setup_psp() in 24FJ1128GB108.h is: setup_psp(unsigned int32 mode, unsigned int16 address_mask);
if I call setup_psp(int ...
 
Page 1 of 2 Goto page 1, 2  Next
All times are GMT - 6 Hours
Jump to:  


Powered by phpBB © 2001, 2005 phpBB Group