Kart/battery level

From FSI
(Difference between revisions)
Jump to: navigation, search
(PIC 18F2525 MCU as ADC Converter)
 
(One intermediate revision by one user not shown)
Line 1: Line 1:
{{private}}
 
 
{{TOC right}}
 
{{TOC right}}
 
== ADC ==
 
== ADC ==
Line 9: Line 8:
  
 
The control register is written by sending ''start'', D0, 14, ''stop''.
 
The control register is written by sending ''start'', D0, 14, ''stop''.
Value 14 means
+
Value 14 means:
 
* continuous conversion
 
* continuous conversion
 
* 16 bit resolution (15 SPS)
 
* 16 bit resolution (15 SPS)

Latest revision as of 11:06, 25 July 2014

Contents

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)
Personal tools
Namespaces
Variants
Actions
Navigation
Modules / Projects
Browse
Toolbox