Stephan I. Böttcher
4daeb9442a
add pressure.py
2024-07-31 09:58:35 +02:00
Stephan I. Böttcher
74b364553c
revert commit of non-mirrored assembly drawing
2024-04-21 13:04:00 +02:00
Stephan I. Böttcher
8114f37ce8
resistor value changes, title
2024-04-21 13:00:04 +02:00
Stephan I. Böttcher
920938165e
src doc: minor typos and fixes
2024-04-20 18:43:11 +02:00
Stephan I. Böttcher
38776671b1
sch: change U2 output voltage, not to run the sensor beyond specs
2024-04-20 18:42:32 +02:00
Stephan I. Böttcher
0ac2f54bbe
calib.py: remove bogus output char
2024-04-20 18:40:48 +02:00
Stephan I. Böttcher
1d3fb10e8d
Merge branch 'master' of codeberg.org:SiB64/turbo_weather
2024-04-20 18:28:46 +02:00
Stephan I. Böttcher
df8cdf897c
documentation fixes after seeing it rendered
2024-04-18 18:16:01 +02:00
Stephan I. Böttcher
c7510b3d8c
documantation, v08 config
2024-04-18 17:43:56 +02:00
Stephan I. Böttcher
095d857e18
remove a copy from blinkenlights
2024-04-18 16:08:51 +02:00
Stephan I. Böttcher
b73d564c61
All TODOs √
2024-04-16 05:33:15 +00:00
Stephan I. Böttcher
20d4e45356
bate: reduce standby current into pins
...
MCLK and DOUT randomly stick at high or low when the µC enters standby
mode.
MCLK TCA0 WO0 is properly disabled to keep the pin at low level. A high
level pushes current into the pressure sensor.
DOUT input pullup is not enabled. A low level on DOUT (LSB of the
temperature) pulls current from the pullup.
2024-04-15 19:53:21 +02:00
Stephan I. Böttcher
2a6254c24a
minor style fixes, review with Björn
2024-04-15 19:52:33 +02:00
Stephan I. Böttcher
5d7679fbb4
make: explicit spi clk speed cpu_clk/64
2024-04-15 19:51:19 +02:00
Stephan I. Böttcher
28d492bdaf
make: build bate.eeprom with bate.hex
2024-04-15 15:56:36 +02:00
Stephan I. Böttcher
2d860e7dee
bate: simplify config_period
2024-04-15 08:58:10 +02:00
Stephan I. Böttcher
ee11d72f6d
bate: fix send_config
2024-04-15 08:47:57 +02:00
Stephan I. Böttcher
10b0e22595
oops …
2024-04-14 23:31:03 +02:00
Stephan I. Böttcher
ee05542813
cmd: K set clock, D test data test
2024-04-14 23:28:45 +02:00
Stephan I. Böttcher
4ccae7f99f
bate v0.7, config
2024-04-14 23:27:58 +02:00
Stephan I. Böttcher
a3377dc97e
cmd: require a sig for C as well
2024-04-14 22:36:18 +02:00
Stephan I. Böttcher
e6197c43ad
cmd: E and U for writing EEPROM and USERROW
2024-04-14 22:14:11 +02:00
Stephan I. Böttcher
9030ed194e
uart: tx buffer 128 bytes → 256 bytes, stack size 128 bytes
2024-04-14 21:31:19 +02:00
Stephan I. Böttcher
9aa0daa6ab
trigger: fix immediate
2024-04-14 20:32:57 +02:00
Stephan I. Böttcher
e16bac4cbc
more to .gitignore
2024-04-14 20:24:22 +02:00
Stephan I. Böttcher
fd575d8f17
cmd T, fix period trigger
2024-04-14 20:23:47 +02:00
Stephan I. Böttcher
f7484a5d7e
rtc: add debug counter
2024-04-14 20:21:46 +02:00
Stephan I. Böttcher
ec0609759b
cmd: work now, add some assembler
2024-04-14 19:40:04 +02:00
Stephan I. Böttcher
e69a74ce46
rtc: add debug counter
2024-04-14 19:38:27 +02:00
Stephan I. Böttcher
9122a63f77
rtc: add debug counter
2024-04-14 19:35:54 +02:00
Stephan I. Böttcher
7e13f07ada
cmd: fix parse_hex_nibble(), better output, W command
2024-04-14 04:36:26 +02:00
Stephan I. Böttcher
e8109f6f5c
uart: fix in rx_dismiss:
2024-04-14 04:35:10 +02:00
Stephan I. Böttcher
d72beb7218
uart: mostly assembler, now
...
Most uart code is now in `uart_tx.S`.
Code close to the hardware stays in `uart.c` to use `io.h`.
The .S does not use the CPP, yet.
2024-04-14 03:36:55 +02:00
Stephan I. Böttcher
a2a77ae553
uart: save a few instructions
2024-04-13 19:02:54 +02:00
Stephan I. Böttcher
3a9c3b1741
uart: add missing RETI
2024-04-13 17:46:44 +02:00
Stephan I. Böttcher
20fa2135e7
cmd: only accept lowercase hex digits
...
Not to confuse hex parameters with uppercase commands.
2024-04-13 17:45:08 +02:00
Stephan I. Böttcher
ec97a8c498
make: drop bate_CFLAGS
2024-04-13 17:44:04 +02:00
Stephan I. Böttcher
82b42966ba
cmd: C and M
2024-04-13 01:49:17 +02:00
Stephan I. Böttcher
fd9957aee1
adc: fix and call send_calib_adc()
2024-04-12 18:58:12 +02:00
Stephan I. Böttcher
8d38419263
adc: fix saddus()
2024-04-12 18:34:23 +02:00
Stephan I. Böttcher
ad4effa467
uart: rework uart_busy
...
- implement `tx()` in asm, does not work yet!
- enable TXC interrupt, to be woken when the uart is done
in order to power down. Alias the DRE interrupt.
- Rework `send_char()` and `send_str()`.
- Remove …_nosleep() and `panik()`.
- Better account for volatile-ness of buffer pointers.
2024-04-12 16:41:46 +02:00
Stephan I. Böttcher
410915515e
bate: print eeprom in words
2024-04-12 16:40:57 +02:00
Stephan I. Böttcher
1eecc696da
adc: calibrated output
...
- add calib values to `adc_conf`,
- double the size of `struct adc_conf`
- reduce the sape for `testdata`.
- implement the calibration with offset and scale.
2024-04-12 02:08:31 +02:00
Stephan I. Böttcher
c452e5bc61
eeprom: forget about specifying the address or vars
2024-04-12 02:07:04 +02:00
Stephan I. Böttcher
f692d97cf0
POWER_LED and POWER_SYDBY
2024-04-11 21:22:53 +02:00
Stephan I. Böttcher
be5c18ca52
uart: fix uart_busy(), we were powering down too early
2024-04-11 21:22:05 +02:00
Stephan I. Böttcher
763ab24e9e
bate: output config improvements
...
- new config.cperiod: print configuration one in a while
- SEND_BATED: print `W` and `D` sensor words separately,
send `W` with config.
- testdata: do not wait for config.period.
- clock: dorp `trigger` from `T` record,
send it with debug `X` instead
- config version 4, sane order.
- adc `A`: do not send unused entries.
2024-04-11 17:02:51 +02:00
Stephan I. Böttcher
365d7382c1
adc: stop at first unused adc_conf entry
2024-04-11 11:30:17 +02:00
Stephan I. Böttcher
1eb7e9c40a
make isr variables volatile
2024-04-11 04:09:34 +02:00
Stephan I. Böttcher
83fa8725f0
move adc_conf and test_data into the EEPROM
2024-04-11 03:51:19 +02:00