Kart/battery level
From FSI
(Difference between revisions)
(Created page with "{{private}} {{TOC right}} == PIC 18F2525 MCU as ADC Converter == The task of the PIC MCU inside the system is to reset the FPGA and to start ADC conversions and transfer these...") |
|||
(2 intermediate revisions by one user not shown) | |||
Line 1: | Line 1: | ||
− | |||
{{TOC right}} | {{TOC right}} | ||
− | == | + | == ADC == |
− | + | ||
− | + | ||
− | + | The ADC on the power supply board is a 16-bit 15SPS I2C [[media:MCP3425.pdf|MCP3425]]. | |
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | It is read by sending ''start'', D1, FF, FF, ''stop''. | |
+ | The I2C master has to acknowledge all data bytes (FF) except for the last one. | ||
+ | |||
+ | The control register is written by sending ''start'', D0, 14, ''stop''. | ||
+ | Value 14 means: | ||
+ | * continuous conversion | ||
+ | * 16 bit resolution (15 SPS) | ||
+ | * unity gain (1V/V) | ||
[[Category:Kart]] | [[Category:Kart]] |
Latest revision as of 10:06, 25 July 2014
|
ADC
The ADC on the power supply board is a 16-bit 15SPS I2C MCP3425.
It is read by sending start, D1, FF, FF, stop. The I2C master has to acknowledge all data bytes (FF) except for the last one.
The control register is written by sending start, D0, 14, stop. Value 14 means:
- continuous conversion
- 16 bit resolution (15 SPS)
- unity gain (1V/V)