It is required to connect 4 push buttons to a 89c668 microcontroller.
When a key is pressed an interrupt is generated to read the key pressed.
The program should include
1. a 'debounce function' for mechanical bounce of the switches.
2. An interrupt service routine for the function
'void EX0_readKeyP(void)interrupt 0 {...}'
3. A 'main function' to set up the interrupt and place the key read into port 2 of the microcontroller.
Please help.
Many Thanks.
When a key is pressed an interrupt is generated to read the key pressed.
The program should include
1. a 'debounce function' for mechanical bounce of the switches.
2. An interrupt service routine for the function
'void EX0_readKeyP(void)interrupt 0 {...}'
3. A 'main function' to set up the interrupt and place the key read into port 2 of the microcontroller.
Please help.
Many Thanks.