Search found 15 matches

by choy
Mon Feb 13, 2012 10:17 pm
Forum: General Programming
Topic: connecting a keypad to PIC16F877A
Replies: 6
Views: 4118

Re: connecting a keypad to PIC16F877A

hello,

we were able to get the keypad to work. the connections were correct, but our breadboard failed to do it's job. perhaps it's too old and we need a replacement. anyway, everything's working fine now. thanks!
by choy
Mon Feb 13, 2012 1:43 am
Forum: General Programming
Topic: connecting a keypad to PIC16F877A
Replies: 6
Views: 4118

Re: connecting a keypad to PIC16F877A

JohnCrow, thanks for the reply. i forgot to mention that we are not using e-blocks for testing this on hardware. we downloaded the program to the chip using Microchip's PicKit2. we didn't have problems downloading the program to the chip. we are just not certain if we followed the connections correc...
by choy
Sun Feb 12, 2012 4:06 pm
Forum: General Programming
Topic: connecting a keypad to PIC16F877A
Replies: 6
Views: 4118

Re: connecting a keypad to PIC16F877A

we're unable to click anything on column 3. what are the possible reasons?
by choy
Sun Feb 12, 2012 4:04 pm
Forum: General Programming
Topic: connecting a keypad to PIC16F877A
Replies: 6
Views: 4118

Re: connecting a keypad to PIC16F877A

we're unable to click anything on column 3. what are the possible reasons?
by choy
Sun Feb 12, 2012 4:02 pm
Forum: General Programming
Topic: connecting a keypad to PIC16F877A
Replies: 6
Views: 4118

connecting a keypad to PIC16F877A

hello there! my groupmates and i are having problems getting the keypad to work. we followed the connections based on this datasheet ( http://www.matrixmultimedia.com/resources/getresource.php?id=89 ). attached is a summary of the connections we made. by the way, the keypad is connected to port C on...
by choy
Thu Jan 19, 2012 4:49 pm
Forum: General Programming
Topic: Controlling LED Patterns using Switchbank
Replies: 6
Views: 4391

Re: Controlling LED Patterns using Switchbank

Hey Martin, Again, I want to thank you for helping me out. I was finally able to figure it out. I used three variables in this program -- led, push and hold_push. Your idea about using Read_PortB variable for the push button input instead of using the push variable (which in turn was used for cases ...
by choy
Thu Jan 19, 2012 1:22 am
Forum: General Programming
Topic: Controlling LED Patterns using Switchbank
Replies: 6
Views: 4391

Re: Controlling LED Patterns using Switchbank

Martin,

Can you also tell me what the variables First_time and Read_portB are for?
Thanks again! :D
by choy
Thu Jan 19, 2012 12:59 am
Forum: General Programming
Topic: Controlling LED Patterns using Switchbank
Replies: 6
Views: 4391

Re: Controlling LED Patterns using Switchbank

Hey martin,

Thanks for the reply. This was the first thing I checked as soon as I woke up today.
Thank you for your help! Yes I'd like to see the port B interrupt version. :)
by choy
Wed Jan 18, 2012 7:16 pm
Forum: General Programming
Topic: Controlling LED Patterns using Switchbank
Replies: 6
Views: 4391

Controlling LED Patterns using Switchbank

Hello, I'm working on a project that shows three LED Array patterns depending on which button you push (one pattern per button for the Switchbank). The pattern should change each time you push a different button. I am able to show the correct pattern for the corresponding button when I first push a ...
by choy
Tue Dec 27, 2011 5:25 pm
Forum: Components (Other)
Topic: Programing for LED7Seg4
Replies: 9
Views: 14308

Re: Programing for LED7Seg4

Oh Im sorry, I miss read your post, and thought you did not want to use 7Seg just LCD. In that case I have alter your Flowchart so 7seg4 LED's work as well I have also added an extra routine so that no leading zeros are shown. e.g if ADC is 5 then instead of 0005, only 5 is shown. To remove that fu...
by choy
Tue Dec 27, 2011 11:04 am
Forum: Components (Other)
Topic: Programing for LED7Seg4
Replies: 9
Views: 14308

Re: Programing for LED7Seg4

hi again! i've finally figured it out. it's working now and displays the correct ADC value with the LCD as well as the LED7Seg4. things i did: (assuming adc is 1023) -created 4 byte variables digit4, digit3, digit2 and digit1. -for digit1 = adc MOD 10 (which is 3) -for digit2 = adc/10 MOD 10 (which ...
by choy
Tue Dec 27, 2011 11:03 am
Forum: General Programming
Topic: showing the ADC value using LED7Seg4
Replies: 2
Views: 2449

Re: showing the ADC value using LED7Seg4

hi again! i've finally figured it out. it's working now and displays the correct ADC value with the LCD as well as the LED7Seg4. things i did: (assuming adc is 1023) -created 4 byte variables digit4, digit3, digit2 and digit1. -for digit1 = adc MOD 10 (which is 3) -for digit2 = adc/10 MOD 10 (which ...
by choy
Tue Dec 27, 2011 10:14 am
Forum: General Programming
Topic: showing the ADC value using LED7Seg4
Replies: 2
Views: 2449

showing the ADC value using LED7Seg4

Hi all! I have a school project which I'm in need of help. Basically, I want to show the ADC value using the LED7Seg4. I've no problems showing the ADC value using the LCD component but I can't figure out how to show the ADC (value) using LED7Seg4. Can somebody help? I've been trying to figure this ...
by choy
Tue Dec 27, 2011 9:26 am
Forum: Components (Other)
Topic: Programing for LED7Seg4
Replies: 9
Views: 14308

Re: Programing for LED7Seg4

Hi choy, You don't need to use mod function to display Value of ADC The mod function is only used to separate an int into single digits e.g if ADC 1023 then Dig3=1, Dig2=0 Dig1=2 & Dig0=0 etc. In your case, you just use variable to read ADC , use cursor function, then use LCD to print Number. Final...
by choy
Mon Dec 26, 2011 8:13 pm
Forum: Components (Other)
Topic: Programing for LED7Seg4
Replies: 9
Views: 14308

Re: Programing for LED7Seg4

Hello, I'm also trying to do the same thing. I'm able to display the ADC value with the LCD display but not with LED7Seg4. I followed your instructions on how to assign four byte variables and everything else. I'm not sure though what you exactly mean with INT variable MOD 10. If my byte variable fo...