Back to Ironos

Notes on RISC-V

source/Core/BSP/Pinecilv2/NOTES.md

2.231.4 KB
Original Source

Notes on RISC-V

Pinmap

Pin NumberNameFunctionNotes
17PB2BOOT2Pulldown
32IMU INT 1N/A
30IMU INT 2N/A
PA4Handle TempADC Input ?
PA1Tip TempADC Input ?
PB1B ButtonActive High
PB0A ButtonActive High
PA11USB D--
PA12USB D+-
PA6Tip PWM Out-
PA0Input DC V SenseADC Input ?
PA9OLED Reset
PB7SDAI2C0_SDA
PB6SCLI2C0_SCL

ADC Configuration

For now running in matching mode for TS100

  • X channels DMA in background
  • Sample tip using "Intereted" channels using TIMER 0,1,3 TRGO or timer0,1,2 channels
  • Using just 12 bit mode for now and move to hardware oversampling later
  • use DMA for normal samples and 4x16 bit regs for tip temp
  • It has dual ADC's so run them in pair mode

Timers

Timer 2

Timer 2 CH0 is tip drive PWM out. This is fixed at 50% duty cycle and used via the cap to turn on the heater tip. This should toggle relatively quickly.