tillitis-key/hw/application_fpga/core/touch_sense
Joachim Strömbergson 819b93deff
Complete testbench and update README with API info
Signed-off-by: Joachim Strömbergson <joachim@assured.se>
2023-07-04 09:04:25 +02:00
..
rtl Remove name, version from several cores 2022-10-11 09:50:45 +02:00
tb Complete testbench and update README with API info 2023-07-04 09:04:25 +02:00
toolruns Make initial public release 2022-09-19 08:51:11 +02:00
README.md Complete testbench and update README with API info 2023-07-04 09:04:25 +02:00

touch_sense

Core that handles touch senor events and provides them SW via an API.

Introduction

This core implements a touch sensor handler. The core detects and holds events for SW to read. The touch sensor input is expected to be a change in level from low (0) to high (1). When an event is seen, the core will set a status bit that SW can read. SW must then clear the event by writing to the status register.

The user is expected to lift the finger between multiple touch events.

API

The API has a single address, and a single bit in that address:

	ADDR_STATUS: 0x09
	STATUS_EVENT_BIT: 0

SW should clear any stray attempts before signalling to the user that a touch event is expected. Clearing an event is done by writing the the status address, the value written does not matter.