First 2007 update 2007-01-15
Since my last update I've been experimenting with interfacing a Reed switch and a shock sensor to the ADuC7020; and reading a number of books.
The reed switch is just one that i've had in my parts box for a while, i've look at interfacing the switch through a GPIO pin to an IRQ and just sampling the pin status periodicaly form a Timer interrupt. I've also look the issue of debouncing, this articale gives a good overview.
The shock sensor is a PKS1-4A10 from muRata, this interfaces to the ADuC7020 through one of the Analog-to-digital converter (ADC) pins. This needs some more work there is almost no signal, I think I need to add a Operational amplifier (Opamp) between the sensor and the ADC.
This application note (The MAXQ Microcontroller in Action: Designing a Bicycle Computer with the MAXQ2000) from Maxim covers some of the same topics as this project.
Pin | Description | Description | Pin |
1 | ADC3 | ADC2 | 40 |
2 | ADC4 | ADC1 | 39 |
3 | GNDREF | ADC0 | 38 |
4 | DAC0 | AVDD | 37 |
5 | DAC1 | AGND | 36 |
6 | DAC2 | VREF | 35 |
7 | DAC3 | P4.2 | 34 |
8 | TMS | P1.0 | 33 |
9 | TDI | P1.1 | 32 |
10 | P0.0 | P1.2 | 31 |
11 | P0.6 | P1.3 | 30 |
12 | TCK | P1.4 | 29 |
13 | TDO | P1.5 | 28 |
14 | IOGND | P1.6 | 27 |
15 | IOVDD | P1.7 | 26 |
16 | LVDD | XCLKI | 25 |
17 | DGND | XCLKO | 24 |
18 | P0.3 | P0.7 | 23 |
19 | RST | P2.0 | 22 |
20 | P0.4 | P0.5 | 21 |