Author |
Message |
Topic: [need help today]P16f877A interrupt Rb0 (press&hold SW) |
langkhachpfiev
Replies: 7
Views: 24549
|
Forum: 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
|
Forum: 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
|
Forum: 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
|
Forum: 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 ... |
|