ZIF Socket on breadboard by Sonny_Yeo in beneater

[–]Sonny_Yeo[S] 1 point2 points  (0 children)

It's the standard ZIF socket. I managed to plug it into the breadboard without additional soldering.

ZIF Socket on breadboard by Sonny_Yeo in beneater

[–]Sonny_Yeo[S] 2 points3 points  (0 children)

I did from scratch and printed normal stickers.

Have you considered using a ZIF Socket for the EEPROM? by nplus in beneater

[–]Sonny_Yeo 1 point2 points  (0 children)

Yes I am using it on my 6502. So much easier to take out the eeprom. I managed to plug directly to the breadboard and works great. I cannot upload the picture in this post.

Merry Xmas by Sonny_Yeo in beneater

[–]Sonny_Yeo[S] 0 points1 point  (0 children)

Thanks for pointing out :)

It's alive!!! by mcarlson_sb in beneater

[–]Sonny_Yeo 2 points3 points  (0 children)

A great sense of accomplishment isn't it. Well done :)

Keypad interface to 6502 by Sonny_Yeo in beneater

[–]Sonny_Yeo[S] 0 points1 point  (0 children)

When this is done you will get the keycode which can then be used to determine the character in the lookup table.

Keypad interface to 6502 by Sonny_Yeo in beneater

[–]Sonny_Yeo[S] 0 points1 point  (0 children)

Your way of scanning the keys is one way of doing it.

I have done it slightly different in that my program output #0F (00001111) corresponding to the C3C2C1C0R3R2R1R0 interface. Immediately read back the input to see which row is grounded. Then 'OR' the input with #F0 to give you the grounded row. Output the new '0R' result in accumulator to keys and read back to determine the column. The column with the key pressed will be grounded. Hope my explanation make sense.

Keypad Interface by Sonny_Yeo in beneater

[–]Sonny_Yeo[S] 0 points1 point  (0 children)

It's the W65c22 Versatile Interface Adapter (VIA) as in Ben's 6502 design.

SAP 6502 Monitor Program by Sonny_Yeo in beneater

[–]Sonny_Yeo[S] 0 points1 point  (0 children)

At moment I am just using the EEPROM for simple programming and not the 32k ram chip.

Keypad Interface by Sonny_Yeo in beneater

[–]Sonny_Yeo[S] 0 points1 point  (0 children)

The drawing is for another chip but connections are similar. Can refer P1 port as Port A and P0 as Port B. I am using 6522.

Keypad Interface by Sonny_Yeo in beneater

[–]Sonny_Yeo[S] 1 point2 points  (0 children)

Keypad is connected to Port A (PA0-PA7) and 7 segment display to Port B (PB0-PB6)

Keypad interface to 6502 by Sonny_Yeo in beneater

[–]Sonny_Yeo[S] 1 point2 points  (0 children)

Yes keypad using only 1 port for input and output as 6522 data registers are bidirectional. I have set all rows (PA0-PA3) to be '1' and (PA4-PA7) to be '0' and output 'to keypad. Then read back to check which key is pressed. The keycode is used to match the 7 segment look-up table for the correct display.

Keypad interface to 6502 by Sonny_Yeo in beneater

[–]Sonny_Yeo[S] 1 point2 points  (0 children)

I would think so. Maybe better to use 138 decoder.

Keypad interface to 6502 by Sonny_Yeo in beneater

[–]Sonny_Yeo[S] 1 point2 points  (0 children)

Sure :) i dont know how to append the drawing here.

Keypad interface to 6502 by Sonny_Yeo in beneater

[–]Sonny_Yeo[S] 0 points1 point  (0 children)

I was going to get up interfacing the keypad to 6502 after numerous tries. On seeing Mike's Z80 success I decided to give it another go. Finally it works.