Contiki-NG
Loading...
Searching...
No Matches

Topics

 RE-Mote power management driver
 
 

Files

file  board.c
 Board-initialisation for the Zolertia's RE-Mote revision B platform.
 
file  board.h
 Header file with definitions related to the I/O connections on the Zolertia's RE-Mote platform (revision B), cc2538-based.
 

Functions

void board_init ()
 Board specific iniatialisation.
 

ADC configuration

These values configure which CC2538 pins and ADC channels to use for the ADC inputs.

By default the RE-Mote allows two out-of-the-box ADC ports with a phidget-like 3-pin connector (GND/VDD/ADC)

The RE-Mote allows both 3.3V and 5V analogue sensors as follow:

  • ADC1 (PA5): up to 3.3V.
  • ADC2 (PA4): up to 3.3V
  • ADC3 (PA2): up to 5V, by means of a 2/3 voltage divider.

Also there are other ADC channels shared by default with Micro SD card and user button implementations:

  • ADC4 (PA6): up to 3.3V.
  • ADC5 (PA7): up to 3.3V.
  • ADC6 (PA3): up to 3.3V.

ADC inputs can only be on port A. All ADCx are exposed in JP5 connector, but only ADC1 and ADC3 have GND and VDD (3/5V) pins next to it, so these can be exposed into a 3-pin phidget-like connector, for ADC2 either solder a wire to connect, or use a 4-pin connector to expose both ADC1 and ADC2 in a single connector, but this will leave no space for a ADC3 connector.

The internal ADC reference is 1190mV, use either a voltage divider as input, or a different voltage reference, like AVDD5, or externally using PA7/AIN7 and PA6/AIN6 configurable as differential reference, by removing the R26 and R33 0Ohm resistors to disconnect off the Micro-SD, and those will be accessible from JP5 connector.

To enable the ADC[2,4-6], remove any 0Ohm resistors if required (see above), and define in your application ADC_SENSORS_CONF_ADCx_PIN and set its value with the corresponding pin number (i.e ADC2 to 4 as mapped to PA4). To disable any ADC[1-6] just define as above, but set to (-1) instead.

Warning: if using ADC6 (PA3), you will need to disable the bootloader by making FLASH_CCA_CONF_BOOTLDR_BACKDOOR equal to zero

#define ADC_SENSORS_PORT   GPIO_A_NUM
 ADC GPIO control port.
 
#define ADC_SENSORS_ADC1_PIN   5
 ADC1 to PA5, 3V3

 
#define ADC_SENSORS_ADC3_PIN   2
 ADC3 to PA2, 5V

 
#define ADC_SENSORS_ADC2_PIN   (-1)
 ADC2 no declared

 
#define ADC_SENSORS_ADC4_PIN   (-1)
 ADC4 not declared

 
#define ADC_SENSORS_ADC5_PIN   (-1)
 ADC5 not declared

 
#define ADC_SENSORS_ADC6_PIN   (-1)
 ADC6 not declared

 
#define ADC_SENSORS_MAX   2
 Maximum sensors

 

Detailed Description

The RE-Mote was designed jointly with universities and industry partners in RERUM European project, to ease the development of private and secure applications for IoT and Smart City applications. The RE-Mote packs several on-board resources, like a RTC, external WDT, Micro-SD, RF switch and a Shutdown mode to reduce its power consumption down to 150nA.

This file provides connectivity information on LEDs, Buttons, UART and other RE-Mote revision A peripherals

This file can be used as the basis to configure other platforms using the cc2538 SoC.