PDA

View Full Version : VT82C42N keyboard controller generating continuous interrupts



otacon14112
July 9th, 2017, 07:02 PM
I'm using a VT82C42N keyboard controller for an 8088 computer I'm building, but it generates continuous interrupts. I removed the instruction that sends AAh to the controller, but it still generates infinite interrupts. I programmed the ISR to print the hexadecimal byte that's put on the data bus and it's FFh.

I wired it up to work in PS/2 mode. I hooked up P26 to a 74LS04 inverter since I don't have any 06s (I'm not sure why the schematics say 06s), and the resulting signal (Keyboard clock) goes to the keyboard and TEST0. P27 goes to an inverter and the resulting signal is Keyboard Data, which goes to the keyboard and P10. I'm confused at this setup, but that's what the datasheet says to do. I don't know why the output signals from the keyboard would be hooked up to an output on the inverter. I wonder if this is generating continuous 1s to fill up the shift register in the serial port of the VT82C42N.

http://pdf1.alldatasheet.com/datasheet-pdf/view/82592/ETC/VT82C42.html

I've seen that a few people on here have used this chip before, so I figured they might know what's going on.

Edit: I should mention that I hooked up P24 to an LED to confirm it wasn't a problem with my PIC, and sure enough, P24 was high.

gslick
July 9th, 2017, 07:29 PM
I wired it up to work in PS/2 mode. I hooked up P26 to a 74LS04 inverter since I don't have any 06s (I'm not sure why the schematics say 06s), and the resulting signal (Keyboard clock) goes to the keyboard and TEST0.

The 74LS06 has an Open Collector output. The 74LS04 does not. That is an important difference. They are not interchangeable.

If you don't know why the design uses Open Collector outputs you need to think about it a bit more.

otacon14112
July 9th, 2017, 07:52 PM
Ok, well I was going to order some 06s, but I read that they were interchangeable, so that's why I used the 04 instead. Guess I'll order them anyway. Thank you, btw.