Pic interface: keyboard, mouse, i2c...
Posted: Wed Aug 17, 2011 2:48 pm
Hello!
Since i am building a 6502 project of my own, i wanted to have keyboard interface, so i decided to build the Daryl's AVR PC Keyboard IO. I went to the shop but they didn't have any Attinys. So i asked Daryl could i use some other microcontroller, he said me i could use Atmega. So i bought Atmega8, and downloaded Avr studio. I did the proper modifications to make it work on Atmega, but when i hit compile all kind of crazy errors started popping up, and i was unable to fix it...
So since i am using the Microchip pic for a while, i decided to make my own keyboard interface, that would have more options, like switching Z and Y (in Croatia and Germany is switched). So i went to the shop, i spent a lot of money buying two 16f628 (one for later). When i finished my program(using proton ide) of course i now need to program the pic and test if it works! So i put my new 16f628 in my ebay miracle programmer(it cad program form eproms to avr pic, it can test ic...) and hit program! But something went wrong and the pic kinda got fried, ok i put the other one, it programed id, just to be sure i tried to reprogram it, but it seems my new pic didn't like my chinese miracle programmer...
That is kinda weird, because i programmed eproms eeproms atmega pic, and i never had problems with it... After that it was nearly the end of my semester, and i had to study for the final exams... So now when i am home i thought, what if i used a pic16f877 (my favorite), so i bought one from ebay at 1/3 of the price that i could find it at the electronic store.
But this is a powerful microcontroller and it is a waste to use it just as a keyboard interface, so what if i use all of its resources, and have a keyboard and mouse interface, lcd interface, i2c bus interface, a/d converters... And i started doing some schematics, but then i realized that i exactly don't know how does (for example) EhBasic (or other) handle the character input, who has to empty the register when the character is read? Does EhBasic automaticly store 00, or it must empty automaticly after reading? So when i solve this (and some other) mystery i can finally finish planning this and start soldering...
I will post my progress, and discuss my design...
(Please don't get angry if i do something horribly wrong...)
Since i am building a 6502 project of my own, i wanted to have keyboard interface, so i decided to build the Daryl's AVR PC Keyboard IO. I went to the shop but they didn't have any Attinys. So i asked Daryl could i use some other microcontroller, he said me i could use Atmega. So i bought Atmega8, and downloaded Avr studio. I did the proper modifications to make it work on Atmega, but when i hit compile all kind of crazy errors started popping up, and i was unable to fix it...
So since i am using the Microchip pic for a while, i decided to make my own keyboard interface, that would have more options, like switching Z and Y (in Croatia and Germany is switched). So i went to the shop, i spent a lot of money buying two 16f628 (one for later). When i finished my program(using proton ide) of course i now need to program the pic and test if it works! So i put my new 16f628 in my ebay miracle programmer(it cad program form eproms to avr pic, it can test ic...) and hit program! But something went wrong and the pic kinda got fried, ok i put the other one, it programed id, just to be sure i tried to reprogram it, but it seems my new pic didn't like my chinese miracle programmer...
That is kinda weird, because i programmed eproms eeproms atmega pic, and i never had problems with it... After that it was nearly the end of my semester, and i had to study for the final exams... So now when i am home i thought, what if i used a pic16f877 (my favorite), so i bought one from ebay at 1/3 of the price that i could find it at the electronic store.
But this is a powerful microcontroller and it is a waste to use it just as a keyboard interface, so what if i use all of its resources, and have a keyboard and mouse interface, lcd interface, i2c bus interface, a/d converters... And i started doing some schematics, but then i realized that i exactly don't know how does (for example) EhBasic (or other) handle the character input, who has to empty the register when the character is read? Does EhBasic automaticly store 00, or it must empty automaticly after reading? So when i solve this (and some other) mystery i can finally finish planning this and start soldering...
I will post my progress, and discuss my design...
(Please don't get angry if i do something horribly wrong...)