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
Stephan I. Böttcher
e62e03f550
print E adc_conf on boot
2024-04-10 18:20:41 +02:00
Stephan I. Böttcher
59fe3a7949
greeting improvement
2024-04-10 18:15:24 +02:00
Stephan I. Böttcher
a341b2c454
baye.config: add BC_SPI
2024-04-10 18:13:57 +02:00
Stephan I. Böttcher
affd866a7c
spi: replace bit banging with SPI0
2024-04-10 18:10:57 +02:00
Stephan I. Böttcher
2287dbc7b9
calib: fix turbo test case[0]
2024-04-10 18:09:09 +02:00
Stephan I. Böttcher
9af59b100f
bate: use 16-bit frames
2024-04-10 01:24:24 +02:00
Stephan I. Böttcher
423016de10
bate_wait: sleep() waiting for pin interrupt
2024-04-09 23:55:10 +02:00
Stephan I. Böttcher
fc180c1881
uart: pin sense bothedges
2024-04-09 23:50:43 +02:00
Stephan I. Böttcher
da3a5dd824
adc: now it works w/ interrupts
...
The problem was: the TCA0 IRQ was busylooping
`send_char()` now sleeps.
Debug counters are cleared.
Config version 3 with acquisition period.
2024-04-09 23:19:08 +02:00
Stephan I. Böttcher
b222407beb
adc: worknow, but w/o isr
...
The RESRDY vector is never called, neither the SAMPRDY, when enabled.
No idea why. We do polling now.
No idea what wakes the CPU from sleep with STOP_MCLK.
2024-04-09 19:08:23 +02:00
Stephan I. Böttcher
ea52a15e5b
uart: panic(), spaces in hexdump
2024-04-09 18:14:39 +02:00
Stephan I. Böttcher
9afa792b56
bate: fixes
...
- adc.h: adc_init(), disable inputs used for analog inputs.
- bate: PORTA → VPORTA, restore blinkenlight's bate_bit()
- config V2: add cpu_clk, remove config pointer indirection
- CLKCTRL: make extra sure we run at 10 MHz
→ regained telemetry at 2400 baud
- turn on LED while digitizing and transmitting
2024-04-09 00:43:34 +02:00
Stephan I. Böttcher
3269949c0f
Makefile: BV_VERS=2
2024-04-09 00:42:25 +02:00
Stephan I. Böttcher
7bad559314
calib: fix bitsize of dT, add test case
2024-04-09 00:41:13 +02:00
Stephan I. Böttcher
d13c920471
adc: fix globals, add adc_init()
2024-04-09 00:40:07 +02:00
Stephan I. Böttcher
e1e0d63df1
mul16sun: fix case n=0
2024-04-09 00:38:13 +02:00
Stephan I. Böttcher
8e4d4f1120
adc: annotate asm savings in isr
2024-04-08 10:05:55 +02:00
Stephan I. Böttcher
5b2811bb48
adc readout
2024-04-08 01:47:46 +02:00
Stephan I. Böttcher
6cc29ed1b7
make %.id %.verify: -qq
2024-04-07 17:45:42 +02:00
Stephan I. Böttcher
20c0bd18e5
text_calib to SEND_HEX
2024-04-07 12:25:20 +02:00
Stephan I. Böttcher
6af21a6fe2
uart: send*(): pointers to const payload
2024-04-07 11:53:22 +02:00
Stephan I. Böttcher
0e31489bff
%.s: depend on %.o to capture dependencies from %.d
2024-04-07 11:52:03 +02:00
Stephan I. Böttcher
ec4e0c23ed
make %.verify
2024-04-07 11:34:31 +02:00
Stephan I. Böttcher
47aab1d6b0
make bate.config, individual vars
2024-04-07 10:54:10 +02:00
Stephan I. Böttcher
491c1667ec
decimal_str()
2024-04-07 01:09:55 +02:00
Stephan I. Böttcher
c1a8ed335d
calib: tests and fixes
2024-04-06 21:42:18 +02:00
Stephan I. Böttcher
35fe5990ef
uart: fix uart_break_p() polarity
2024-04-06 12:52:39 +02:00
Stephan I. Böttcher
aa1b244e0a
calib: python test implementation
2024-04-06 12:29:30 +02:00
Stephan I. Böttcher
d57f3e2cab
mul: handcraftet __asm__ multiplication, buggy
2024-04-06 12:27:44 +02:00
Stephan I. Böttcher
d087c48ef5
bate: uart, rtc fixes
2024-04-05 21:38:15 +02:00
Stephan I. Böttcher
ed12ab2678
bate: calib
2024-04-04 23:31:49 +02:00
Stephan I. Böttcher
5fa9fdb00b
bate: new features galore …
2024-04-04 20:48:00 +02:00
Stephan I. Böttcher
8f777af3ba
bate: add uart.[ch], use send_hex()
2024-04-04 12:16:42 +02:00
Stephan I. Böttcher
987c3bd326
avr: speed up the MCLK from 3.3MHz to 10 MHz
2024-04-03 21:55:54 +02:00
Stephan I. Böttcher
1de7a61bbb
enable the time TCA0
2024-04-03 19:30:39 +02:00
Stephan I. Böttcher
aba1d1fbfd
src/README
2024-04-03 06:04:57 +00:00
Stephan I. Böttcher
c4d5c17549
Sensor reading from blinkenlights, ported to ATtiny424
...
This compiles with an up to date toolchain pulled from git.
TODO:
- Use the SPI hardware to talk to the sensor.
- Send results via UART hardware.
- Setup the watchdog.
- Control power to the RF transmitter
- Light the LED.
- Readout the ADCs, thermistors.
- Readout the internal temperature sensor.
2024-04-03 07:55:02 +02:00
Stephan I. Böttcher
4380513dfc
copy bate.c from blinkenlights
2024-04-02 15:34:19 +02:00
Stephan I. Böttcher
c3f4e25dc3
bottom assy mirrored
2024-03-19 16:18:18 +01:00
Stephan I. Böttcher
bb25de31c0
gerbv: RGB fix, bottom assy
2024-03-19 16:17:11 +01:00
Stephan I. Böttcher
da3c5d6842
soldermask fix
2024-02-19 13:52:26 +01:00
Stephan I. Böttcher
830afa308a
BOM
2024-02-18 14:34:53 +01:00
Stephan I. Böttcher
cc844a61ca
README board size
2024-02-18 14:34:37 +01:00
Stephan I. Böttcher
0071080484
checkout scripts
2024-02-18 13:55:59 +01:00
Stephan I. Böttcher
ce7c64aa2f
CHIP rename, J1 w/ Vcc, BAT spec label, …
2024-01-22 20:23:12 +01:00
Stephan I. Böttcher
c956ff46ff
ATtiny[24][012][24] are all compatible, probably
2024-01-22 17:52:17 +01:00
Stephan I. Böttcher
40dbea26fb
README: add layout image
2024-01-22 07:46:03 +00:00
Stephan I. Böttcher
334a44aac1
New README
...
Link to schematics
2024-01-22 07:42:32 +00:00