Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

Programing a 8051 chip in c - erratic behaviour

Status
Not open for further replies.

Big Homey

Newbie level 3
Joined
Jul 18, 2009
Messages
3
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
1,306
erratic behavior

I am programing a 8051 chip in c. I have to use a keypad to increment and decrement numbers. If I push the increment or decrement key to many times (20) the program jumps to another section of code. Sometimes it puts characters all over the screen. Any help would be appreciated.
 

btbass

Advanced Member level 5
Joined
Jul 20, 2001
Messages
1,897
Helped
438
Reputation
880
Reaction score
287
Trophy points
1,363
Location
Oberon
Activity points
12,861
Re: Erratic Behavior

Are you debounceing the keys properly?

If not, the program may see many keypresses and overflow your buffer.
 

microcon555

Advanced Member level 4
Joined
Feb 13, 2009
Messages
109
Helped
9
Reputation
18
Reaction score
5
Trophy points
1,298
Activity points
1,877
Erratic Behavior

whithout seeing the code no one can help you

help us to help you

MicroCon
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Top