Author |
Message |
Topic: #int_rb problems |
sam.mihyar
Replies: 6
Views: 8870
|
Forum: General CCS C Discussion Posted: Sat Jun 30, 2012 4:25 pm Subject: #int_rb problems |
Ok it worked...changes in B4-7 ports are lighting up the LED. I'm trying to let it light on and then off after a couple of seconds so it will re-light when I make another change without me having to s ... |
Topic: #int_rb problems |
sam.mihyar
Replies: 6
Views: 8870
|
Forum: General CCS C Discussion Posted: Sat Jun 30, 2012 3:17 pm Subject: #int_rb problems |
Ok...that made sense with the whole tris thing. So to test it out and actually get to my goal, I have a power source with a switch in B4, and the led on C0. Expectations, I open/close the switch, the ... |
Topic: #int_rb problems |
sam.mihyar
Replies: 6
Views: 8870
|
Forum: General CCS C Discussion Posted: Sat Jun 30, 2012 2:03 pm Subject: #int_rb problems |
Gratitude for answering..helpful indeed...I'm a newbie, but correct me if I'm wrong...Doesn't "Set_tris_B(1)" Assign the entire 'B' port with all of its pins into input pins ? |
Topic: #int_rb problems |
sam.mihyar
Replies: 6
Views: 8870
|
Forum: General CCS C Discussion Posted: Sat Jun 30, 2012 11:10 am Subject: #int_rb problems |
So I have a simple task of detecting any change on ports RB4-7, and viewing that change by lighting a LED from port c. Sounds simple enough, but I'm failing to do it in Proteus. I will post my code, m ... |
|