TMK Chibios STM32 with PS/2 mouse/trackpoint
Posted: 18 Jan 2016, 23:24
Hi, following the thread regarding the Chibios build of the TMK firmware (http://deskthority.net/workshop-f7/tmk- ... 99-60.html) I have issues with connecting a trackpoint.
Here is where I am now, if someone has suggestions or can help that would be greatly appreciated :
- STM32s use 3v but some pins are 5v tolerant, by pulling those pins up to 5v I should be able to get the right voltage to the trackpoint, when I start the MCU the data pin reads 5v and the clock pin 0v
- The threading part works because I tested it with an analog joystick read using ADCs in the same thread and it worked
- I use a pin for the RST connection to the trackpoint as I don't have the right condenser to setup the 2.2uF capacitor suggested in https://geekhack.org/index.php?topic=55 ... msg1291412 . I adapted the code to use a pin for that, it is also pulled up to 5v, but right now it reads 3.3v and I can't find a reason why.
Could it be that one of the pin is pulling another low ? or should that setup be OK ?
The code used is here
here are the parts : https://github.com/abondis/tmk_keyboard ... _chibios.c and https://github.com/abondis/tmk_keyboard ... busywait.c
Here is where I am now, if someone has suggestions or can help that would be greatly appreciated :
- STM32s use 3v but some pins are 5v tolerant, by pulling those pins up to 5v I should be able to get the right voltage to the trackpoint, when I start the MCU the data pin reads 5v and the clock pin 0v
- The threading part works because I tested it with an analog joystick read using ADCs in the same thread and it worked
- I use a pin for the RST connection to the trackpoint as I don't have the right condenser to setup the 2.2uF capacitor suggested in https://geekhack.org/index.php?topic=55 ... msg1291412 . I adapted the code to use a pin for that, it is also pulled up to 5v, but right now it reads 3.3v and I can't find a reason why.
Code: Select all
5v TP DAT PB3
| | |
+-/\/\/\---------+---------------+
|
| TP CLK PB4
| | |
+-/\/\/\---------+---------------+
|
| TP RST PB6
| | |
+-/\/\/\---------+---------------+
The code used is here
here are the parts : https://github.com/abondis/tmk_keyboard ... _chibios.c and https://github.com/abondis/tmk_keyboard ... busywait.c