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 4 matches
CCS Forum Index
Author Message
  Topic: [need help today]P16f877A interrupt Rb0 (press&hold SW)
langkhachpfiev

Replies: 7
Views: 24549

PostForum: General CCS C Discussion   Posted: Sun May 08, 2016 9:49 pm   Subject: [need help today]P16f877A interrupt Rb0 (press&hold SW)
ok thanks you guys for your comment
this project is one of three part (interrupt rbo-interrupt timer1-adc to change pwm) of my "big home exercise "

Here My full Code and Simulate File of ...
  Topic: [need help today]P16f877A interrupt Rb0 (press&hold SW)
langkhachpfiev

Replies: 7
Views: 24549

PostForum: General CCS C Discussion   Posted: Sun May 08, 2016 3:21 am   Subject: [need help today]P16f877A interrupt Rb0 (press&hold SW)
The answer is 'rethink'.

Don't use int_ext.

Instead use a timer. In this timer, test if the button is pressed. If it is increment the counter.

This way the counter will increment at the timer ...
  Topic: [need help today]P16f877A interrupt Rb0 (press&hold SW)
langkhachpfiev

Replies: 7
Views: 24549

PostForum: General CCS C Discussion   Posted: Sun May 08, 2016 12:29 am   Subject: [need help today]P16f877A interrupt Rb0 (press&hold SW)
If you know, please help. Thank you.
  Topic: [need help today]P16f877A interrupt Rb0 (press&hold SW)
langkhachpfiev

Replies: 7
Views: 24549

PostForum: General CCS C Discussion   Posted: Sun May 08, 2016 12:21 am   Subject: [need help today]P16f877A interrupt Rb0 (press&hold SW)
Request: (only use interrupt rb0)
1. Press SW (not hold), count and display number of times pressed (if up to 19 begin down, example 0,1,...18,19,18,17,...1,0,1,2....continue)--->solved
2. Press ...
 
Page 1 of 1
All times are GMT - 6 Hours
Jump to:  


Powered by phpBB © 2001, 2005 phpBB Group