Commit graph

34 commits

Author SHA1 Message Date
Stephan I. Böttcher
a7e45f235d leia: add 'n' → ports 2025-12-01 20:44:55 +01:00
Stephan I. Böttcher
7ebd848bd2 'r' returns conf.enable 2025-11-19 19:04:23 +01:00
Stephan I. Böttcher
75eaab4a26 leia: 'r' returns REST_PORT 2025-11-14 14:04:17 +01:00
Stephan I. Böttcher
144982c8b0 leia: 'w', pulse continuation, doc 2025-11-14 12:37:23 +01:00
Stephan I. Böttcher
6615bfba28 leia: clean conf.dir
writing '1' to input PORTs enables the pullup.  Avoid that on the DIR
port.
2025-11-08 10:32:29 +01:00
Stephan I. Böttcher
50f46b8494 leia: properly ramp dac with arbitray steps 2025-10-29 20:46:22 +01:00
Stephan I. Böttcher
d20586f0fc leia: '?' query GPIOR 2025-10-29 17:38:17 +01:00
Stephan I. Böttcher
be2d75f3b4 leia: eeprom isr __asm__ selected and tested 2025-10-29 17:20:10 +01:00
Stephan I. Böttcher
344e3a073d leia: do not enable interrupts when reading eeprom 2025-10-29 15:58:52 +01:00
Stephan I. Böttcher
04e72a3010 leia: fix adc isr
- XL is a macro from avr/io.h, avoid as asm param
- SUBI the negative memory location, 3×
- s/jjmp/rjmp/
- store the high byte of avg
- store the index into the correct location s/II/I/, 2×
- optimize for the likely code path
- s/OCF10B/OCF0B/

eeprom isr: (not yet enabled/tested)

- s/$[V]/%[V]/
2025-10-29 15:32:39 +01:00
Stephan I. Böttcher
f0f9b8acab leia: convert VCC first, as reference for NTCs 2025-10-29 12:15:11 +01:00
Stephan I. Böttcher
530fedca69 leia: TICK by CPUCLK 2025-10-29 10:54:00 +01:00
Stephan I. Böttcher
100f07b9f5 leia: Error codes 2025-10-28 23:58:03 +01:00
Stephan I. Böttcher
684d552c13 leia: SPI error propagation and msg 2025-10-28 20:02:32 +01:00
Stephan I. Böttcher
71f5839306 leia: dac ref
The DAC uses the Vref selected in ADMUX.  We _must_ keep the REFS bits
stable to use the DAC as motor current reference.

Add .conf.dac_ref to initialize REFS, in case the ADC conf is missing.
Change the default ADC config to use the internal 2.5V reference for all
channels.
2025-10-28 19:18:59 +01:00
Stephan I. Böttcher
0579532711 leia: RESET_PORT config 2025-10-28 08:55:44 +01:00
Stephan I. Böttcher
d3a29cc6c9 leia: ramp dac only when 'D' 2025-10-27 19:58:35 +01:00
Stephan I. Böttcher
e06a147c6e leia: stepper isr enable only one OCR 2025-10-27 19:56:51 +01:00
Stephan I. Böttcher
8d99d529f5 leia: control all RESET_PORT bits 2025-10-26 17:08:17 +01:00
Stephan I. Böttcher
6e1ccd4bce leia: peek ram, flash, eeprom 2025-10-26 16:39:03 +01:00
Stephan I. Böttcher
ad35f866aa leia: fix conf padding 2025-10-25 22:13:10 +02:00
Stephan I. Böttcher
fb7c5498fa leia: update comments 2025-10-22 22:25:31 +02:00
Stephan I. Böttcher
b26a64514c leia: conf → v.conf, v.stat 2025-10-22 22:19:33 +02:00
Stephan I. Böttcher
267ad36409 leia: conf size 2025-10-22 21:21:49 +02:00
Stephan I. Böttcher
b57552a3e7 leia: 'V' 2025-10-22 20:39:22 +02:00
Stephan I. Böttcher
7de7b3a732 spi_slave: sleep 2025-10-22 20:38:29 +02:00
Stephan I. Böttcher
27bbff81b3 leia: "zW" for eeprom write 2025-10-22 19:10:07 +02:00
Stephan I. Böttcher
6e8a9325e7 leia: add EEPROM write counter 2025-10-22 18:56:23 +02:00
Stephan I. Böttcher
f90a2205b0 leia adc: REFS0==ADC_E, ~ADLAR==average mode, fixes 2025-10-22 18:01:16 +02:00
Stephan I. Böttcher
58b56f20bf leia: c isrs, for initial tests 2025-10-22 11:45:16 +02:00
Stephan I. Böttcher
4badaf23ce leia: all isr in assemby 2025-10-19 21:49:35 +02:00
Stephan I. Böttcher
c1f87a11da leia: docs, cleanups, fixes 2025-10-18 22:46:34 +02:00
Stephan I. Böttcher
d76f6517db leia: dac ramp 2025-10-18 15:36:26 +02:00
Stephan I. Böttcher
6d389a572b add project LEIA, two channel stepper motor control 2025-10-17 10:35:02 +02:00