Discussion in "Project Help" started by    zyrex    Dec 22, 2007.
Tue Dec 25 2007, 03:36 am
#11
thanks alot ajay
how can i control PWM with keyboard? e.g: i want to accalerate motor when i push 'button A' or reduce speed when push 'Button B' ....
Tue Dec 25 2007, 04:13 pm
#12
all you need to do is change the value loaded in R7..
lets say if more the value of R7 more is speed then...
when you press A increment R7 and when you press B decrement R7..
so automatically the speed will also change..
Wed Dec 26 2007, 12:10 am
#13
i think i understand what you mean but i havent find how i apply it in assembler yet? can you please give the code i mean i dont understand how the program recieve "button a" from keybord?? thanks alot
Wed Dec 26 2007, 12:54 am
#14
i told you.. no need to use a keyboard.. just use 4 keys.. increase, decrease, stop, start... like that.. easy for u..
Wed Dec 26 2007, 01:10 am
#15
but i want to use keybord lo learn:D:D:D
Wed Dec 26 2007, 01:54 am
#16
then take a look at the keypad tutorial.. you will get good introductory stuff.. and sample codes..
Wed Dec 26 2007, 04:08 am
#17
its keypad i said keybord it is different i think:S and to communicate i must configure uart? am i write?
Wed Dec 26 2007, 11:49 am
#18
my mistake... check 8051 library and codes in download area.. you will get sample code for keyboard.. keyboard does not work on UART.. it has its own protocol.
thats why i was saying if you are new to programming then it will be good to use simple keys. But you are interested in Keyboard so use it.. will help you..
 zyrex like this.
Sun Dec 30 2007, 11:33 pm
#19
hi ajay! i need your help again. I write the program and i can start and stop the dc motor but i havent make the speed up or down.
I trying to explain the code and wait your helping:D
i create a file named DT and i gave it #125 to increment and decrement. When user push a button(speed up buton) in KEYBORD inc DT and setup this value timer1. And i try to do it with interrupt. when user pust the button inc or decrement DT and controling speed.
yes i wish you understand it :D:D please help...
Mon Dec 31 2007, 12:05 am
#20
i told you in my previous posts.. that change the value of R7 thats all...
may i see your code what you did till now

Get Social

Information

Powered by e107 Forum System

Downloads

Comments

StephenHauct
Sat Apr 27 2024, 09:38 am
Adamsaf
Sat Apr 27 2024, 07:12 am
Robertphype
Sat Apr 27 2024, 12:23 am
ktaletrryp
Fri Apr 26 2024, 10:55 pm
Robertrip
Fri Apr 26 2024, 11:20 am
ArnoldDiant
Fri Apr 26 2024, 03:53 am
RodneyKnorb
Thu Apr 25 2024, 07:08 pm
Williamjef
Thu Apr 25 2024, 02:08 pm